From 532e4a4b3324c1148d04932fa7c1ac04dfbee29e Mon Sep 17 00:00:00 2001 From: Gowtham Rao Date: Fri, 28 Jun 2024 08:43:57 -0400 Subject: [PATCH 1/8] Create Script to Check Cohort definitions for domain change and vocabulary drift.R --- ...s for domain change and vocabulary drift.R | 403 ++++++++++++++++++ 1 file changed, 403 insertions(+) create mode 100644 extras/Script to Check Cohort definitions for domain change and vocabulary drift.R diff --git a/extras/Script to Check Cohort definitions for domain change and vocabulary drift.R b/extras/Script to Check Cohort definitions for domain change and vocabulary drift.R new file mode 100644 index 00000000..c26bd6df --- /dev/null +++ b/extras/Script to Check Cohort definitions for domain change and vocabulary drift.R @@ -0,0 +1,403 @@ +# cohortDefinitionSet <- PhenotypeLibrary::getPlCohortDefinitionSet(cohortIds = PhenotypeLibrary::getPhenotypeLog()$cohortId) +# saveRDS(object = cohortDefinitionSet, "cohortDefinitionSet.RDS") +cohortDefinitionSet <- readRDS("cohortDefinitionSet.RDS") + +#1: retrieve concept sets from cohort definition set ----- +cohortDefinitionsToCheckIfUpdateIsNeeded <- cohortDefinitionSet |> + dplyr::select(cohortId, + cohortName, + sql, + json) |> + dplyr::arrange(cohortId) + +# conceptSetsInAllCohortDefinition <- +# ConceptSetDiagnostics::extractConceptSetsInCohortDefinitionSet(cohortDefinitionSet = cohortDefinitionsToCheckIfUpdateIsNeeded) +# +# saveRDS(object = conceptSetsInAllCohortDefinition, +# file = "conceptSetsInAllCohortDefinition.RDS") + +conceptSetsInAllCohortDefinition <- + readRDS("conceptSetsInAllCohortDefinition.RDS") + + +#2: identify all unique concept sets ----- +uniqueConceptSets <- conceptSetsInAllCohortDefinition |> + dplyr::select(uniqueConceptSetId, + conceptSetSql) |> + dplyr::distinct() + + +#3: resolve concept set by vocabulary version +resolvedConceptIdsOldVocabulary <- c() +resolvedConceptIdsNewVocabulary <- c() + +#old vocabulary +oldCdmSource <- + OhdsiHelpers::getCdmSource(cdmSources = cdmSources, sequence = 3, database = "optum_extended_dod") +oldConnectionDetails <- + OhdsiHelpers::createConnectionDetails(cdmSources = cdmSources, sequence = 3, database = "optum_extended_dod") + +#new vocabulary +newCdmSource <- + OhdsiHelpers::getCdmSource(cdmSources = cdmSources, database = "optum_extended_dod") +newConnectionDetails <- + OhdsiHelpers::createConnectionDetails(cdmSources = cdmSources, database = "optum_extended_dod") + + +# for (i in (1:nrow(uniqueConceptSets))) { +# writeLines( +# paste0( +# "working on ", +# OhdsiHelpers::formatIntegerWithComma(i), +# " out of ", +# OhdsiHelpers::formatIntegerWithComma(nrow(uniqueConceptSets)), +# " at ", +# as.character(Sys.Date()), +# " ", +# as.character(Sys.time()) +# ) +# ) +# +# dir.create("resolvedConceptIdsVocabulary", +# showWarnings = FALSE, +# recursive = TRUE) +# +# +# if (!file.exists(file.path( +# "resolvedConceptIdsVocabulary", +# paste0("resolvedConceptIdsOldVocabulary", +# i, +# ".RDS") +# ))) { +# # resolve using old vocabulary +# resolvedConceptIdsOldVocabulary <- +# DatabaseConnector::renderTranslateQuerySql( +# sql = uniqueConceptSets[i, ]$conceptSetSql, +# connection = DatabaseConnector::connect(connectionDetails = oldConnectionDetails), +# vocabulary_database_schema = oldCdmSource$vocabDatabaseSchemaFinal, +# snakeCaseToCamelCase = TRUE +# ) |> +# dplyr::mutate(uniqueConceptSetId = uniqueConceptSets[i, ]$uniqueConceptSetId) |> +# dplyr::tibble() +# +# saveRDS(object = resolvedConceptIdsOldVocabulary, +# file.path( +# "resolvedConceptIdsVocabulary", +# paste0("resolvedConceptIdsOldVocabulary", +# i, +# ".RDS") +# )) +# +# # resolve using new vocabulary +# resolvedConceptIdsNewVocabulary <- +# DatabaseConnector::renderTranslateQuerySql( +# sql = uniqueConceptSets[i, ]$conceptSetSql, +# connection = DatabaseConnector::connect(connectionDetails = newConnectionDetails), +# vocabulary_database_schema = newCdmSource$vocabDatabaseSchemaFinal, +# snakeCaseToCamelCase = TRUE +# ) |> +# dplyr::mutate(uniqueConceptSetId = uniqueConceptSets[i, ]$uniqueConceptSetId) |> +# dplyr::tibble() +# +# saveRDS(object = resolvedConceptIdsNewVocabulary, +# file.path( +# "resolvedConceptIdsVocabulary", +# paste0("resolvedConceptIdsNewVocabulary", +# i, +# ".RDS") +# )) +# } else { +# writeLines(paste0("Skipping ", +# OhdsiHelpers::formatIntegerWithComma(i))) +# } +# +# } + + +old <- list.files( + path = "resolvedConceptIdsVocabulary", + pattern = "resolvedConceptIdsOldVocabulary", + recursive = TRUE, + all.files = TRUE, + full.names = TRUE +) +new <- list.files( + path = "resolvedConceptIdsVocabulary", + pattern = "resolvedConceptIdsNewVocabulary", + recursive = TRUE, + all.files = TRUE, + full.names = TRUE +) + +resolvedConceptIdsOldVocabulary <- c() +resolvedConceptIdsNewVocabulary <- c() +for (i in (1:length(old))) { + resolvedConceptIdsOldVocabulary[[i]] <- readRDS(old[[i]]) +} +for (i in (1:length(new))) { + resolvedConceptIdsNewVocabulary[[i]] <- readRDS(new[[i]]) +} +# save in each iteration +resolvedConceptIdsOldVocabulary |> dplyr::bind_rows() |> saveRDS(file = "resolvedConceptIdsOldVocabulary.RDS") +resolvedConceptIdsNewVocabulary |> dplyr::bind_rows() |> saveRDS(file = "resolvedConceptIdsNewVocabulary.RDS") + +# read resolved set +resolvedConceptIdsOldVocabulary <- + readRDS("resolvedConceptIdsOldVocabulary.RDS") +resolvedConceptIdsNewVocabulary <- + readRDS("resolvedConceptIdsNewVocabulary.RDS") + +# #get mapped concept set +# mappedConceptsOldVocabulary <- +# ConceptSetDiagnostics::getMappedSourceConcepts( +# conceptIds = c( +# resolvedConceptIdsOldVocabulary$conceptId, +# resolvedConceptIdsNewVocabulary$conceptId +# ) |> +# unique() |> +# sort(), +# connection = DatabaseConnector::connect(connectionDetails = oldConnectionDetails), +# vocabularyDatabaseSchema = oldCdmSource$vocabDatabaseSchemaFinal +# ) +# saveRDS(object = mappedConceptsOldVocabulary, file = "mappedConceptsOldVocabulary.RDS") +mappedConceptsOldVocabulary <- readRDS("mappedConceptsOldVocabulary.RDS") + + +# mappedConceptsNewVocabulary <- +# ConceptSetDiagnostics::getMappedSourceConcepts( +# conceptIds = c( +# resolvedConceptIdsOldVocabulary$conceptId, +# resolvedConceptIdsNewVocabulary$conceptId +# ) |> +# unique() |> +# sort(), +# connection = DatabaseConnector::connect(connectionDetails = newConnectionDetails), +# vocabularyDatabaseSchema = newCdmSource$vocabDatabaseSchemaFinal +# ) +# saveRDS(object = mappedConceptsNewVocabulary, file = "mappedConceptsNewVocabulary.RDS") +mappedConceptsNewVocabulary <- readRDS("mappedConceptsNewVocabulary.RDS") + +# #get concept id details +# conceptIdDetailsNew <- ConceptSetDiagnostics::getConceptIdDetails( +# conceptIds = c( +# resolvedConceptIdsOldVocabulary$conceptId, +# resolvedConceptIdsNewVocabulary$conceptId, +# mappedConceptsNewVocabulary$conceptId, +# mappedConceptsOldVocabulary$conceptId +# ) |> +# unique() |> +# sort(), +# connection = DatabaseConnector::connect(connectionDetails = newConnectionDetails), +# vocabularyDatabaseSchema = newCdmSource$vocabDatabaseSchemaFinal +# ) +# saveRDS(object = conceptIdDetailsNew, file = "conceptIdDetailsNew.RDS") +conceptIdDetailsNew <- readRDS("conceptIdDetailsNew.RDS") + +# conceptIdDetailsOld <- ConceptSetDiagnostics::getConceptIdDetails( +# conceptIds = c( +# resolvedConceptIdsOldVocabulary$conceptId, +# resolvedConceptIdsNewVocabulary$conceptId, +# mappedConceptsNewVocabulary$conceptId, +# mappedConceptsOldVocabulary$conceptId +# ) |> +# unique() |> +# sort(), +# connection = DatabaseConnector::connect(connectionDetails = oldConnectionDetails), +# vocabularyDatabaseSchema = oldCdmSource$vocabDatabaseSchemaFinal +# ) +# saveRDS(object = conceptIdDetailsOld, file = "conceptIdDetailsOld.RDS") +conceptIdDetailsOld <- readRDS("conceptIdDetailsOld.RDS") + +# conceptCount <- +# ConceptSetDiagnostics::getConceptRecordCount( +# connectionDetails = OhdsiHelpers::createConnectionDetails(cdmSources = cdmSources, database = "health_verity"), +# cdmDatabaseSchema = OhdsiHelpers::getCdmSource(cdmSources = cdmSources, database = "health_verity") |> +# dplyr::pull(cdmDatabaseSchemaFinal), +# minCellCount = 0, +# conceptIds = conceptIdDetailsNew$conceptId +# ) +# saveRDS(object = conceptCount, file = "conceptCount.RDS") +conceptCount <- readRDS("conceptCount.RDS") |> + dplyr::group_by(conceptId) |> + dplyr::summarise(countCount = max(conceptCount), + subjectCount = max(subjectCount)) |> + dplyr::ungroup() + + +conceptIdCompare <- dplyr::bind_rows( + conceptIdDetailsNew |> + dplyr::select(conceptId), + conceptIdDetailsOld |> + dplyr::select(conceptId) +) |> + dplyr::distinct() |> + dplyr::left_join( + conceptIdDetailsNew |> + dplyr::select(conceptId, + domainId, + standardConcept) |> + dplyr::rename(newDomainId = domainId, + newStandardConcept = standardConcept) |> + dplyr::distinct() |> + dplyr::mutate(presentInNew = 1) |> + tidyr::replace_na(list(newStandardConcept = 'N')) + ) |> + dplyr::left_join( + conceptIdDetailsOld |> + dplyr::select(conceptId, + domainId, + standardConcept) |> + dplyr::distinct() |> + dplyr::rename(oldDomainId = domainId, + oldStandardConcept = standardConcept) |> + dplyr::mutate(presentInOld = 1) |> + tidyr::replace_na(list(oldStandardConcept = 'N')) + ) |> + dplyr::mutate(presentIn = presentInOld + presentInNew) |> + dplyr::mutate(domainChange = dplyr::if_else(newDomainId == oldDomainId, 0, 1)) |> + dplyr::mutate(standardChange = dplyr::if_else(newStandardConcept == oldStandardConcept, 0, 1)) |> + dplyr::left_join(conceptIdDetailsNew |> + dplyr::select(conceptId, + conceptName, + vocabularyId)) |> + dplyr::select( + conceptId, + conceptName, + vocabularyId, + oldDomainId, + oldStandardConcept, + newDomainId, + newStandardConcept, + domainChange, + standardChange, + presentIn + ) |> + dplyr::left_join(conceptCount) |> + dplyr::arrange(dplyr::desc(subjectCount)) + + +# read original concept set +conceptSetsInAllCohortDefinition <- + readRDS("conceptSetsInAllCohortDefinition.RDS") + + +# compare output of old and new vocabulary +uniqueConceptSetIds <- + resolvedConceptIdsOldVocabulary$uniqueConceptSetId |> unique() |> sort() + +onlyInOld <- c() +onlyInNew <- c() + + +for (i in (1:length(uniqueConceptSetIds))) { + uniqueConceptSetIdRowValue <- uniqueConceptSetIds[[i]] + + compareResolved <- OhdsiHelpers::compareTibbles( + resolvedConceptIdsOldVocabulary |> dplyr::filter(uniqueConceptSetId == uniqueConceptSetIdRowValue), + resolvedConceptIdsNewVocabulary |> dplyr::filter(uniqueConceptSetId == uniqueConceptSetIdRowValue) + ) + onlyInOld[[i]] <- compareResolved$presentInFirstNotSecond + onlyInNew[[i]] <- compareResolved$presentInSecondNotFirst + +} + +onlyInOld <- dplyr::bind_rows(onlyInOld) +onlyInNew <- dplyr::bind_rows(onlyInNew) + + +#check if conceptSet has conceptId's that can be removed +oldConceptSetDataFrame <- c() +newConceptSetDataFrame <- c() +conceptSetsInAllCohortDefinition <- + conceptSetsInAllCohortDefinition |> + dplyr::arrange(uniqueConceptSetId) + +for (i in (1:nrow(conceptSetsInAllCohortDefinition))) { + print(i) + conceptSetExpression <- + conceptSetsInAllCohortDefinition[i, ]$conceptSetExpression |> + RJSONIO::fromJSON(digist = 23) + + conceptIdHasBecomeNonStandarOrDomainChange <- + conceptSetExpression |> + ConceptSetDiagnostics::convertConceptSetExpressionToDataFrame() |> + dplyr::select(conceptId) |> + dplyr::distinct() |> + dplyr::inner_join(conceptIdCompare, + by = "conceptId") |> + dplyr::filter(any(domainChange == 1, + standardChange == 1)) + + if (nrow(conceptIdHasBecomeNonStandarOrDomainChange) > 0) { + standardChanged <- FALSE + domainChanged <- FALSE + conceptCleanUp <- FALSE + + writeLines( + paste0( + "cohort id ", + conceptSetsInAllCohortDefinition[i, ]$cohortId, + " (", + OhdsiHelpers::formatIntegerWithComma(i), + " of ", + OhdsiHelpers::formatIntegerWithComma(nrow(conceptSetsInAllCohortDefinition)), + ") with concept set ", + conceptSetsInAllCohortDefinition[i, ]$conceptSetName + ) + ) + + domainChange <- + conceptIdHasBecomeNonStandarOrDomainChange |> + dplyr::filter(domainChange == 1) + + if (nrow(domainChange) > 0) { + View(domainChange) + domainChanged <- TRUE + } + + standardChange <- + conceptIdHasBecomeNonStandarOrDomainChange |> + dplyr::filter(standardChange == 1) + + if (nrow(standardChange) > 0) { + conceptCleanUp <- TRUE + } + + standardChangeInResolvedSet <- + resolvedConceptIdsNewVocabulary |> + dplyr::filter(uniqueConceptSetId %in% conceptSetsInAllCohortDefinition[i, ]$uniqueConceptSetId) |> + dplyr::select(conceptId) |> + dplyr::distinct() |> + dplyr::left_join( + mappedConceptsNewVocabulary |> + dplyr::select(givenConceptId, + conceptId) |> + dplyr::rename(conceptId = givenConceptId, + mappedConceptId = conceptId) |> + dplyr::distinct(), + by = "conceptId" + ) |> + dplyr::filter(mappedConceptId %in% standardChange$conceptId) |> + dplyr::pull(mappedConceptId) |> + unique() + + if (length(standardChangeInResolvedSet) > 0) { + View(standardChange) + standardChanged <- TRUE + if (length(setdiff(standardChange$conceptId, standardChangeInResolvedSet)) == 0) { + writeLines("---------No mapping issues - JUST clean up") + } else { + writeLines("---------MAPPING ISSUES") + } + } + + if (any(standardChanged, + domainChanged, + conceptCleanUp)) { + conceptSetsInAllCohortDefinition[i, ]$cohortId |> as.character() |> clipr::write_clip() + browser() + View(standardChange) + + } + } +} \ No newline at end of file From 2114e4feee6b1d0e6147aa8050701d2549dbd5b5 Mon Sep 17 00:00:00 2001 From: Gowtham Rao Date: Thu, 25 Jul 2024 10:00:56 -0400 Subject: [PATCH 2/8] Add script of VA Cipher --- extras/UpdatePhenotypes.R | 2 +- extras/VP Cipher Mapping.R | 135 +++++++++++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+), 1 deletion(-) create mode 100644 extras/VP Cipher Mapping.R diff --git a/extras/UpdatePhenotypes.R b/extras/UpdatePhenotypes.R index 60ccb866..90c833f1 100644 --- a/extras/UpdatePhenotypes.R +++ b/extras/UpdatePhenotypes.R @@ -371,7 +371,7 @@ for (i in (1:nrow(cohortRecord))) { )) parsed <- - PrivateScripts::parseCohortDefinitionSpecifications(cohortDefinition = cohortJson |> + CirceComparator::parseCohortDefinitionSpecifications(cohortDefinition = cohortJson |> RJSONIO::fromJSON(digits = 23)) if (nrow(parsed) > 0) { cohortRecordAugmented[[i]] <- cohortRecordUnit |> diff --git a/extras/VP Cipher Mapping.R b/extras/VP Cipher Mapping.R new file mode 100644 index 00000000..3e26ada3 --- /dev/null +++ b/extras/VP Cipher Mapping.R @@ -0,0 +1,135 @@ +#connection +cdmSource <- + OhdsiHelpers::getCdmSource(cdmSources = cdmSources, database = "truven_ccae") +connectionDetails <- + OhdsiHelpers::createConnectionDetails(cdmSources = cdmSources, database = "truven_ccae") +connection <- + DatabaseConnector::connect(connectionDetails = connectionDetails) + +phenotypeLog <- PhenotypeLibrary::getPhenotypeLog() |> + dplyr::filter(nchar(ohdsiForumPost) > 10) |> + dplyr::filter(stringr::str_detect(string = .data$contributors, pattern = "Gowtham")) |> + dplyr::arrange(dplyr::desc(cohortId)) |> + dplyr::mutate(rn = dplyr::row_number()) |> + dplyr::filter(rn <= 5) |> + dplyr::select(-rn) |> + dplyr::arrange(cohortId) + +conceptSetLog <- + PhenotypeLibrary::getPlConceptDefinitionSet(cohortIds = phenotypeLog$cohortId) + +uniqueConceptSetIds <- conceptSetLog |> + dplyr::select(uniqueConceptSetId, + conceptSetExpression) |> + dplyr::distinct() + + +sourceCodes <- c() + +for (i in (1:nrow(uniqueConceptSetIds))) { + uniqueConceptSetId <- uniqueConceptSetIds[i, ] + + conceptSetExpression <- + uniqueConceptSetId$conceptSetExpression |> + RJSONIO::fromJSON(digits = 23) + + resolvedConceptSets <- + ConceptSetDiagnostics::resolveConceptSetExpression( + conceptSetExpression = conceptSetExpression, + connection = connection, + vocabularyDatabaseSchema = cdmSource$vocabDatabaseSchemaFinal + ) |> + dplyr::mutate(uniqueConceptSetId = uniqueConceptSetId$uniqueConceptSetId) + + mappedSource <- + ConceptSetDiagnostics::getMappedSourceConcepts( + conceptIds = resolvedConceptSets$conceptId |> unique(), + connection = connection, + vocabularyDatabaseSchema = cdmSource$vocabDatabaseSchemaFinal + ) |> + dplyr::mutate(uniqueConceptSetId = uniqueConceptSetId$uniqueConceptSetId) + + sourceCodes <- dplyr::bind_rows( + resolvedConceptSets |> + dplyr::mutate(type = 'resolvedConceptSets'), + mappedSource |> + dplyr::mutate(type = 'mappedSource') + ) +} + + + +sourceCodes <- dplyr::bind_rows(sourceCodes) + +sourceCodesInEntryEvent <- + sourceCodes |> + dplyr::filter(type == "mappedSource") |> + dplyr::filter(vocabularyId %in% c("ICD10CM", "ICD9CM", "ICD9Proc", "ICD10Proc")) |> + dplyr::inner_join( + conceptSetLog |> + dplyr::filter(conceptSetUsedInEntryEvent == 1) |> + dplyr::select(cohortId, + uniqueConceptSetId) |> + dplyr::distinct() + ) |> + dplyr::select(cohortId, + vocabularyId, + conceptCode) |> + dplyr::arrange(cohortId, + vocabularyId, + conceptCode) |> + dplyr::mutate( + conceptCode = paste0("'", conceptCode, "'"), + vocabularyId = paste0("cipher", vocabularyId) + ) |> + dplyr::group_by(cohortId, + vocabularyId) |> + dplyr::summarise(code = paste0(conceptCode, collapse = ", ")) |> + dplyr::ungroup() |> + tidyr::pivot_wider(id_cols = cohortId, + names_from = vocabularyId, + values_from = code) + + + +vaCipherMapping <- phenotypeLog |> + dplyr::mutate( + cipherOhdsiPhenotypeLibraryVersion = addedVersion, + cipherOhdsiCohortId = cohortId, + cipherCategory = domainsInEntryEvents, + cipherFullName = cohortNameLong, + cipherKeyWords = hashTag, + cipherClassification = dplyr::if_else( + condition = stringr::str_detect(string = domainsInEntryEvents, + pattern = 'Condition'), + true = 'Disease', + false = 'Other' + ), + cipherDiseaseDomain = "", + # cannot systematically map because not controlled vocabulary + cipherAuthor = contributors, + cipherContact = contributorOrcIds, + cipherPublication = ohdsiForumPost, + cipherLink = ohdsiForumPost, + cipherAcknowledgement = ohdsiForumPost, + cipherVaDeveloped = 'No', + cipherDataSources = 'OMOP (Observational Medical Outcomes Partnership)', + cipherOtherSource = '', + cipherAlgorithmPurpose = 'Research', + cipherContext = 'Research', + cipherOtherDescription = '', + cipherPhenotypeUse = 'Primary Outcome/Exposure', + cipherPhenotypeDescription = logicDescription, + cipherPopulationDescription = ohdsiForumPost, + cipherDateAlgorithmWasCreated = addedDate, + cipherDataUsedStart = censorWindowStartDate, + cipherDataUsedEnd = censorWindowEndDate, + cipherMethodUsed = 'Rules-Based', + cipherAlgorithmDesc = logicDescription + ) |> + dplyr::left_join(sourceCodesInEntryEvent, + by = "cohortId") |> + dplyr::select(dplyr::all_of(dplyr::starts_with("cipher"))) + + +readr::write_excel_csv(x = vaCipherMapping, file = "vaCipherMapping.csv") From c872c6009ce4e8c0965b5010c2ea8bfb97772b57 Mon Sep 17 00:00:00 2001 From: Gowtham Rao Date: Thu, 22 Aug 2024 15:03:53 -0400 Subject: [PATCH 3/8] Update VP Cipher Mapping.R --- extras/VP Cipher Mapping.R | 62 ++++++++++++++++++++++++++++++++------ 1 file changed, 53 insertions(+), 9 deletions(-) diff --git a/extras/VP Cipher Mapping.R b/extras/VP Cipher Mapping.R index 3e26ada3..38011f63 100644 --- a/extras/VP Cipher Mapping.R +++ b/extras/VP Cipher Mapping.R @@ -94,11 +94,22 @@ sourceCodesInEntryEvent <- vaCipherMapping <- phenotypeLog |> dplyr::mutate( - cipherOhdsiPhenotypeLibraryVersion = addedVersion, - cipherOhdsiCohortId = cohortId, - cipherCategory = domainsInEntryEvents, + # cipherOhdsiPhenotypeLibraryVersion = addedVersion, + # cipherOhdsiCohortId = cohortId, + cipherCategory = dplyr::if_else(condition = stringr::str_detect(string = tolower(domainsInEntryEvents), pattern = 'condition'), + true = 'General Phenotype', + false = dplyr::if_else(condition = stringr::str_detect(string = tolower(domainsInEntryEvents), pattern = 'drug'), + true = "Medication", + false = dplyr::if_else(condition = stringr::str_detect(string = tolower(domainsInEntryEvents), + pattern = 'measurement'), + true = "Lab", + false = "Other"))), cipherFullName = cohortNameLong, - cipherKeyWords = hashTag, + cipherKeyWords = paste0("OHDSI Cohort ID: ", cohortId, dplyr::if_else(condition = is.na(addedVersion), + true = "", + false = paste0(" (Locked version: ", + addedVersion, + ")"))), #maybe hashTag in future cipherClassification = dplyr::if_else( condition = stringr::str_detect(string = domainsInEntryEvents, pattern = 'Condition'), @@ -108,28 +119,61 @@ vaCipherMapping <- phenotypeLog |> cipherDiseaseDomain = "", # cannot systematically map because not controlled vocabulary cipherAuthor = contributors, - cipherContact = contributorOrcIds, + cipherContact = "noreply@ohdsi.org", #contributorOrcIds, -- non functional email will bounce cipherPublication = ohdsiForumPost, cipherLink = ohdsiForumPost, cipherAcknowledgement = ohdsiForumPost, cipherVaDeveloped = 'No', cipherDataSources = 'OMOP (Observational Medical Outcomes Partnership)', cipherOtherSource = '', - cipherAlgorithmPurpose = 'Research', cipherContext = 'Research', cipherOtherDescription = '', cipherPhenotypeUse = 'Primary Outcome/Exposure', - cipherPhenotypeDescription = logicDescription, + cipherPhenotypeDescription = paste0(cohortNameLong, ". Sourced from the OHDSI Phenotype Library. For more details please visit https://ohdsi.github.io/PhenotypeLibrary/articles/CohortDefinitionsInOhdsiPhenotypeLibrary.html"), #logicDescription, cipherPopulationDescription = ohdsiForumPost, cipherDateAlgorithmWasCreated = addedDate, cipherDataUsedStart = censorWindowStartDate, cipherDataUsedEnd = censorWindowEndDate, cipherMethodUsed = 'Rules-Based', - cipherAlgorithmDesc = logicDescription + cipherAlgorithmDesc = logicDescription, + cipherCodeSampleLink = paste0( + "https://github.com/OHDSI/PhenotypeLibrary/blob/main/inst/sql/sql_server/", + cohortId, + ".sql" + ), + cipherCodeSampleLanguage = "SQL", ) |> dplyr::left_join(sourceCodesInEntryEvent, by = "cohortId") |> - dplyr::select(dplyr::all_of(dplyr::starts_with("cipher"))) + dplyr::select(dplyr::all_of(dplyr::starts_with("cipher"))) |> + dplyr::mutate(cipherICD10CM = "", + cipherICD9CM = "") readr::write_excel_csv(x = vaCipherMapping, file = "vaCipherMapping.csv") + + + + +sourceCodesLongForm <- + sourceCodes |> + # dplyr::filter(type == "mappedSource") |> + # dplyr::filter(vocabularyId %in% c("ICD10CM", "ICD9CM", "ICD9Proc", "ICD10Proc")) |> + dplyr::inner_join( + conceptSetLog |> + dplyr::filter(conceptSetUsedInEntryEvent == 1) |> + dplyr::select(cohortId, + uniqueConceptSetId) |> + dplyr::distinct() + ) |> + dplyr::select(cohortId, + conceptId, + vocabularyId, + conceptCode, + conceptName, + standardConcept) |> + dplyr::arrange(cohortId, + vocabularyId, + conceptCode) + +readr::write_excel_csv(x = sourceCodesLongForm, file = "vaCipherSourceCodesLongForm.csv") From dcfbd56bfffe300cd61642669fc12e65ca231e21 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Sep 2024 21:37:13 +0000 Subject: [PATCH 4/8] Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 4.1.7. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v2...v4.1.7) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- .github/workflows/R_CMD_check_Hades.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/R_CMD_check_Hades.yaml b/.github/workflows/R_CMD_check_Hades.yaml index 5068891e..7930891d 100644 --- a/.github/workflows/R_CMD_check_Hades.yaml +++ b/.github/workflows/R_CMD_check_Hades.yaml @@ -156,7 +156,7 @@ jobs: - name: Download package tarball if: ${{ env.new_version != '' }} - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4.1.7 with: name: package_tarball From 3114d5d58815adad14e33989d312170b73174131 Mon Sep 17 00:00:00 2001 From: Gowtham Rao Date: Thu, 26 Sep 2024 12:51:19 -0400 Subject: [PATCH 5/8] updated definitions --- DESCRIPTION | 2 +- extras/UpdatePhenotypes.R | 4 +- inst/Cohorts.csv | 16063 ++++++++++++++++++++++++++++-- inst/cohorts/1029.json | 2 +- inst/cohorts/1163.json | 2 +- inst/cohorts/1215.json | 4 +- inst/cohorts/1225.json | 2 +- inst/cohorts/1226.json | 2 +- inst/cohorts/1227.json | 2 +- inst/cohorts/1228.json | 2 +- inst/cohorts/1229.json | 8 +- inst/cohorts/1316.json | 1542 +++ inst/cohorts/1317.json | 61 + inst/cohorts/16.json | 2 +- inst/cohorts/208.json | 4 +- inst/cohorts/216.json | 8 +- inst/cohorts/218.json | 2 +- inst/cohorts/219.json | 102 - inst/cohorts/221.json | 4 +- inst/cohorts/235.json | 2 +- inst/cohorts/255.json | 4 +- inst/cohorts/267.json | 2 +- inst/cohorts/268.json | 2 +- inst/cohorts/269.json | 2 +- inst/cohorts/275.json | 2 +- inst/cohorts/276.json | 6 +- inst/cohorts/29.json | 2 +- inst/cohorts/362.json | 2 +- inst/cohorts/371.json | 2 +- inst/cohorts/394.json | 2 +- inst/cohorts/504.json | 4 +- inst/cohorts/6.json | 4 +- inst/cohorts/633.json | 4 +- inst/cohorts/64.json | 4 +- inst/cohorts/645.json | 4 +- inst/cohorts/720.json | 2 +- inst/cohorts/723.json | 1172 ++- inst/cohorts/724.json | 1187 ++- inst/cohorts/725.json | 2 +- inst/cohorts/726.json | 80 +- inst/cohorts/728.json | 2 +- inst/cohorts/736.json | 287 +- inst/cohorts/737.json | 8 +- inst/cohorts/740.json | 8 +- inst/cohorts/741.json | 535 - inst/cohorts/780.json | 2 +- inst/cohorts/862.json | 2 +- inst/cohorts/InclusionRules.csv | 7 +- inst/sql/sql_server/10.sql | 62 +- inst/sql/sql_server/100.sql | 62 +- inst/sql/sql_server/1000.sql | 68 +- inst/sql/sql_server/1001.sql | 62 +- inst/sql/sql_server/1002.sql | 64 +- inst/sql/sql_server/1003.sql | 62 +- inst/sql/sql_server/1004.sql | 62 +- inst/sql/sql_server/1005.sql | 68 +- inst/sql/sql_server/1006.sql | 68 +- inst/sql/sql_server/1007.sql | 68 +- inst/sql/sql_server/1009.sql | 122 +- inst/sql/sql_server/1010.sql | 80 +- inst/sql/sql_server/1011.sql | 62 +- inst/sql/sql_server/1012.sql | 62 +- inst/sql/sql_server/1013.sql | 68 +- inst/sql/sql_server/1016.sql | 62 +- inst/sql/sql_server/1017.sql | 62 +- inst/sql/sql_server/1018.sql | 68 +- inst/sql/sql_server/1019.sql | 70 +- inst/sql/sql_server/1020.sql | 110 +- inst/sql/sql_server/1021.sql | 80 +- inst/sql/sql_server/1022.sql | 86 +- inst/sql/sql_server/1023.sql | 80 +- inst/sql/sql_server/1024.sql | 76 +- inst/sql/sql_server/1025.sql | 68 +- inst/sql/sql_server/1026.sql | 62 +- inst/sql/sql_server/1027.sql | 68 +- inst/sql/sql_server/1028.sql | 68 +- inst/sql/sql_server/1029.sql | 70 +- inst/sql/sql_server/1030.sql | 62 +- inst/sql/sql_server/1031.sql | 62 +- inst/sql/sql_server/1032.sql | 92 +- inst/sql/sql_server/1033.sql | 80 +- inst/sql/sql_server/1034.sql | 62 +- inst/sql/sql_server/1035.sql | 108 +- inst/sql/sql_server/1036.sql | 108 +- inst/sql/sql_server/1037.sql | 108 +- inst/sql/sql_server/1038.sql | 108 +- inst/sql/sql_server/1039.sql | 108 +- inst/sql/sql_server/1040.sql | 108 +- inst/sql/sql_server/1041.sql | 108 +- inst/sql/sql_server/1042.sql | 108 +- inst/sql/sql_server/1043.sql | 114 +- inst/sql/sql_server/1044.sql | 114 +- inst/sql/sql_server/1045.sql | 114 +- inst/sql/sql_server/1046.sql | 114 +- inst/sql/sql_server/1047.sql | 114 +- inst/sql/sql_server/1048.sql | 108 +- inst/sql/sql_server/1049.sql | 114 +- inst/sql/sql_server/1050.sql | 120 +- inst/sql/sql_server/1051.sql | 120 +- inst/sql/sql_server/1052.sql | 126 +- inst/sql/sql_server/1053.sql | 132 +- inst/sql/sql_server/1054.sql | 132 +- inst/sql/sql_server/1055.sql | 132 +- inst/sql/sql_server/1056.sql | 132 +- inst/sql/sql_server/1057.sql | 114 +- inst/sql/sql_server/1058.sql | 114 +- inst/sql/sql_server/1059.sql | 128 +- inst/sql/sql_server/1060.sql | 126 +- inst/sql/sql_server/1061.sql | 126 +- inst/sql/sql_server/1062.sql | 126 +- inst/sql/sql_server/1063.sql | 132 +- inst/sql/sql_server/1064.sql | 132 +- inst/sql/sql_server/1065.sql | 132 +- inst/sql/sql_server/1066.sql | 114 +- inst/sql/sql_server/1067.sql | 114 +- inst/sql/sql_server/1068.sql | 114 +- inst/sql/sql_server/1069.sql | 114 +- inst/sql/sql_server/1070.sql | 114 +- inst/sql/sql_server/1071.sql | 56 +- inst/sql/sql_server/1072.sql | 98 +- inst/sql/sql_server/1073.sql | 86 +- inst/sql/sql_server/1074.sql | 74 +- inst/sql/sql_server/1075.sql | 62 +- inst/sql/sql_server/1076.sql | 62 +- inst/sql/sql_server/1077.sql | 68 +- inst/sql/sql_server/1078.sql | 68 +- inst/sql/sql_server/1079.sql | 68 +- inst/sql/sql_server/1080.sql | 68 +- inst/sql/sql_server/1081.sql | 74 +- inst/sql/sql_server/1082.sql | 62 +- inst/sql/sql_server/1083.sql | 62 +- inst/sql/sql_server/1084.sql | 68 +- inst/sql/sql_server/1085.sql | 68 +- inst/sql/sql_server/1086.sql | 62 +- inst/sql/sql_server/1087.sql | 70 +- inst/sql/sql_server/1088.sql | 68 +- inst/sql/sql_server/1089.sql | 74 +- inst/sql/sql_server/1090.sql | 68 +- inst/sql/sql_server/1091.sql | 204 +- inst/sql/sql_server/1093.sql | 76 +- inst/sql/sql_server/1094.sql | 76 +- inst/sql/sql_server/1095.sql | 76 +- inst/sql/sql_server/1097.sql | 76 +- inst/sql/sql_server/1098.sql | 76 +- inst/sql/sql_server/1099.sql | 76 +- inst/sql/sql_server/11.sql | 68 +- inst/sql/sql_server/1100.sql | 76 +- inst/sql/sql_server/1101.sql | 76 +- inst/sql/sql_server/1102.sql | 76 +- inst/sql/sql_server/1103.sql | 76 +- inst/sql/sql_server/1104.sql | 60 +- inst/sql/sql_server/1105.sql | 64 +- inst/sql/sql_server/1106.sql | 482 +- inst/sql/sql_server/1150.sql | 62 +- inst/sql/sql_server/1151.sql | 68 +- inst/sql/sql_server/1152.sql | 68 +- inst/sql/sql_server/1153.sql | 62 +- inst/sql/sql_server/1154.sql | 68 +- inst/sql/sql_server/1155.sql | 74 +- inst/sql/sql_server/1156.sql | 70 +- inst/sql/sql_server/1157.sql | 62 +- inst/sql/sql_server/1158.sql | 108 +- inst/sql/sql_server/1159.sql | 62 +- inst/sql/sql_server/1160.sql | 62 +- inst/sql/sql_server/1161.sql | 110 +- inst/sql/sql_server/1162.sql | 62 +- inst/sql/sql_server/1163.sql | 104 +- inst/sql/sql_server/1164.sql | 62 +- inst/sql/sql_server/1165.sql | 68 +- inst/sql/sql_server/1166.sql | 68 +- inst/sql/sql_server/1167.sql | 62 +- inst/sql/sql_server/1168.sql | 62 +- inst/sql/sql_server/1169.sql | 62 +- inst/sql/sql_server/1170.sql | 62 +- inst/sql/sql_server/1171.sql | 62 +- inst/sql/sql_server/1172.sql | 62 +- inst/sql/sql_server/1173.sql | 62 +- inst/sql/sql_server/1174.sql | 62 +- inst/sql/sql_server/1175.sql | 62 +- inst/sql/sql_server/1176.sql | 62 +- inst/sql/sql_server/1177.sql | 62 +- inst/sql/sql_server/1178.sql | 62 +- inst/sql/sql_server/1179.sql | 80 +- inst/sql/sql_server/1180.sql | 62 +- inst/sql/sql_server/1181.sql | 108 +- inst/sql/sql_server/1182.sql | 108 +- inst/sql/sql_server/1183.sql | 108 +- inst/sql/sql_server/1184.sql | 68 +- inst/sql/sql_server/1185.sql | 62 +- inst/sql/sql_server/1186.sql | 62 +- inst/sql/sql_server/1187.sql | 108 +- inst/sql/sql_server/1188.sql | 80 +- inst/sql/sql_server/1189.sql | 68 +- inst/sql/sql_server/119.sql | 74 +- inst/sql/sql_server/1190.sql | 108 +- inst/sql/sql_server/1191.sql | 80 +- inst/sql/sql_server/1192.sql | 62 +- inst/sql/sql_server/1193.sql | 74 +- inst/sql/sql_server/1194.sql | 92 +- inst/sql/sql_server/1195.sql | 64 +- inst/sql/sql_server/1196.sql | 68 +- inst/sql/sql_server/1197.sql | 68 +- inst/sql/sql_server/1198.sql | 62 +- inst/sql/sql_server/1199.sql | 68 +- inst/sql/sql_server/12.sql | 62 +- inst/sql/sql_server/1200.sql | 62 +- inst/sql/sql_server/1201.sql | 108 +- inst/sql/sql_server/1202.sql | 108 +- inst/sql/sql_server/1203.sql | 108 +- inst/sql/sql_server/1204.sql | 108 +- inst/sql/sql_server/1205.sql | 108 +- inst/sql/sql_server/1206.sql | 108 +- inst/sql/sql_server/1207.sql | 108 +- inst/sql/sql_server/1208.sql | 108 +- inst/sql/sql_server/1209.sql | 108 +- inst/sql/sql_server/1210.sql | 108 +- inst/sql/sql_server/1211.sql | 108 +- inst/sql/sql_server/1212.sql | 108 +- inst/sql/sql_server/1213.sql | 108 +- inst/sql/sql_server/1214.sql | 108 +- inst/sql/sql_server/1215.sql | 68 +- inst/sql/sql_server/1217.sql | 108 +- inst/sql/sql_server/1219.sql | 62 +- inst/sql/sql_server/1220.sql | 62 +- inst/sql/sql_server/1221.sql | 62 +- inst/sql/sql_server/1222.sql | 62 +- inst/sql/sql_server/1223.sql | 80 +- inst/sql/sql_server/1224.sql | 98 +- inst/sql/sql_server/1225.sql | 134 +- inst/sql/sql_server/1226.sql | 134 +- inst/sql/sql_server/1227.sql | 136 +- inst/sql/sql_server/1228.sql | 136 +- inst/sql/sql_server/1229.sql | 90 +- inst/sql/sql_server/123.sql | 62 +- inst/sql/sql_server/1231.sql | 62 +- inst/sql/sql_server/1244.sql | 108 +- inst/sql/sql_server/1261.sql | 74 +- inst/sql/sql_server/1262.sql | 74 +- inst/sql/sql_server/1263.sql | 80 +- inst/sql/sql_server/1264.sql | 62 +- inst/sql/sql_server/1265.sql | 76 +- inst/sql/sql_server/1266.sql | 62 +- inst/sql/sql_server/1267.sql | 68 +- inst/sql/sql_server/1268.sql | 76 +- inst/sql/sql_server/1269.sql | 62 +- inst/sql/sql_server/1270.sql | 62 +- inst/sql/sql_server/1271.sql | 62 +- inst/sql/sql_server/1272.sql | 68 +- inst/sql/sql_server/1273.sql | 62 +- inst/sql/sql_server/1274.sql | 74 +- inst/sql/sql_server/1275.sql | 74 +- inst/sql/sql_server/1276.sql | 68 +- inst/sql/sql_server/1277.sql | 68 +- inst/sql/sql_server/1278.sql | 166 +- inst/sql/sql_server/1279.sql | 112 +- inst/sql/sql_server/1280.sql | 74 +- inst/sql/sql_server/1281.sql | 80 +- inst/sql/sql_server/1282.sql | 62 +- inst/sql/sql_server/1283.sql | 74 +- inst/sql/sql_server/1284.sql | 62 +- inst/sql/sql_server/1285.sql | 68 +- inst/sql/sql_server/1286.sql | 166 +- inst/sql/sql_server/1287.sql | 62 +- inst/sql/sql_server/1288.sql | 62 +- inst/sql/sql_server/1289.sql | 464 +- inst/sql/sql_server/1290.sql | 58 +- inst/sql/sql_server/1291.sql | 58 +- inst/sql/sql_server/1292.sql | 58 +- inst/sql/sql_server/1293.sql | 58 +- inst/sql/sql_server/1294.sql | 58 +- inst/sql/sql_server/1295.sql | 58 +- inst/sql/sql_server/1296.sql | 58 +- inst/sql/sql_server/1297.sql | 58 +- inst/sql/sql_server/1298.sql | 58 +- inst/sql/sql_server/1299.sql | 58 +- inst/sql/sql_server/13.sql | 68 +- inst/sql/sql_server/1300.sql | 58 +- inst/sql/sql_server/1301.sql | 68 +- inst/sql/sql_server/1303.sql | 68 +- inst/sql/sql_server/1304.sql | 470 +- inst/sql/sql_server/1305.sql | 64 +- inst/sql/sql_server/1306.sql | 64 +- inst/sql/sql_server/1307.sql | 64 +- inst/sql/sql_server/1308.sql | 64 +- inst/sql/sql_server/1309.sql | 64 +- inst/sql/sql_server/1310.sql | 64 +- inst/sql/sql_server/1311.sql | 64 +- inst/sql/sql_server/1312.sql | 64 +- inst/sql/sql_server/1313.sql | 64 +- inst/sql/sql_server/1314.sql | 64 +- inst/sql/sql_server/1315.sql | 64 +- inst/sql/sql_server/1316.sql | 736 ++ inst/sql/sql_server/1317.sql | 283 + inst/sql/sql_server/134.sql | 68 +- inst/sql/sql_server/14.sql | 62 +- inst/sql/sql_server/142.sql | 80 +- inst/sql/sql_server/15.sql | 62 +- inst/sql/sql_server/16.sql | 62 +- inst/sql/sql_server/17.sql | 62 +- inst/sql/sql_server/18.sql | 62 +- inst/sql/sql_server/189.sql | 62 +- inst/sql/sql_server/190.sql | 62 +- inst/sql/sql_server/191.sql | 68 +- inst/sql/sql_server/192.sql | 68 +- inst/sql/sql_server/193.sql | 62 +- inst/sql/sql_server/194.sql | 62 +- inst/sql/sql_server/195.sql | 68 +- inst/sql/sql_server/196.sql | 62 +- inst/sql/sql_server/197.sql | 62 +- inst/sql/sql_server/198.sql | 62 +- inst/sql/sql_server/199.sql | 62 +- inst/sql/sql_server/2.sql | 74 +- inst/sql/sql_server/20.sql | 62 +- inst/sql/sql_server/200.sql | 62 +- inst/sql/sql_server/201.sql | 62 +- inst/sql/sql_server/207.sql | 104 +- inst/sql/sql_server/208.sql | 110 +- inst/sql/sql_server/209.sql | 128 +- inst/sql/sql_server/21.sql | 68 +- inst/sql/sql_server/210.sql | 122 +- inst/sql/sql_server/211.sql | 128 +- inst/sql/sql_server/213.sql | 80 +- inst/sql/sql_server/214.sql | 116 +- inst/sql/sql_server/215.sql | 110 +- inst/sql/sql_server/216.sql | 184 +- inst/sql/sql_server/217.sql | 86 +- inst/sql/sql_server/218.sql | 142 +- inst/sql/sql_server/219.sql | 68 +- inst/sql/sql_server/22.sql | 68 +- inst/sql/sql_server/220.sql | 104 +- inst/sql/sql_server/221.sql | 106 +- inst/sql/sql_server/222.sql | 68 +- inst/sql/sql_server/223.sql | 74 +- inst/sql/sql_server/224.sql | 68 +- inst/sql/sql_server/225.sql | 74 +- inst/sql/sql_server/226.sql | 62 +- inst/sql/sql_server/227.sql | 74 +- inst/sql/sql_server/228.sql | 74 +- inst/sql/sql_server/229.sql | 62 +- inst/sql/sql_server/23.sql | 62 +- inst/sql/sql_server/230.sql | 80 +- inst/sql/sql_server/231.sql | 62 +- inst/sql/sql_server/232.sql | 68 +- inst/sql/sql_server/233.sql | 70 +- inst/sql/sql_server/234.sql | 68 +- inst/sql/sql_server/235.sql | 68 +- inst/sql/sql_server/236.sql | 62 +- inst/sql/sql_server/237.sql | 62 +- inst/sql/sql_server/238.sql | 62 +- inst/sql/sql_server/239.sql | 74 +- inst/sql/sql_server/24.sql | 62 +- inst/sql/sql_server/240.sql | 68 +- inst/sql/sql_server/241.sql | 62 +- inst/sql/sql_server/243.sql | 62 +- inst/sql/sql_server/244.sql | 62 +- inst/sql/sql_server/245.sql | 62 +- inst/sql/sql_server/246.sql | 62 +- inst/sql/sql_server/247.sql | 68 +- inst/sql/sql_server/248.sql | 68 +- inst/sql/sql_server/249.sql | 74 +- inst/sql/sql_server/25.sql | 56 +- inst/sql/sql_server/251.sql | 100 +- inst/sql/sql_server/253.sql | 154 +- inst/sql/sql_server/254.sql | 98 +- inst/sql/sql_server/255.sql | 112 +- inst/sql/sql_server/256.sql | 74 +- inst/sql/sql_server/257.sql | 74 +- inst/sql/sql_server/258.sql | 62 +- inst/sql/sql_server/259.sql | 62 +- inst/sql/sql_server/260.sql | 86 +- inst/sql/sql_server/261.sql | 98 +- inst/sql/sql_server/262.sql | 104 +- inst/sql/sql_server/263.sql | 86 +- inst/sql/sql_server/264.sql | 212 +- inst/sql/sql_server/265.sql | 206 +- inst/sql/sql_server/267.sql | 116 +- inst/sql/sql_server/268.sql | 116 +- inst/sql/sql_server/269.sql | 104 +- inst/sql/sql_server/27.sql | 80 +- inst/sql/sql_server/270.sql | 122 +- inst/sql/sql_server/271.sql | 98 +- inst/sql/sql_server/273.sql | 68 +- inst/sql/sql_server/274.sql | 74 +- inst/sql/sql_server/275.sql | 64 +- inst/sql/sql_server/276.sql | 76 +- inst/sql/sql_server/277.sql | 116 +- inst/sql/sql_server/278.sql | 74 +- inst/sql/sql_server/279.sql | 62 +- inst/sql/sql_server/280.sql | 62 +- inst/sql/sql_server/281.sql | 62 +- inst/sql/sql_server/282.sql | 62 +- inst/sql/sql_server/283.sql | 92 +- inst/sql/sql_server/284.sql | 62 +- inst/sql/sql_server/285.sql | 68 +- inst/sql/sql_server/287.sql | 82 +- inst/sql/sql_server/288.sql | 92 +- inst/sql/sql_server/289.sql | 80 +- inst/sql/sql_server/29.sql | 164 +- inst/sql/sql_server/290.sql | 74 +- inst/sql/sql_server/291.sql | 80 +- inst/sql/sql_server/292.sql | 74 +- inst/sql/sql_server/293.sql | 76 +- inst/sql/sql_server/294.sql | 212 +- inst/sql/sql_server/295.sql | 212 +- inst/sql/sql_server/296.sql | 68 +- inst/sql/sql_server/298.sql | 104 +- inst/sql/sql_server/299.sql | 62 +- inst/sql/sql_server/3.sql | 62 +- inst/sql/sql_server/30.sql | 68 +- inst/sql/sql_server/300.sql | 72 +- inst/sql/sql_server/304.sql | 62 +- inst/sql/sql_server/305.sql | 82 +- inst/sql/sql_server/306.sql | 68 +- inst/sql/sql_server/307.sql | 68 +- inst/sql/sql_server/308.sql | 68 +- inst/sql/sql_server/31.sql | 68 +- inst/sql/sql_server/311.sql | 68 +- inst/sql/sql_server/318.sql | 74 +- inst/sql/sql_server/32.sql | 80 +- inst/sql/sql_server/324.sql | 68 +- inst/sql/sql_server/325.sql | 74 +- inst/sql/sql_server/327.sql | 62 +- inst/sql/sql_server/328.sql | 62 +- inst/sql/sql_server/33.sql | 64 +- inst/sql/sql_server/330.sql | 62 +- inst/sql/sql_server/331.sql | 62 +- inst/sql/sql_server/332.sql | 68 +- inst/sql/sql_server/333.sql | 62 +- inst/sql/sql_server/334.sql | 68 +- inst/sql/sql_server/335.sql | 62 +- inst/sql/sql_server/339.sql | 62 +- inst/sql/sql_server/34.sql | 62 +- inst/sql/sql_server/340.sql | 68 +- inst/sql/sql_server/341.sql | 62 +- inst/sql/sql_server/342.sql | 62 +- inst/sql/sql_server/343.sql | 62 +- inst/sql/sql_server/344.sql | 98 +- inst/sql/sql_server/346.sql | 92 +- inst/sql/sql_server/347.sql | 62 +- inst/sql/sql_server/348.sql | 62 +- inst/sql/sql_server/349.sql | 62 +- inst/sql/sql_server/35.sql | 74 +- inst/sql/sql_server/350.sql | 62 +- inst/sql/sql_server/351.sql | 86 +- inst/sql/sql_server/352.sql | 62 +- inst/sql/sql_server/353.sql | 62 +- inst/sql/sql_server/354.sql | 62 +- inst/sql/sql_server/355.sql | 62 +- inst/sql/sql_server/356.sql | 68 +- inst/sql/sql_server/357.sql | 62 +- inst/sql/sql_server/358.sql | 68 +- inst/sql/sql_server/359.sql | 62 +- inst/sql/sql_server/36.sql | 80 +- inst/sql/sql_server/360.sql | 62 +- inst/sql/sql_server/361.sql | 62 +- inst/sql/sql_server/362.sql | 104 +- inst/sql/sql_server/363.sql | 62 +- inst/sql/sql_server/364.sql | 62 +- inst/sql/sql_server/365.sql | 74 +- inst/sql/sql_server/366.sql | 70 +- inst/sql/sql_server/367.sql | 80 +- inst/sql/sql_server/368.sql | 62 +- inst/sql/sql_server/369.sql | 62 +- inst/sql/sql_server/37.sql | 62 +- inst/sql/sql_server/370.sql | 62 +- inst/sql/sql_server/371.sql | 74 +- inst/sql/sql_server/372.sql | 70 +- inst/sql/sql_server/373.sql | 74 +- inst/sql/sql_server/374.sql | 62 +- inst/sql/sql_server/375.sql | 62 +- inst/sql/sql_server/376.sql | 62 +- inst/sql/sql_server/377.sql | 62 +- inst/sql/sql_server/378.sql | 62 +- inst/sql/sql_server/379.sql | 62 +- inst/sql/sql_server/38.sql | 62 +- inst/sql/sql_server/380.sql | 62 +- inst/sql/sql_server/381.sql | 68 +- inst/sql/sql_server/382.sql | 74 +- inst/sql/sql_server/383.sql | 88 +- inst/sql/sql_server/384.sql | 62 +- inst/sql/sql_server/385.sql | 62 +- inst/sql/sql_server/386.sql | 62 +- inst/sql/sql_server/387.sql | 62 +- inst/sql/sql_server/388.sql | 62 +- inst/sql/sql_server/389.sql | 62 +- inst/sql/sql_server/39.sql | 68 +- inst/sql/sql_server/391.sql | 68 +- inst/sql/sql_server/392.sql | 62 +- inst/sql/sql_server/393.sql | 68 +- inst/sql/sql_server/394.sql | 80 +- inst/sql/sql_server/395.sql | 62 +- inst/sql/sql_server/396.sql | 62 +- inst/sql/sql_server/397.sql | 62 +- inst/sql/sql_server/398.sql | 62 +- inst/sql/sql_server/399.sql | 62 +- inst/sql/sql_server/4.sql | 62 +- inst/sql/sql_server/40.sql | 74 +- inst/sql/sql_server/400.sql | 62 +- inst/sql/sql_server/401.sql | 62 +- inst/sql/sql_server/402.sql | 80 +- inst/sql/sql_server/403.sql | 68 +- inst/sql/sql_server/404.sql | 68 +- inst/sql/sql_server/405.sql | 62 +- inst/sql/sql_server/406.sql | 62 +- inst/sql/sql_server/407.sql | 62 +- inst/sql/sql_server/41.sql | 68 +- inst/sql/sql_server/410.sql | 68 +- inst/sql/sql_server/411.sql | 62 +- inst/sql/sql_server/412.sql | 62 +- inst/sql/sql_server/414.sql | 68 +- inst/sql/sql_server/415.sql | 62 +- inst/sql/sql_server/416.sql | 62 +- inst/sql/sql_server/417.sql | 62 +- inst/sql/sql_server/42.sql | 62 +- inst/sql/sql_server/43.sql | 62 +- inst/sql/sql_server/44.sql | 62 +- inst/sql/sql_server/444.sql | 62 +- inst/sql/sql_server/445.sql | 62 +- inst/sql/sql_server/446.sql | 62 +- inst/sql/sql_server/447.sql | 62 +- inst/sql/sql_server/448.sql | 62 +- inst/sql/sql_server/449.sql | 62 +- inst/sql/sql_server/45.sql | 74 +- inst/sql/sql_server/450.sql | 62 +- inst/sql/sql_server/451.sql | 62 +- inst/sql/sql_server/452.sql | 62 +- inst/sql/sql_server/453.sql | 62 +- inst/sql/sql_server/454.sql | 62 +- inst/sql/sql_server/455.sql | 62 +- inst/sql/sql_server/456.sql | 62 +- inst/sql/sql_server/457.sql | 62 +- inst/sql/sql_server/458.sql | 62 +- inst/sql/sql_server/459.sql | 62 +- inst/sql/sql_server/46.sql | 74 +- inst/sql/sql_server/460.sql | 62 +- inst/sql/sql_server/461.sql | 62 +- inst/sql/sql_server/462.sql | 62 +- inst/sql/sql_server/463.sql | 62 +- inst/sql/sql_server/464.sql | 62 +- inst/sql/sql_server/465.sql | 62 +- inst/sql/sql_server/466.sql | 62 +- inst/sql/sql_server/467.sql | 62 +- inst/sql/sql_server/468.sql | 62 +- inst/sql/sql_server/469.sql | 62 +- inst/sql/sql_server/47.sql | 74 +- inst/sql/sql_server/470.sql | 62 +- inst/sql/sql_server/471.sql | 62 +- inst/sql/sql_server/472.sql | 62 +- inst/sql/sql_server/473.sql | 62 +- inst/sql/sql_server/474.sql | 62 +- inst/sql/sql_server/475.sql | 62 +- inst/sql/sql_server/476.sql | 62 +- inst/sql/sql_server/477.sql | 62 +- inst/sql/sql_server/478.sql | 62 +- inst/sql/sql_server/479.sql | 62 +- inst/sql/sql_server/48.sql | 74 +- inst/sql/sql_server/480.sql | 62 +- inst/sql/sql_server/481.sql | 62 +- inst/sql/sql_server/482.sql | 62 +- inst/sql/sql_server/483.sql | 62 +- inst/sql/sql_server/484.sql | 62 +- inst/sql/sql_server/485.sql | 62 +- inst/sql/sql_server/486.sql | 62 +- inst/sql/sql_server/487.sql | 62 +- inst/sql/sql_server/488.sql | 62 +- inst/sql/sql_server/489.sql | 62 +- inst/sql/sql_server/490.sql | 62 +- inst/sql/sql_server/491.sql | 62 +- inst/sql/sql_server/492.sql | 62 +- inst/sql/sql_server/493.sql | 62 +- inst/sql/sql_server/494.sql | 62 +- inst/sql/sql_server/495.sql | 62 +- inst/sql/sql_server/496.sql | 62 +- inst/sql/sql_server/497.sql | 62 +- inst/sql/sql_server/498.sql | 62 +- inst/sql/sql_server/499.sql | 62 +- inst/sql/sql_server/5.sql | 68 +- inst/sql/sql_server/500.sql | 62 +- inst/sql/sql_server/501.sql | 62 +- inst/sql/sql_server/502.sql | 62 +- inst/sql/sql_server/503.sql | 62 +- inst/sql/sql_server/504.sql | 62 +- inst/sql/sql_server/505.sql | 62 +- inst/sql/sql_server/506.sql | 62 +- inst/sql/sql_server/507.sql | 62 +- inst/sql/sql_server/508.sql | 62 +- inst/sql/sql_server/509.sql | 62 +- inst/sql/sql_server/51.sql | 68 +- inst/sql/sql_server/510.sql | 62 +- inst/sql/sql_server/511.sql | 62 +- inst/sql/sql_server/512.sql | 62 +- inst/sql/sql_server/513.sql | 62 +- inst/sql/sql_server/514.sql | 62 +- inst/sql/sql_server/515.sql | 62 +- inst/sql/sql_server/516.sql | 62 +- inst/sql/sql_server/517.sql | 62 +- inst/sql/sql_server/518.sql | 62 +- inst/sql/sql_server/519.sql | 62 +- inst/sql/sql_server/52.sql | 68 +- inst/sql/sql_server/520.sql | 62 +- inst/sql/sql_server/521.sql | 62 +- inst/sql/sql_server/522.sql | 62 +- inst/sql/sql_server/523.sql | 62 +- inst/sql/sql_server/524.sql | 62 +- inst/sql/sql_server/525.sql | 62 +- inst/sql/sql_server/526.sql | 62 +- inst/sql/sql_server/527.sql | 62 +- inst/sql/sql_server/528.sql | 62 +- inst/sql/sql_server/529.sql | 62 +- inst/sql/sql_server/53.sql | 68 +- inst/sql/sql_server/530.sql | 62 +- inst/sql/sql_server/531.sql | 62 +- inst/sql/sql_server/532.sql | 62 +- inst/sql/sql_server/533.sql | 62 +- inst/sql/sql_server/534.sql | 62 +- inst/sql/sql_server/535.sql | 62 +- inst/sql/sql_server/536.sql | 62 +- inst/sql/sql_server/537.sql | 62 +- inst/sql/sql_server/538.sql | 62 +- inst/sql/sql_server/539.sql | 62 +- inst/sql/sql_server/54.sql | 68 +- inst/sql/sql_server/540.sql | 62 +- inst/sql/sql_server/541.sql | 62 +- inst/sql/sql_server/542.sql | 62 +- inst/sql/sql_server/543.sql | 62 +- inst/sql/sql_server/544.sql | 62 +- inst/sql/sql_server/545.sql | 62 +- inst/sql/sql_server/546.sql | 62 +- inst/sql/sql_server/547.sql | 62 +- inst/sql/sql_server/549.sql | 62 +- inst/sql/sql_server/550.sql | 62 +- inst/sql/sql_server/551.sql | 62 +- inst/sql/sql_server/552.sql | 62 +- inst/sql/sql_server/553.sql | 62 +- inst/sql/sql_server/554.sql | 62 +- inst/sql/sql_server/555.sql | 62 +- inst/sql/sql_server/556.sql | 62 +- inst/sql/sql_server/557.sql | 62 +- inst/sql/sql_server/558.sql | 62 +- inst/sql/sql_server/559.sql | 62 +- inst/sql/sql_server/56.sql | 74 +- inst/sql/sql_server/560.sql | 62 +- inst/sql/sql_server/561.sql | 62 +- inst/sql/sql_server/562.sql | 62 +- inst/sql/sql_server/563.sql | 62 +- inst/sql/sql_server/564.sql | 62 +- inst/sql/sql_server/565.sql | 62 +- inst/sql/sql_server/566.sql | 62 +- inst/sql/sql_server/567.sql | 62 +- inst/sql/sql_server/568.sql | 62 +- inst/sql/sql_server/569.sql | 62 +- inst/sql/sql_server/57.sql | 62 +- inst/sql/sql_server/570.sql | 62 +- inst/sql/sql_server/571.sql | 62 +- inst/sql/sql_server/572.sql | 62 +- inst/sql/sql_server/573.sql | 62 +- inst/sql/sql_server/574.sql | 62 +- inst/sql/sql_server/575.sql | 62 +- inst/sql/sql_server/576.sql | 62 +- inst/sql/sql_server/577.sql | 62 +- inst/sql/sql_server/578.sql | 62 +- inst/sql/sql_server/579.sql | 62 +- inst/sql/sql_server/580.sql | 62 +- inst/sql/sql_server/581.sql | 62 +- inst/sql/sql_server/582.sql | 62 +- inst/sql/sql_server/583.sql | 62 +- inst/sql/sql_server/584.sql | 62 +- inst/sql/sql_server/585.sql | 62 +- inst/sql/sql_server/586.sql | 62 +- inst/sql/sql_server/587.sql | 62 +- inst/sql/sql_server/588.sql | 62 +- inst/sql/sql_server/589.sql | 62 +- inst/sql/sql_server/59.sql | 74 +- inst/sql/sql_server/590.sql | 62 +- inst/sql/sql_server/591.sql | 62 +- inst/sql/sql_server/592.sql | 62 +- inst/sql/sql_server/593.sql | 62 +- inst/sql/sql_server/594.sql | 62 +- inst/sql/sql_server/595.sql | 62 +- inst/sql/sql_server/596.sql | 62 +- inst/sql/sql_server/597.sql | 62 +- inst/sql/sql_server/598.sql | 62 +- inst/sql/sql_server/599.sql | 62 +- inst/sql/sql_server/6.sql | 80 +- inst/sql/sql_server/60.sql | 68 +- inst/sql/sql_server/600.sql | 62 +- inst/sql/sql_server/601.sql | 62 +- inst/sql/sql_server/602.sql | 62 +- inst/sql/sql_server/603.sql | 62 +- inst/sql/sql_server/604.sql | 62 +- inst/sql/sql_server/605.sql | 62 +- inst/sql/sql_server/606.sql | 62 +- inst/sql/sql_server/607.sql | 62 +- inst/sql/sql_server/608.sql | 62 +- inst/sql/sql_server/609.sql | 62 +- inst/sql/sql_server/61.sql | 74 +- inst/sql/sql_server/610.sql | 62 +- inst/sql/sql_server/611.sql | 62 +- inst/sql/sql_server/612.sql | 62 +- inst/sql/sql_server/613.sql | 62 +- inst/sql/sql_server/614.sql | 62 +- inst/sql/sql_server/615.sql | 62 +- inst/sql/sql_server/616.sql | 62 +- inst/sql/sql_server/617.sql | 62 +- inst/sql/sql_server/618.sql | 62 +- inst/sql/sql_server/619.sql | 62 +- inst/sql/sql_server/62.sql | 62 +- inst/sql/sql_server/620.sql | 62 +- inst/sql/sql_server/621.sql | 62 +- inst/sql/sql_server/622.sql | 62 +- inst/sql/sql_server/623.sql | 62 +- inst/sql/sql_server/624.sql | 62 +- inst/sql/sql_server/625.sql | 62 +- inst/sql/sql_server/626.sql | 62 +- inst/sql/sql_server/627.sql | 62 +- inst/sql/sql_server/628.sql | 62 +- inst/sql/sql_server/629.sql | 62 +- inst/sql/sql_server/63.sql | 68 +- inst/sql/sql_server/630.sql | 62 +- inst/sql/sql_server/631.sql | 62 +- inst/sql/sql_server/632.sql | 62 +- inst/sql/sql_server/633.sql | 62 +- inst/sql/sql_server/634.sql | 62 +- inst/sql/sql_server/635.sql | 62 +- inst/sql/sql_server/636.sql | 62 +- inst/sql/sql_server/637.sql | 62 +- inst/sql/sql_server/638.sql | 62 +- inst/sql/sql_server/639.sql | 62 +- inst/sql/sql_server/64.sql | 128 +- inst/sql/sql_server/640.sql | 62 +- inst/sql/sql_server/641.sql | 62 +- inst/sql/sql_server/642.sql | 62 +- inst/sql/sql_server/643.sql | 62 +- inst/sql/sql_server/644.sql | 62 +- inst/sql/sql_server/645.sql | 62 +- inst/sql/sql_server/646.sql | 62 +- inst/sql/sql_server/647.sql | 62 +- inst/sql/sql_server/648.sql | 62 +- inst/sql/sql_server/649.sql | 62 +- inst/sql/sql_server/65.sql | 68 +- inst/sql/sql_server/650.sql | 62 +- inst/sql/sql_server/651.sql | 62 +- inst/sql/sql_server/652.sql | 62 +- inst/sql/sql_server/653.sql | 62 +- inst/sql/sql_server/654.sql | 62 +- inst/sql/sql_server/655.sql | 62 +- inst/sql/sql_server/656.sql | 62 +- inst/sql/sql_server/657.sql | 62 +- inst/sql/sql_server/658.sql | 62 +- inst/sql/sql_server/659.sql | 62 +- inst/sql/sql_server/66.sql | 68 +- inst/sql/sql_server/660.sql | 62 +- inst/sql/sql_server/661.sql | 62 +- inst/sql/sql_server/662.sql | 62 +- inst/sql/sql_server/663.sql | 62 +- inst/sql/sql_server/664.sql | 62 +- inst/sql/sql_server/665.sql | 62 +- inst/sql/sql_server/666.sql | 62 +- inst/sql/sql_server/667.sql | 62 +- inst/sql/sql_server/668.sql | 62 +- inst/sql/sql_server/669.sql | 62 +- inst/sql/sql_server/67.sql | 68 +- inst/sql/sql_server/670.sql | 62 +- inst/sql/sql_server/671.sql | 62 +- inst/sql/sql_server/672.sql | 62 +- inst/sql/sql_server/673.sql | 62 +- inst/sql/sql_server/674.sql | 62 +- inst/sql/sql_server/675.sql | 62 +- inst/sql/sql_server/676.sql | 62 +- inst/sql/sql_server/677.sql | 62 +- inst/sql/sql_server/678.sql | 62 +- inst/sql/sql_server/679.sql | 62 +- inst/sql/sql_server/68.sql | 74 +- inst/sql/sql_server/680.sql | 62 +- inst/sql/sql_server/681.sql | 62 +- inst/sql/sql_server/682.sql | 62 +- inst/sql/sql_server/683.sql | 62 +- inst/sql/sql_server/684.sql | 62 +- inst/sql/sql_server/685.sql | 62 +- inst/sql/sql_server/686.sql | 62 +- inst/sql/sql_server/687.sql | 62 +- inst/sql/sql_server/688.sql | 62 +- inst/sql/sql_server/689.sql | 62 +- inst/sql/sql_server/69.sql | 68 +- inst/sql/sql_server/690.sql | 62 +- inst/sql/sql_server/691.sql | 68 +- inst/sql/sql_server/692.sql | 62 +- inst/sql/sql_server/693.sql | 80 +- inst/sql/sql_server/694.sql | 68 +- inst/sql/sql_server/695.sql | 62 +- inst/sql/sql_server/696.sql | 62 +- inst/sql/sql_server/697.sql | 62 +- inst/sql/sql_server/698.sql | 62 +- inst/sql/sql_server/699.sql | 62 +- inst/sql/sql_server/7.sql | 68 +- inst/sql/sql_server/70.sql | 68 +- inst/sql/sql_server/701.sql | 62 +- inst/sql/sql_server/702.sql | 62 +- inst/sql/sql_server/703.sql | 62 +- inst/sql/sql_server/705.sql | 62 +- inst/sql/sql_server/706.sql | 62 +- inst/sql/sql_server/707.sql | 62 +- inst/sql/sql_server/708.sql | 62 +- inst/sql/sql_server/709.sql | 62 +- inst/sql/sql_server/71.sql | 74 +- inst/sql/sql_server/710.sql | 62 +- inst/sql/sql_server/711.sql | 62 +- inst/sql/sql_server/712.sql | 62 +- inst/sql/sql_server/713.sql | 62 +- inst/sql/sql_server/714.sql | 62 +- inst/sql/sql_server/715.sql | 62 +- inst/sql/sql_server/716.sql | 68 +- inst/sql/sql_server/717.sql | 62 +- inst/sql/sql_server/719.sql | 94 +- inst/sql/sql_server/72.sql | 86 +- inst/sql/sql_server/720.sql | 78 +- inst/sql/sql_server/721.sql | 74 +- inst/sql/sql_server/722.sql | 70 +- inst/sql/sql_server/723.sql | 317 +- inst/sql/sql_server/724.sql | 335 +- inst/sql/sql_server/725.sql | 104 +- inst/sql/sql_server/726.sql | 194 +- inst/sql/sql_server/727.sql | 104 +- inst/sql/sql_server/728.sql | 68 +- inst/sql/sql_server/729.sql | 80 +- inst/sql/sql_server/730.sql | 100 +- inst/sql/sql_server/731.sql | 116 +- inst/sql/sql_server/732.sql | 74 +- inst/sql/sql_server/733.sql | 62 +- inst/sql/sql_server/734.sql | 62 +- inst/sql/sql_server/735.sql | 82 +- inst/sql/sql_server/736.sql | 277 +- inst/sql/sql_server/737.sql | 112 +- inst/sql/sql_server/738.sql | 68 +- inst/sql/sql_server/739.sql | 110 +- inst/sql/sql_server/74.sql | 64 +- inst/sql/sql_server/740.sql | 86 +- inst/sql/sql_server/741.sql | 91 +- inst/sql/sql_server/742.sql | 68 +- inst/sql/sql_server/743.sql | 68 +- inst/sql/sql_server/744.sql | 62 +- inst/sql/sql_server/745.sql | 62 +- inst/sql/sql_server/746.sql | 76 +- inst/sql/sql_server/747.sql | 82 +- inst/sql/sql_server/748.sql | 76 +- inst/sql/sql_server/749.sql | 62 +- inst/sql/sql_server/75.sql | 68 +- inst/sql/sql_server/750.sql | 76 +- inst/sql/sql_server/752.sql | 68 +- inst/sql/sql_server/753.sql | 68 +- inst/sql/sql_server/754.sql | 64 +- inst/sql/sql_server/755.sql | 68 +- inst/sql/sql_server/756.sql | 62 +- inst/sql/sql_server/757.sql | 68 +- inst/sql/sql_server/759.sql | 74 +- inst/sql/sql_server/76.sql | 68 +- inst/sql/sql_server/760.sql | 74 +- inst/sql/sql_server/761.sql | 88 +- inst/sql/sql_server/762.sql | 62 +- inst/sql/sql_server/763.sql | 62 +- inst/sql/sql_server/764.sql | 62 +- inst/sql/sql_server/765.sql | 68 +- inst/sql/sql_server/766.sql | 62 +- inst/sql/sql_server/767.sql | 62 +- inst/sql/sql_server/768.sql | 62 +- inst/sql/sql_server/769.sql | 62 +- inst/sql/sql_server/77.sql | 74 +- inst/sql/sql_server/770.sql | 62 +- inst/sql/sql_server/771.sql | 94 +- inst/sql/sql_server/772.sql | 76 +- inst/sql/sql_server/773.sql | 62 +- inst/sql/sql_server/774.sql | 62 +- inst/sql/sql_server/775.sql | 62 +- inst/sql/sql_server/776.sql | 62 +- inst/sql/sql_server/777.sql | 62 +- inst/sql/sql_server/778.sql | 62 +- inst/sql/sql_server/779.sql | 62 +- inst/sql/sql_server/78.sql | 80 +- inst/sql/sql_server/780.sql | 62 +- inst/sql/sql_server/781.sql | 62 +- inst/sql/sql_server/782.sql | 76 +- inst/sql/sql_server/783.sql | 62 +- inst/sql/sql_server/784.sql | 62 +- inst/sql/sql_server/785.sql | 68 +- inst/sql/sql_server/788.sql | 68 +- inst/sql/sql_server/789.sql | 58 +- inst/sql/sql_server/79.sql | 68 +- inst/sql/sql_server/790.sql | 58 +- inst/sql/sql_server/791.sql | 58 +- inst/sql/sql_server/792.sql | 104 +- inst/sql/sql_server/793.sql | 128 +- inst/sql/sql_server/794.sql | 62 +- inst/sql/sql_server/795.sql | 62 +- inst/sql/sql_server/796.sql | 68 +- inst/sql/sql_server/797.sql | 64 +- inst/sql/sql_server/798.sql | 68 +- inst/sql/sql_server/8.sql | 62 +- inst/sql/sql_server/80.sql | 68 +- inst/sql/sql_server/802.sql | 62 +- inst/sql/sql_server/803.sql | 62 +- inst/sql/sql_server/804.sql | 58 +- inst/sql/sql_server/805.sql | 62 +- inst/sql/sql_server/806.sql | 68 +- inst/sql/sql_server/807.sql | 58 +- inst/sql/sql_server/808.sql | 62 +- inst/sql/sql_server/809.sql | 68 +- inst/sql/sql_server/81.sql | 68 +- inst/sql/sql_server/810.sql | 68 +- inst/sql/sql_server/811.sql | 58 +- inst/sql/sql_server/812.sql | 100 +- inst/sql/sql_server/813.sql | 70 +- inst/sql/sql_server/814.sql | 88 +- inst/sql/sql_server/817.sql | 84 +- inst/sql/sql_server/818.sql | 88 +- inst/sql/sql_server/819.sql | 90 +- inst/sql/sql_server/82.sql | 92 +- inst/sql/sql_server/820.sql | 108 +- inst/sql/sql_server/821.sql | 104 +- inst/sql/sql_server/822.sql | 86 +- inst/sql/sql_server/823.sql | 104 +- inst/sql/sql_server/824.sql | 84 +- inst/sql/sql_server/825.sql | 80 +- inst/sql/sql_server/826.sql | 94 +- inst/sql/sql_server/827.sql | 80 +- inst/sql/sql_server/828.sql | 122 +- inst/sql/sql_server/829.sql | 88 +- inst/sql/sql_server/830.sql | 100 +- inst/sql/sql_server/831.sql | 118 +- inst/sql/sql_server/832.sql | 114 +- inst/sql/sql_server/833.sql | 84 +- inst/sql/sql_server/834.sql | 96 +- inst/sql/sql_server/835.sql | 114 +- inst/sql/sql_server/836.sql | 110 +- inst/sql/sql_server/837.sql | 68 +- inst/sql/sql_server/838.sql | 84 +- inst/sql/sql_server/839.sql | 100 +- inst/sql/sql_server/84.sql | 74 +- inst/sql/sql_server/840.sql | 114 +- inst/sql/sql_server/841.sql | 96 +- inst/sql/sql_server/842.sql | 88 +- inst/sql/sql_server/843.sql | 118 +- inst/sql/sql_server/844.sql | 114 +- inst/sql/sql_server/845.sql | 100 +- inst/sql/sql_server/846.sql | 98 +- inst/sql/sql_server/847.sql | 80 +- inst/sql/sql_server/848.sql | 94 +- inst/sql/sql_server/850.sql | 62 +- inst/sql/sql_server/851.sql | 62 +- inst/sql/sql_server/852.sql | 62 +- inst/sql/sql_server/854.sql | 64 +- inst/sql/sql_server/855.sql | 62 +- inst/sql/sql_server/856.sql | 80 +- inst/sql/sql_server/857.sql | 80 +- inst/sql/sql_server/858.sql | 62 +- inst/sql/sql_server/859.sql | 62 +- inst/sql/sql_server/86.sql | 68 +- inst/sql/sql_server/860.sql | 62 +- inst/sql/sql_server/861.sql | 68 +- inst/sql/sql_server/862.sql | 120 +- inst/sql/sql_server/863.sql | 62 +- inst/sql/sql_server/864.sql | 68 +- inst/sql/sql_server/865.sql | 476 +- inst/sql/sql_server/866.sql | 76 +- inst/sql/sql_server/867.sql | 70 +- inst/sql/sql_server/868.sql | 70 +- inst/sql/sql_server/869.sql | 70 +- inst/sql/sql_server/87.sql | 68 +- inst/sql/sql_server/870.sql | 70 +- inst/sql/sql_server/871.sql | 70 +- inst/sql/sql_server/872.sql | 70 +- inst/sql/sql_server/873.sql | 70 +- inst/sql/sql_server/874.sql | 70 +- inst/sql/sql_server/875.sql | 70 +- inst/sql/sql_server/876.sql | 70 +- inst/sql/sql_server/877.sql | 488 +- inst/sql/sql_server/878.sql | 482 +- inst/sql/sql_server/881.sql | 74 +- inst/sql/sql_server/882.sql | 62 +- inst/sql/sql_server/884.sql | 62 +- inst/sql/sql_server/888.sql | 74 +- inst/sql/sql_server/889.sql | 62 +- inst/sql/sql_server/890.sql | 68 +- inst/sql/sql_server/891.sql | 68 +- inst/sql/sql_server/892.sql | 68 +- inst/sql/sql_server/893.sql | 62 +- inst/sql/sql_server/894.sql | 62 +- inst/sql/sql_server/895.sql | 62 +- inst/sql/sql_server/896.sql | 62 +- inst/sql/sql_server/898.sql | 68 +- inst/sql/sql_server/9.sql | 62 +- inst/sql/sql_server/900.sql | 80 +- inst/sql/sql_server/901.sql | 68 +- inst/sql/sql_server/917.sql | 92 +- inst/sql/sql_server/918.sql | 62 +- inst/sql/sql_server/919.sql | 74 +- inst/sql/sql_server/920.sql | 106 +- inst/sql/sql_server/921.sql | 106 +- inst/sql/sql_server/922.sql | 62 +- inst/sql/sql_server/923.sql | 74 +- inst/sql/sql_server/924.sql | 86 +- inst/sql/sql_server/925.sql | 62 +- inst/sql/sql_server/927.sql | 68 +- inst/sql/sql_server/928.sql | 86 +- inst/sql/sql_server/929.sql | 62 +- inst/sql/sql_server/930.sql | 68 +- inst/sql/sql_server/931.sql | 62 +- inst/sql/sql_server/932.sql | 62 +- inst/sql/sql_server/933.sql | 62 +- inst/sql/sql_server/934.sql | 68 +- inst/sql/sql_server/935.sql | 64 +- inst/sql/sql_server/936.sql | 62 +- inst/sql/sql_server/938.sql | 74 +- inst/sql/sql_server/939.sql | 68 +- inst/sql/sql_server/940.sql | 68 +- inst/sql/sql_server/941.sql | 68 +- inst/sql/sql_server/942.sql | 62 +- inst/sql/sql_server/943.sql | 62 +- inst/sql/sql_server/944.sql | 68 +- inst/sql/sql_server/945.sql | 272 +- inst/sql/sql_server/946.sql | 62 +- inst/sql/sql_server/947.sql | 58 +- inst/sql/sql_server/948.sql | 62 +- inst/sql/sql_server/95.sql | 62 +- inst/sql/sql_server/950.sql | 80 +- inst/sql/sql_server/953.sql | 74 +- inst/sql/sql_server/954.sql | 68 +- inst/sql/sql_server/955.sql | 62 +- inst/sql/sql_server/956.sql | 68 +- inst/sql/sql_server/957.sql | 76 +- inst/sql/sql_server/963.sql | 68 +- inst/sql/sql_server/964.sql | 74 +- inst/sql/sql_server/965.sql | 106 +- inst/sql/sql_server/967.sql | 106 +- inst/sql/sql_server/976.sql | 62 +- inst/sql/sql_server/979.sql | 74 +- inst/sql/sql_server/980.sql | 74 +- inst/sql/sql_server/982.sql | 68 +- inst/sql/sql_server/986.sql | 68 +- inst/sql/sql_server/989.sql | 62 +- inst/sql/sql_server/990.sql | 62 +- inst/sql/sql_server/991.sql | 62 +- inst/sql/sql_server/992.sql | 68 +- inst/sql/sql_server/993.sql | 62 +- inst/sql/sql_server/994.sql | 68 +- inst/sql/sql_server/996.sql | 68 +- inst/sql/sql_server/997.sql | 68 +- inst/sql/sql_server/998.sql | 58 +- inst/sql/sql_server/999.sql | 68 +- 1048 files changed, 44477 insertions(+), 54272 deletions(-) create mode 100644 inst/cohorts/1316.json create mode 100644 inst/cohorts/1317.json create mode 100644 inst/sql/sql_server/1316.sql create mode 100644 inst/sql/sql_server/1317.sql diff --git a/DESCRIPTION b/DESCRIPTION index 225b1ab9..a9918264 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -19,7 +19,7 @@ Suggests: testthat, knitr License: Apache License -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.2 Roxygen: list(markdown = TRUE) Encoding: UTF-8 Language: en-US diff --git a/extras/UpdatePhenotypes.R b/extras/UpdatePhenotypes.R index 90c833f1..ed9e8e2f 100644 --- a/extras/UpdatePhenotypes.R +++ b/extras/UpdatePhenotypes.R @@ -369,9 +369,9 @@ for (i in (1:nrow(cohortRecord))) { "cohorts", paste0(cohortRecordUnit$cohortId, ".json") )) - +debug(CohortDefinitionReviewer::parseCohortDefinitionSpecifications) parsed <- - CirceComparator::parseCohortDefinitionSpecifications(cohortDefinition = cohortJson |> + CohortDefinitionReviewer::parseCohortDefinitionSpecifications(cohortDefinition = cohortJson |> RJSONIO::fromJSON(digits = 23)) if (nrow(parsed) > 0) { cohortRecordAugmented[[i]] <- cohortRecordUnit |> diff --git a/inst/Cohorts.csv b/inst/Cohorts.csv index b621bf49..79015c8c 100644 --- a/inst/Cohorts.csv +++ b/inst/Cohorts.csv @@ -1,999 +1,15064 @@ -"cohortId","cohortName","cohortNameFormatted","cohortNameLong","librarian","status","addedVersion","logicDescription","hashTag","isCirceJson","contributors","contributorOrcIds","contributorOrganizations","peerReviewers","peerReviewerOrcIds","recommendedReferentConceptIds","ohdsiForumPost","createdDate","modifiedDate","lastModifiedBy","replaces","notes","isReferenceCohort","censorWindowStartDate","censorWindowEndDate","collapseSettingsType","collapseEraPad","exitStrategy","exitDateOffSetField","exitDateOffSet","numberOfInclusionRules","initialEventLimit","initialEventRestrictionAdditionalCriteria","initialEventRestrictionAdditionalCriteriaLimit","inclusionRuleQualifyingEventLimit","numberOfCohortEntryEvents","numberOfDomainsInEntryEvents","domainsInEntryEvents","continousObservationWindowPrior","continousObservationWindowPost","numberOfConceptSets","demographicCriteria","demographicCriteriaAge","demographicCriteriaGender","useOfObservationPeriodInclusionRule","restrictedByVisit","hasWashoutInText","domainConditionOccurrence","domainMeasurement","eventCohort","domainObservation","domainVisitOccurrence","domainDeath","domainDrugExposure","criteriaLocationAgePrimaryCriteria","domainDeviceExposure","domainProcedureOccurrence","criteriaLocationFirstPrimaryCriteria","criteriaLocationAgeInclusionRules","criteriaLocationVisitTypePrimaryCriteria","criteriaLocationFirstInclusionRules","criteriaLocationGenderPrimaryCriteria","criteriaLocationConditionSourceConceptPrimaryCriteria","criteriaLocationGenderInclusionRules","criteriaLocationProviderSpecialtyInclusionRules","criteriaLocationVisitSourceConceptPrimaryCriteria","criteriaLocationConditionSourceConceptInclusionRules","criteriaLocationProviderSpecialtyPrimaryCriteria","domainDrugEra","criteriaLocationProcedureSourceConceptPrimaryCriteria","exitDrugCodeSetId","exitPersistenceWindow","exitSurveillanceWindow","domainObservationPeriod","criteriaLocationAgeAdditionalCriteria","criteriaLocationGenderAdditionalCriteria","criteriaLocationMeasurementSourceConceptPrimaryCriteria" -2,"[W] COVID-19 diagnosis or SARS-CoV-2 test (1pos)","COVID-19 diagnosis or SARS-CoV-2 test (1pos)","COVID-19 diagnosis or SARS-CoV-2 test (1pos)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","439676, 37311061","","2021-09-22","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Measurement",0,0,2,0,0,0,0,0,0,1,1,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -3,"[P] Cough or Sputum","Cough or Sputum","Cough or Sputum","rao@ohdsi.org","Pending peer review","","All events of cough or sputum finding","#Symptoms, #respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254761","https://forums.ohdsi.org/t/17895","2021-09-22","2023-09-28",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -4,"[P] Diarrhea","Diarrhea","Diarrhea","rao@ohdsi.org","Pending peer review","","All events of diarrhea including Functional Diarrhea","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196523","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",7,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -5,"[P] Dyspnea","Dyspnea","Dyspnea","rao@ohdsi.org","Pending peer review","","All events of dyspnea including difficulty breathing or abnormal breathing","#Symptoms, #respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312437, 4041664","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-28",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -6,"[P] Fever","Fever","Fever","rao@ohdsi.org","Pending peer review","","All events of fever or elevated temperature measurement","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437663, 4178904","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",7,0,"All",FALSE,"All","All",6,3,"ConditionOccurrence, Measurement, Observation",0,0,2,0,0,0,0,0,0,1,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -7,"[P] Headache or Headache disorder","Headache or Headache disorder","Headache or Headache disorder","rao@ohdsi.org","Pending peer review","","All events of Headache or headache disorder","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378253","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -8,"[P] Altered smell or taste including Anosmia, Hyposmia or Dysgeusia","Altered smell or taste including Anosmia, Hyposmia or Dysgeusia","Altered smell or taste including Anosmia, Hyposmia or Dysgeusia","rao@ohdsi.org","Pending peer review","","Altered smell or taste including Anosmia, Hyposmia or Dysgeusia","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","43530714","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -9,"[P] Sore throat","Sore throat","Sore throat","rao@ohdsi.org","Pending peer review","","All events of Sore throat","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","25297, 4226263","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -10,"[P] Nausea or Vomiting","Nausea or Vomiting","Nausea or Vomiting","rao@ohdsi.org","Pending peer review","","All events of Nausea or vomiting","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27674, 4101344","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -11,"[P] Malaise and or fatigue","Malaise and or fatigue","Malaise and or fatigue","rao@ohdsi.org","Pending peer review","","All events of Malaise and or fatigue","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439926, 4272240","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -12,"[P] Rhinitis or common cold or Sinusitis","Rhinitis or common cold or Sinusitis","Rhinitis or common cold or Sinusitis","rao@ohdsi.org","Pending peer review","","All events of Rhinitis or common cold","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 4320791","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -13,"[P] Myalgia (not explained by injury, ischemia or systemic inflammation)","Myalgia (not explained by injury, ischemia or systemic inflammation)","Myalgia (not explained by injury, ischemia or systemic inflammation)","rao@ohdsi.org","Pending peer review","","All events of Myalgia. Exclude persons with secondary causes of myalgia explained by injury, ischemia or chronic systemic inflammation","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442752, 4150129","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -14,"[P] Myalgia","Myalgia","Myalgia","rao@ohdsi.org","Pending peer review","","All events of Myalgia","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442752, 4150129","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -15,"[P][R] Exposure to viral disease ","Exposure to viral disease","Exposure to viral disease","rao@ohdsi.org","Pending peer review","","all events of Exposure to viral disease. Persons exit on cohort end date","#Referent, #Observation",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37016200","","2021-09-23","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -16,"[W] Exposure to SARS-Cov 2 and coronavirus","Exposure to SARS-Cov 2 and coronavirus","Exposure to SARS-Cov 2 and coronavirus","rao@ohdsi.org","","","","",1,"","","","","","","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -17,"[P][R] Exposure to SARS-CoV-2 ","Exposure to SARS-CoV-2","Exposure to SARS-CoV-2","rao@ohdsi.org","Pending peer review","","all events of Exposure to SARS-CoV-2. Persons exit on cohort end date","#Referent, #Observation",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37311059","","2021-09-23","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -18,"[P][R] Multisystem inflammatory syndrome (MIS) ","Multisystem inflammatory syndrome (MIS)","Multisystem inflammatory syndrome (MIS)","rao@ohdsi.org","Pending peer review","","all events of Multisystem inflammatory syndrome (MIS). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","703578","","2021-09-23","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -20,"[P] Bronchitis or Bronchiolitis","Bronchitis or Bronchiolitis","Bronchitis or Bronchiolitis","rao@ohdsi.org","Pending peer review","","All events of Bronchitis","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","256451, 260139","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -21,"[P] Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure","Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure","Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure","rao@ohdsi.org","Pending peer review","","All events of Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure","",1,"","","","","","319049","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -22,"[W] SARS-CoV-2 testing","SARS-CoV-2 testing","SARS-CoV-2 testing","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -23,"Inpatient Hospitalization (1Pe, 0Era)","Inpatient Hospitalization (1Pe, 0Era)","Inpatient Hospitalization (1Pe, 0Era)","rao@ohdsi.org","Accepted","3.4.0","All events of Inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",1,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,1,0,0,0,0,0,0,,,1,,1,,,,,,,,,,,,,,,,,,,,,,,,, -24,"Emergency room visits (0Pe, 0Era)","Emergency room visits (0Pe, 0Era)","Emergency room visits (0Pe, 0Era)","rao@ohdsi.org","Accepted","3.4.0","All events of Emergency Room visits. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,1,0,0,0,0,0,0,,,1,,1,,,,,,,,,,,,,,,,,,,,,,,,, -25,"All cause mortality","All cause mortality","All cause mortality","rao@ohdsi.org","Pending peer review","3.4.0","Earliest observation of any death","#standard",1,"Gowtham A Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"Death",0,0,0,0,0,0,0,0,0,,,0,,,1,,,,,,,,,,,,,,,,,,,,,,,, -27,"[P] Asthma without COPD","Asthma without COPD","Asthma without COPD","rao@ohdsi.org","Pending peer review","","Earliest of either asthma diagnosis or therapy for asthma with a history of another asthma therapy more than 180 days before. The person should not have a diagnosis or treatment for COPD in past","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317009","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,1,"First",FALSE,"All","First",3,3,"ConditionOccurrence, DrugExposure, Observation",0,0,4,1,1,0,0,0,0,1,,0,1,,,1,1,,,,,,,,,,,,,,,,,,,,,, -29,"[W] Autoimmune condition (FP)","Autoimmune condition (FP)","Autoimmune condition (FP)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","",1,"","","","","","76685, 80809, 81893, 81931, 134442, 134618, 135215, 140168, 194992, 199856, 201254, 201606, 254443, 257628, 374919, 432295, 438688, 443394, 4137275, 4232076","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",21,2,"ConditionOccurrence, Observation",0,0,18,0,0,0,0,0,0,1,,0,1,,,,,,,,,,,,,,,,,,,,,,,,,, -30,"[P] Tuberculosis with treatment using anti tubercular drug","Tuberculosis with treatment using anti tubercular drug","Tuberculosis","rao@ohdsi.org","Pending peer review","","All events of tuberculosis with at least 3 different drugs for tuberculosis at anytime on or after diagnosis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","253954, 434557","","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -31,"[P] Malignant neoplasm excluding non-melanoma skin cancer","Malignant neoplasm excluding non-melanoma skin cancer","Malignant neoplasm excluding non-melanoma skin cancer","rao@ohdsi.org","Pending peer review","","All events with a malignant neoplastic disease or history of malignant neoplastic disease","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137809, 443392","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -32,"[P] Obesity","Obesity","Obesity","rao@ohdsi.org","Pending peer review","","Persons with obesity diagnosis or a body weight measurement > 120 kg or 265 lbs","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433736","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",5,3,"ConditionOccurrence, Measurement, Observation",0,0,3,0,0,0,0,0,0,1,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -33,"[P] Dementia","Dementia","Dementia","rao@ohdsi.org","Pending peer review","","Persons with the diagnosis of dementia, includes history of Dementia","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4182210","","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -34,"[P] Hypertensive disorder or hypertensive complications","Hypertensive disorder or hypertensive complications","Hypertensive disorder or hypertensive complications","rao@ohdsi.org","Pending peer review","","Hypertensive disorder diagnosis or complication of hypertension","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312648, 4028741","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -35,"[W] Chronic kidney disease (FP)","Chronic kidney disease (FP)","Chronic kidney disease (FP)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","",1,"","","","","","192359, 193782","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -36,"[P] Human immunodeficiency virus (not HIV2) infection","Human immunodeficiency virus (not HIV2) infection","Human immunodeficiency virus (not HIV2) infection","rao@ohdsi.org","Pending peer review","","Earliest diagnosis of HIV (not HIV2) with another diagnosis in future or a treatment for HIV","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439727","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"First",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -37,"[P] Hepatitis C infection, carrier status or antibody positivity","Hepatitis C infection, carrier status or antibody positivity","Hepatitis C infection, carrier status or antibody positivity","rao@ohdsi.org","Pending peer review","","Earliest diagnosis of Hepatitis C","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197494, 198964","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -38,"[P] Heart disease","Heart disease","Heart disease","rao@ohdsi.org","Pending peer review","","Earliest of any Heart disease or arteriosclerosis of coronary artery bypass graft","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 44784217","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -39,"[W] End stage renal disease (FP)","End stage renal disease (FP)","End stage renal disease (FP)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","",1,"","","","","","193782","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"All",TRUE,"First","First",2,2,"ConditionOccurrence, Observation",0,0,2,1,0,0,0,0,0,1,,0,1,,,,,,,,,,,,,,,,,,,,,,,,,, -40,"[P] Diabetes Mellitus Type 2 or history of diabetes","Diabetes Mellitus Type 2 or history of diabetes","Diabetes Mellitus Type 2 or history of diabetes","rao@ohdsi.org","Pending peer review","","Earliest of any Type 2 Diabetes Mellitus or History of Diabetes","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201820, 201826","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,2,0,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -41,"[W] Chronic kidney disease broad (FP)","Chronic kidney disease broad (FP)","Chronic kidney disease broad (FP)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","",1,"","","","","","192359, 193782","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -42,"[W] End stage renal disease broad (FP)","End stage renal disease broad (FP)","End stage renal disease broad (FP)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","",1,"","","","","","193782","","2021-09-23","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"All",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,0,1,,,,,,,,,,,,,,,,,,,,,,,,,, -43,"[P] Respiratory or pulmonary tuberculosis","Respiratory or pulmonary tuberculosis","Respiratory or pulmonary tuberculosis","rao@ohdsi.org","Pending peer review","","Earliest occurrence of respiratory or pulmonary tuberculosis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","253954, 434557","","2021-09-23","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -44,"[P][R] COVID-19 ","COVID-19","COVID-19","rao@ohdsi.org","Pending peer review","","all events of COVID-19. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37311061","","2021-09-24","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -45,"[W] COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d)","COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d)","COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","439676, 37311061","","2021-09-24","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -46,"[W] COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d","COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d","COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","439676, 37311061","","2021-09-24","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Measurement",0,0,2,1,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -47,"[W] COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d","COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d","COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","439676, 37311061","","2021-09-24","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Measurement",0,0,2,1,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -48,"[W] COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d)","COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d)","COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","439676, 37311061","","2021-09-24","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -51,"[W] SARS-CoV-2 test positive result","SARS-CoV-2 test positive result","SARS-CoV-2 test positive result","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-09-24","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -52,"[W] SARS-CoV-2 test negative result","SARS-CoV-2 test negative result","SARS-CoV-2 test negative result","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-09-24","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -53,"[W] SARS-CoV-2 test positive or negative result - keep persons with positive","SARS-CoV-2 test positive or negative result - keep persons with positive","SARS-CoV-2 test positive or negative result - keep persons with positive","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-09-24","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,1,"First",FALSE,"All","First",2,1,"Measurement",0,0,1,1,0,0,0,0,0,,1,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -54,"[P] Febrile seizure","Febrile seizure","Febrile seizure","rao@ohdsi.org","Pending peer review","","All events of Febrile seizures","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377091, 4196708","https://forums.ohdsi.org/t/17895","2021-09-24","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -56,"[P] SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d)","SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d)","SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d)","rao@ohdsi.org","Pending peer review","","All events of Covid Diagnosis without a negative test result or a SARS-Cov-2 test positive test","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439676, 37311061","","2021-09-30","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Measurement",0,0,2,1,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -57,"[P][R] Bleeding ","Bleeding","Bleeding","rao@ohdsi.org","Pending peer review","","all events of Bleeding. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671, 437312","https://forums.ohdsi.org/t/17895","2021-09-30","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -59,"[W] COVID-19 diagnosis with no SARS-CoV-2 test","COVID-19 diagnosis with no SARS-CoV-2 test","COVID-19 diagnosis with no SARS-CoV-2 test","rao@ohdsi.org","","","","",1,"","","","","","439676, 37311061","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -60,"[W] SARS-CoV-2 test positive and negative result","SARS-CoV-2 test positive and negative result","SARS-CoV-2 test positive and negative result","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,2,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,1,0,0,0,0,0,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -61,"[P] Bradycardia or heart block with inpatient admission","Bradycardia or heart block with inpatient admission","Bradycardia or heart block with inpatient admission","rao@ohdsi.org","Pending peer review","","All events of Bradycardia or heart block or first occurrence of pace maker limited to inpatient visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317302, 320425","","2021-10-05","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",TRUE,"All","All",3,3,"ConditionOccurrence, DeviceExposure, ProcedureOccurrence",0,0,3,1,0,0,0,1,0,1,,1,,,,,,1,1,1,,,,,,,,,,,,,,,,,,, -62,"[P][R] Seizure related finding ","Seizure related finding","Seizure related finding","rao@ohdsi.org","Pending peer review","","all events of Seizure related finding. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377091, 4196708","https://forums.ohdsi.org/t/17895","2021-10-05","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -63,"Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W)","Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W)","Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W)","rao@ohdsi.org","Accepted","3.7.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 139803, 443904","https://forums.ohdsi.org/t/17769","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -64,"[P] Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia","Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia","Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia","rao@ohdsi.org","Pending peer review","","All events of flue like symptoms or signs","#Symptoms, #Signs",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254761, 312437, 437663, 439926, 442752, 4041664, 4178904, 4272240, 43530714","https://forums.ohdsi.org/t/17895","2021-10-05","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",11,3,"ConditionOccurrence, Measurement, Observation",0,0,7,0,0,0,0,0,0,1,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -65,"[W] Acute pancreatitis with inpatient admission","Acute pancreatitis with inpatient admission","Acute pancreatitis with inpatient admission","rao@ohdsi.org","Withdrawn","","Withdrawn and replaced by 205","",1,"","","","","","199074","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -66,"[W] Acute renal failure with inpatient admission","Acute renal failure with inpatient admission","Acute renal failure with inpatient admission","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","197320","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -67,"[W] Hepatic failure with inpatient admission","Hepatic failure with inpatient admission","Hepatic failure with inpatient admission","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","4245975","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -68,"[W] Heart failure with inpatient admission","Heart failure with inpatient admission","Heart failure with inpatient admission","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","316139, 319835","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -69,"[W] Angioedema with inpatient admission","Angioedema with inpatient admission","Angioedema with inpatient admission","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","432791","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -70,"[P] Stroke (ischemic or hemorrhagic) with inpatient admission","Stroke (ischemic or hemorrhagic) with inpatient admission","Stroke (ischemic or hemorrhagic) with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of ischemic or hemorrhagic stroke in an inpatient or ER visit","",1,"","","","","","443454","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -71,"[P] Acute myocardial infarction with inpatient admission","Acute myocardial infarction with inpatient admission","Acute myocardial infarction with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of acute myocardial infarction in an inpatient or ER visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4329847","https://forums.ohdsi.org/t/15900","2021-10-05","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -72,"[P] Influenza diagnosis or positive test result","Influenza diagnosis or positive test result","Influenza diagnosis or positive test result","rao@ohdsi.org","Pending peer review","","all events of influenza diagnosis, or positive influenza test result","",1,"","","","","","4183609, 4266367","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",4,3,"ConditionOccurrence, Measurement, Observation",0,0,3,0,0,0,0,0,0,1,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -74,"[P] Hemorrhagic stroke (intracerebral bleeding) with inpatient admission","Hemorrhagic stroke (intracerebral bleeding) with inpatient admission","Hemorrhagic stroke (intracerebral bleeding) with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of hemorrhagic stroke while inpatient or ER setting.","",1,"Unknown","","","","","376713, 439847","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -75,"[P] Ischemic stroke with inpatient admission","Ischemic stroke with inpatient admission","Ischemic stroke with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of ischemic stroke while inpatient or ER setting.","",1,"","","","","","443454","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -76,"[P] Transient ischemic attack with inpatient admission","Transient ischemic attack with inpatient admission","Transient ischemic attack with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of transient ischemic attack while in inpatient or ER setting","",1,"","","","","","373503","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -77,"[P] Gastrointestinal bleeding with inpatient admission","Gastrointestinal bleeding with inpatient admission","Gastrointestinal bleeding with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of gastrointestinal hemorrhage in inpatient or ER setting","",1,"","","","","","192671","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -78,"[P] Cardiac arrhythmia with inpatient admission","Cardiac arrhythmia with inpatient admission","Cardiac arrhythmia with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of cardiac arrhythmia or treatments for cardiac arrhythmia in inpatient or ER setting","",1,"","","","","","313217, 44784217","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",4,4,"ConditionOccurrence, DeviceExposure, DrugExposure, ProcedureOccurrence",0,0,4,1,0,0,0,1,0,1,,1,,,,1,,1,1,,,,,,,,,,,,,,,,,,,, -79,"[P] Dialysis with inpatient admission","Dialysis with inpatient admission","Dialysis with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of dialysis in inpatient setting","",1,"","","","","","438624, 4027133","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,2,1,0,0,0,1,0,1,,1,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -80,"[P] Extracorporeal Membrane Oxygenation with inpatient admission","Extracorporeal Membrane Oxygenation with inpatient admission","Extracorporeal Membrane Oxygenation with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of Extracorporeal Membrane Oxygenation in inpatient setting","",1,"","","","","","","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ProcedureOccurrence",0,0,2,1,0,0,0,1,0,,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -81,"[P] Cesarean section","Cesarean section","Cesarean section","rao@ohdsi.org","Pending peer review","","all events of Cesarean section","",1,"","","","","","","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -82,"[P] Intensive services during hospitalization","Intensive services during hospitalization","Intensive services during hospitalization","rao@ohdsi.org","Pending peer review","","all events of intensive care service in an inpatient setting","",1,"","","","","","40481547","","2021-10-05","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",5,3,"Measurement, Observation, ProcedureOccurrence",0,0,4,1,0,0,0,1,0,,1,1,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -84,"[P] SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d)","SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d)","SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d)","rao@ohdsi.org","Pending peer review","","all events of positive SAR-CoV-2 test result or Covid-19 diagnosis without a negative test result on or within 3 days of diagnosis","",1,"","","","","","439676, 37311061","","2021-10-09","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Measurement",0,0,2,1,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -86,"[W] SARS-CoV-2 test positive or negative result","SARS-CoV-2 test positive or negative result","SARS-CoV-2 test positive or negative result","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-10-11","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"First",FALSE,"All","First",2,1,"Measurement",0,0,1,0,0,0,0,0,0,,1,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -87,"[W] SARS-CoV-2 test","SARS-CoV-2 test","SARS-CoV-2 test","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-10-21","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -95,"[P] Delirium","Delirium","Delirium","rao@ohdsi.org","Pending peer review","","first occurrence of Delirium","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","373995","https://forums.ohdsi.org/t/17895","2022-02-04","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -100,"[P][R] Alzheimer's disease","Alzheimer's disease","Alzheimer's disease","ryan@ohdsi.org","Pending peer review","","all events of Alzheimer's disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378419","","2022-02-06","2023-09-25",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -119,"Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP)","Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP)","Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP)","rao@ohdsi.org","Accepted","3.10.0","first signs and symptoms suggestive of Systemic lupus erythematosus (SLE) or first treatment suggestive of SLE with SLE diagnosis with 90 days","#PhenotypePhebruary, #2023, #SystemicLupusErythematosus",1,"Joel Swerdel, Daniel Prieto-Alhambra","","","","","138525, 194133","https://forums.ohdsi.org/t/18223","2022-02-10","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, DrugExposure",0,0,3,1,0,0,0,0,0,1,,0,,,,1,,,,1,,,,,,,,,,,,,,,,,,, -123,"[P] Suicide attempt or self inflicted injury","Suicide attempt or self inflicted injury","Suicide attempt or self inflicted injury","rao@ohdsi.org","Pending","","Suicide or self inflicted events","#Submitted",1,"Azza A Shoaibi","'0000-0002-4949-7236'","'OHDSI'","","","444362","","2022-02-11","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -134,"[P] Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment","Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment","Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment","ryan@ohdsi.org","Pending peer review","","First occurrence of Attention-deficit hyperactivity disorder (ADHD) condition or related procedures, indexed on the earliest occurrence of ADHD condition, procedure or treatment (limited to drug exposure followed by a related condition or procedure), with 365d prior observation, exit at end of observation","#PhenotypePhebruary",1,"Patrick B. Ryan","","","","","438409, 4047120","https://forums.ohdsi.org/t/15901","2022-02-13","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",3,3,"ConditionOccurrence, DrugExposure, ProcedureOccurrence",0,0,2,1,0,0,0,0,0,1,,0,,,,1,,,1,,,,,,,,,,,,,,,,,,,, -142,"[P] ST elevated Myocardial infarction or Acute MI with ST elevation","ST elevated Myocardial infarction or Acute MI with ST elevation","Earliest of ST elevated Myocardial infarction or Acute MI with ST elevation","rao@ohdsi.org","Pending","","Earliest of ST elevated Myocardial infarction or Acute Myocardial Infarction with ST elevation","#PhenotypePhebruary, #2022",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4296653, 4329847","https://forums.ohdsi.org/t/15900","2022-02-15","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -189,"[P][R] Right upper quadrant pain ","Right upper quadrant pain","Right upper quadrant pain","rao@ohdsi.org","Pending peer review","","all events of Right upper quadrant pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198263","https://forums.ohdsi.org/t/17895","2022-06-29","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -190,"[P][R] Swollen abdomen ","Swollen abdomen","Swollen abdomen","rao@ohdsi.org","Pending peer review","","all events of Swollen abdomen. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442597, 4152351","https://forums.ohdsi.org/t/17895","2022-06-29","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -191,"[P] Fatigue, Asthenia, Malaise, Lethargy, Anorexia","Fatigue, Asthenia, Malaise, Lethargy, Anorexia","Fatigue, Asthenia, Malaise, Lethargy, Anorexia","rao@ohdsi.org","Pending peer review","","events with a diagnosis of Fatigue, Asthenia, Malaise, Lethargy, Anorexia but not senile, cancer or stroke related asthenia","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439926, 4272240","https://forums.ohdsi.org/t/17895","2022-06-29","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -192,"[P] Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia","Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia","Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia","rao@ohdsi.org","Pending peer review","","all events of Skin, Nasal or oral mucosal bleeding events such as epistaxis. Does not include gastrointestinal bleeding. Limited to bleeding common during thrombocytopenia","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4096682",,"2022-06-29","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -193,"[P] Jaundice or Itching","Jaundice or Itching","Jaundice or Itching","rao@ohdsi.org","Pending peer review","","events of jaundice or itching","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137977, 435656","https://forums.ohdsi.org/t/17895","2022-06-29","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -194,"[P] Encephalopathy or its presentations","Encephalopathy or its presentations","Encephalopathy or its presentations","rao@ohdsi.org","Pending peer review","","events Encephalopathy or its presentations","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436222","https://forums.ohdsi.org/t/17895","2022-06-29","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -195,"[P] Primary or malignant urothelial bladder cancer","Primary or malignant urothelial bladder cancer","Primary or malignant urothelial bladder cancer","rao@ohdsi.org","Pending peer review","","all events of Primary or malignant urothelial bladder cancer","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196360, 197508","","2022-06-30","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -196,"[P] Rheumatoid arthritis or complications","Rheumatoid arthritis or complications","Rheumatoid arthritis or complications","rao@ohdsi.org","Pending peer review","","All events of rheumatoid arthritis or complications","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80809","","2022-06-30","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -197,"[P] Coronary Artery Disease from vessel disease to ischemic injury","Coronary Artery Disease from vessel disease to ischemic injury","Coronary Artery Disease from vessel disease to ischemic injury","rao@ohdsi.org","Pending peer review","","all occurrence of coronary artery disease","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318443, 764123","","2022-06-30","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",99999,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -198,"[P] Crohns disease or its complication","Crohns disease or its complication","Crohns disease or its complication","rao@ohdsi.org","Pending peer review","","All events of crohns disease or complications","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201606","","2022-06-30","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -199,"[P] Major Depressive Disorder","Major Depressive Disorder","Major Depressive Disorder","rao@ohdsi.org","Pending peer review","","All events of major depressive disorder","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440383","","2022-06-30","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -200,"[P] Psoriasis of skin","Psoriasis of skin","Psoriasis of skin","rao@ohdsi.org","Pending peer review","","All events of psoriasis of skin","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140168","","2022-06-30","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",1095,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -201,"[P] Ulcerative colitis or complications","Ulcerative colitis or complications","Ulcerative colitis or complications","rao@ohdsi.org","Pending peer review","","All events of Ulcerative colitis or complications","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81893","","2022-06-30","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,7,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -207,"[P] Acquired Pure Red Cell Aplasia","Acquired Pure Red Cell Aplasia","Acquired Pure Red Cell Aplasia","rao@ohdsi.org","Pending peer review","","earliest of acquired pure red cell aplasia indexed on anemia, with no congenital or genetic anemia or constitutional aplasia, and no erroneous measurements such as normal hemoglobin or hematocrit. Persons should not have constitutional aplasia as it represents congenital form of aplasia and should not have bone marrow transplantation","#DME",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","26942, 138723, 4144746","https://forums.ohdsi.org/t/17854","2022-11-10","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,6,"All",FALSE,"All","First",4,2,"ConditionOccurrence, Measurement",0,0,8,1,0,0,0,0,0,1,1,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -208,"[P] Febrile Neutropenia or Neutropenic Fever","Febrile Neutropenia or Neutropenic Fever","Febrile Neutropenia or Neutropenic Fever","rao@ohdsi.org","Pending peer review","","All events of febrile neutropenia, indexed on the diagnosis of febrile neutropenia or a fever (diagnosis or measurement) cooccurring with neutropenia (diagnosis or measurement) within 1 day , or a diagnosis of clinically significant infection cooccurring with neutropenia (diagnosis or measurement) within 1 day. Restricted to events overlapping with in an inpatient or emergency room visit and excluding events with a normal neutrophil count (ANC) on index.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","257011, 437663, 4170143, 4250734","https://forums.ohdsi.org/t/17876","2022-11-10","2023-09-19",,"",,0,,,"ERA",30,"fixed duration relative to initial event","EndDate",3,2,"All",TRUE,"All","All",8,3,"ConditionOccurrence, Measurement, Observation",0,0,7,1,0,0,0,1,0,1,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -209,"[P] Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd","Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd","Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd","rao@ohdsi.org","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, enzyme or RBC structure","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269, 4250490","https://forums.ohdsi.org/t/17856","2022-11-11","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,9,"All",FALSE,"All","All",5,2,"ConditionOccurrence, Measurement",0,0,12,1,0,0,0,0,1,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -210,"[P] Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect","Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect","Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect","rao@ohdsi.org","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, or RBC structure. Persons with enzyme disorder (e.g. G-6-PD deficiency) are not excluded","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269, 4250490","https://forums.ohdsi.org/t/17856","2022-11-11","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,7,"All",FALSE,"All","All",5,2,"ConditionOccurrence, Measurement",0,0,11,1,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -211,"[P] Pancytopenia, Acquired","Pancytopenia, Acquired","Pancytopenia, Acquired","rao@ohdsi.org","Pending peer review","","All events of Pancytopenia, indexed on diagnosis or lab results. Excluded are patients with severe congenital blood disorders that may cause pancytopenia any time prior to 7 days post index. Exist cohort at 60 days post end date. Repeated events will be combined into events eras if they are within 365 days of each other.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","432881","","2022-11-11","2023-09-19",,"",,0,,,"ERA",365,"fixed duration relative to initial event","EndDate",60,3,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Measurement",0,0,12,1,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -213,"Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)","Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)","Neutropenia or unspecified leukopenia","rao@ohdsi.org","Accepted","3.11.0","All events of neutropenia indexed on diagnosis or lab results, with no congenital or genetic neutropenia all days pre to 7 days post index. Also excluded, events with normal neutrophil count or a diagnosis of Neutrophilia on index. patients exit 21 days post end date or with the occurrence of a normal neutrophil count. Reoccurring events for the same patients will be combined into event eras if they are within 365 days of each other.","#PhenotypePhebruary, #2023, #Neutropenia, #DME",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Anna Ostropolets","","435224","https://forums.ohdsi.org/t/17409","2022-11-11","2023-09-19",,"",,0,,,"ERA",365,"fixed duration relative to initial event","EndDate",21,3,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Measurement",0,0,4,1,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -214,"[P] Acquired Isolated Neutropenia or unspecified leukopenia","Acquired Isolated Neutropenia or unspecified leukopenia","Acquired Isolated Neutropenia or unspecified leukopenia","rao@ohdsi.org","Pending peer review","","all events of neutropenia indexed on diagnosis or lab results with no congenital or genetic neutropenia, and no other cell lines reduced at the same time","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435224","https://forums.ohdsi.org/t/17409","2022-11-11","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,9,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Measurement",0,0,10,1,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -215,"[P] Isolated Immune Thrombocytopenia","Isolated Immune Thrombocytopenia","Isolated Immune Thrombocytopenia","rao@ohdsi.org","Pending peer review","","events of Immune Thrombocytopenia (ITP) with no evidence of congenital or genetic thrombocytopenia, and no simultaneous neutropenia, pancytopenia, bone marrow involvement, anemia.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433749, 4103532","","2022-11-11","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,8,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,9,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -216,"[P] Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes","Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes","Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes","rao@ohdsi.org","Pending peer review","","events of Immune Thrombocytopenia (ITP) with no evidence of congenital or genetic thrombocytopenia, and no simultaneous neutropenia, pancytopenia, bone marrow involvement, anemia. Persons exit after 180 days or when they have normal platelet count. Also no evidence of common causes of thrombocytopenia including hypersplenism, antiphospholipid syndrome, paroxysmal noctural hemoglobinuria, hemolytic uremic syndrome, thrombotic microangiopathy, major autoimmune disorders, chronic liver disease, pregnancy HELLP, tumors of hematopoietic cells or nutritional deficiency","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433749, 4103532","","2022-11-11","2023-09-19",,"",,0,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,20,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,20,1,0,0,0,0,1,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -217,"[W] Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","rao@ohdsi.org","Pending peer review","","Earliest events of Immune Thrombotic microangiopathy or microangiopathic hemolytic anemia indexed on the diagnosis or its treatment or investigation. Events with congenital or genetic thrombocytopenia all time prior to 7 days post index are excluded. Also excluded are patients with Platelet count > 150. cohort exit is 7 days post end date or an occurrence of a normal platelet measure .","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","313800, 4119134","","2022-11-11","2023-10-16",,"","same as 741",0,,,"ERA",0,"fixed duration relative to initial event","EndDate",7,2,"All",FALSE,"All","First",4,4,"ConditionOccurrence, DrugExposure, Measurement, ProcedureOccurrence",0,0,5,1,0,0,0,0,0,1,1,0,,,,1,,,1,,,,,,,,,,,,,,,,,,,, -218,"[P] Rhabdomyolysis","Rhabdomyolysis","Rhabdomyolysis","rao@ohdsi.org","Pending peer review","","All events of rhabdomyolysis, indexed on a diagnosis or an observation of of Rhabdomyolysis or Myoglobinuria or a diagnosis of Muscle, ligament and fascia disorders co-occurring with a measurement of creatine kinase that is 5 times above the normal range- within 7 days. With no such events in the last 180 days washout period. Restricted to events that overlap with an inpatient visit. Events are excluded if they had recent trauma such as burn, drowning, hypothermia, hyperthermia, hyperpyrexia, crush syndrome, sepsis, march myoglobinuria, exertional rhabdomyolysis or alcohol intoxication, in the last 14 days including index. cohort exit 0 days post end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","137967, 4345578","","2022-11-11","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,13,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Observation",0,0,14,1,0,0,0,1,1,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -219,"[P] Sudden Cardiac arrest or cardiac death","Sudden Cardiac arrest or cardiac death","Sudden Cardiac arrest or cardiac death","rao@ohdsi.org","Pending peer review","","Earliest event of Sudden Cardiac arrest or Cardiac death, indexed on diagnosis or observation of cardiac arrest or cardiac death or a procedures of resuscitation. Restricting to events overlapping an inpatient or ER visit. Cohort exist is 1 day post cohort end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","321042","","2022-11-11","2023-10-03",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","First",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,2,1,0,0,0,1,0,1,,0,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -220,"[P] Angioedema","Angioedema","Angioedema","rao@ohdsi.org","Pending peer review","","all events of angioedema, with no recent cardiac edema, cellulitis, erysipelas, dermatitis or eczema, lymphedema or insect bites","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139900","","2022-11-11","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,7,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,8,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -221,"[P] Anaphylaxis Non Environmental exposure related","Anaphylaxis Non Environmental exposure related","Anaphylaxis Non Environmental exposure related","rao@ohdsi.org","Pending peer review","","all events of anaphylaxis that is not due to environmental etiology and no food, substance, insect bite or sting, poisoning as an explanation for anaphylaxis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441202","https://forums.ohdsi.org/t/17835","2022-11-11","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,6,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,7,1,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -222,"[P] Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum","Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum","Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum","rao@ohdsi.org","Pending peer review","","Earliest event of Stevens-Johnson syndrome, Toxic epidermal necrolysis spectrum, indexed on diagnosis of Stevens-Johnson syndrome, Toxic epidermal necrolysis spectrum. Restricting to events overlapping an inpatient or ER visit. Cohort exist is 1 day post cohort end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","141651","","2022-11-11","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -223,"[P] Posterior reversible encephalopathy syndrome PRES","Posterior reversible encephalopathy syndrome PRES","Posterior reversible encephalopathy syndrome PRES","rao@ohdsi.org","Pending peer review","","all events of posterior reversible encephalopathy syndrome with no hypertensive encephalopathy or eclampsia","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","42872891","","2022-11-12","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -224,"[P] Long QT Syndrome or QT prolonged (Acquired)","Long QT Syndrome or QT prolonged (Acquired)","Long QT Syndrome or QT prolonged (Acquired)","rao@ohdsi.org","Pending peer review","","all events of Long QT or QT prolonged. Exclude persons with congenital QT syndrome","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314664","","2022-11-12","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",7,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,1,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -225,"[P] Drug-induced Lupus","Drug-induced Lupus","Drug-induced Lupus","rao@ohdsi.org","Pending peer review","","all events of drug induced lupus with no Systemic Lupus Erythematosus","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4063581, 4198217","","2022-11-12","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -226,"[P][R] Drug reaction with eosinophilia and systemic symptoms ","Drug reaction with eosinophilia and systemic symptoms","Drug reaction with eosinophilia and systemic symptoms","rao@ohdsi.org","Pending peer review","","all events of Drug reaction with eosinophilia and systemic symptoms. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","45765791","","2022-11-12","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -227,"[P] Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM)","Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM)","Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM)","rao@ohdsi.org","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), Erythema Multiforme, Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132702, 141651, 45765791","","2022-11-12","2023-09-19",,"",,0,,,"ERA",180,"fixed duration relative to initial event","EndDate",3,0,"All",FALSE,"All","All",3,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -228,"[P] Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS)","Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS)","Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS)","rao@ohdsi.org","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141651, 45765791","","2022-11-12","2023-09-19",,"",,0,,,"ERA",180,"fixed duration relative to initial event","EndDate",3,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -229,"[P] Progressive multifocal leukoencephalopathy","Progressive multifocal leukoencephalopathy","Progressive multifocal leukoencephalopathy","rao@ohdsi.org","Pending peer review","","Earliest occurrence of progressive multifocal leukoencephalopathy, indexed on diagnosis of multifocal leukoencephalopathy. Cohort exist at the end of observation period","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433957","","2022-11-12","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -230,"[P] Autoimmune hepatitis","Autoimmune hepatitis","Autoimmune hepatitis","rao@ohdsi.org","Pending peer review","","all events of autoimmune hepatitis with no chronic liver diseases that may have similar presentation up to 365days prior such as viral hepatitis, drug induced liver injury, alcoholic liver disease, and no systemic lupus erythematosus in past 365 days","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200762","","2022-11-12","2023-09-19",,"",,0,,,"ERA",365,"fixed duration relative to initial event","EndDate",365,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -231,"[P][R] Erythema multiforme ","Erythema multiforme","Erythema multiforme","rao@ohdsi.org","Pending peer review","","all events of Erythema multiforme. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132702","","2022-11-12","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -232,"[P] Paresthesia","Paresthesia","Paresthesia","rao@ohdsi.org","Pending peer review","","all events of paresthesia","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4090425","https://forums.ohdsi.org/t/17895","2022-11-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",90,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -233,"[P] Hemorrhagic stroke","Hemorrhagic stroke","Hemorrhagic stroke","rao@ohdsi.org","Pending peer review","","all events of hemorrhagic stroke during an inpatient or ER visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376713, 439847","","2022-11-12","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",90,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -234,"Appendicitis (1Pe, 180Era)","Appendicitis (1Pe, 180Era)","Appendicitis (1Pe, 180Era)","rao@ohdsi.org","Accepted","3.11.0","events of appendicitis with an inpatient or ER visit with no events in 365 days clean window","#PhenotypePhebruary, #2023",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Azza Shoaibi","","440448, 441604","https://forums.ohdsi.org/t/18188","2022-11-12","2023-09-19",,"",,0,,,"ERA",180,"fixed duration relative to initial event","EndDate",1,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -235,"[P] Guillain Barre syndrome inpatient","Guillain Barre syndrome inpatient","Guillain Barre syndrome inpatient","rao@ohdsi.org","Pending peer review","","earliest event of Guillain Barre Syndrome during inpatient or ER stay","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374925","","2022-11-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -236,"[P] Idiopathic Peripheral Neuropathy","Idiopathic Peripheral Neuropathy","Idiopathic Peripheral Neuropathy","rao@ohdsi.org","Pending peer review","","all events of idiopathic peripheral neuropathy","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","375806, 4175154","","2022-11-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -237,"[P] Kawasaki disease","Kawasaki disease","Kawasaki disease","rao@ohdsi.org","Pending peer review","","events of Kawasaki's disease","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314381","","2022-11-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -238,"[P][R] Optic neuritis ","Optic neuritis","Optic neuritis","rao@ohdsi.org","Pending peer review","","all events of Optic neuritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374954","","2022-11-12","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -239,"[P] Narcolepsy events","Narcolepsy events","Narcolepsy events","rao@ohdsi.org","Pending peer review","","All events of Narcolepsy (includes cataplexy with narcolepsy) with no such events in prior clean window period (365 days). Persons should not be diagnosed with hypersomnia. Persons exit the cohort on end_date + 90 days as persons are assumed to have the condition for at least 90 days","#AESI",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436100","https://forums.ohdsi.org/t/17784","2022-11-12","2023-09-21",,"",,0,,,"ERA",365,"fixed duration relative to initial event","EndDate",90,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -240,"[P] Muscle weakness or monoplegia","Muscle weakness or monoplegia","Muscle weakness or monoplegia","rao@ohdsi.org","Pending peer review","","events of muscle weakness or monoplegia with no events in prior 365 days clean window","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","79908","","2022-11-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -241,"[P][R] Urticaria ","Urticaria","Urticaria","rao@ohdsi.org","Pending peer review","","all events of Urticaria. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139900","https://forums.ohdsi.org/t/17895","2022-11-12","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -243,"[P] Tinnitus","Tinnitus","Tinnitus","rao@ohdsi.org","Pending peer review","","events of tinnitus","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377575","https://forums.ohdsi.org/t/17895","2022-11-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -244,"[P] Dizziness or giddiness including motion sickness and vertigo","Dizziness or giddiness including motion sickness and vertigo","Dizziness or giddiness including motion sickness and vertigo","rao@ohdsi.org","Pending peer review","","events of dizziness","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433316, 4223938","https://forums.ohdsi.org/t/17895","2022-11-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",90,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -245,"[P] Hepatic Thrombosis","Hepatic Thrombosis","Hepatic Thrombosis","rao@ohdsi.org","Pending peer review","","first event of hepatic thrombosis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196715","","2022-11-12","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -246,"[P] Portal vein thrombosis","Portal vein thrombosis","Portal vein thrombosis","rao@ohdsi.org","Pending peer review","","first event of portal vein thrombosis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","199837","","2022-11-12","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -247,"[P] Deep Vein Thrombosis DVT","Deep Vein Thrombosis DVT","Deep Vein Thrombosis DVT","rao@ohdsi.org","Pending peer review","","first event of non obstetric Deep Vein Thrombosis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4133004, 43531681","https://forums.ohdsi.org/t/17769","2022-11-12","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -248,"[P] Disseminated intravascular coagulation DIC in inpatient visit","Disseminated intravascular coagulation DIC in inpatient visit","Disseminated intravascular coagulation DIC in inpatient visit","rao@ohdsi.org","Pending peer review","","events of Disseminated Intravascular Coagulation in an inpatient or ER setting with no events in prior 365 day window","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436093","","2022-11-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -249,"[P] Ischemic (Non-hemorrhagic) Stroke In Inpatient","Ischemic (Non-hemorrhagic) Stroke In Inpatient","Ischemic (Non-hemorrhagic) Stroke In Inpatient","rao@ohdsi.org","Pending peer review","","events of cerebral infarction while in an inpatient or ER setting","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443454","","2022-11-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -251,"[P] Acute pancreatitis","Acute pancreatitis","Acute pancreatitis","rao@ohdsi.org","Pending peer review","","events of acute pancreatitis in an inpatient or emergency setting and no history of chronic pancreatitis or hereditary or congenital pancreatitis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4192640, 199074","https://forums.ohdsi.org/t/17848","2022-11-15","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",90,3,"All",FALSE,"All","All",2,1,"VisitOccurrence",0,0,7,1,0,0,0,0,0,,,1,,1,,,,,,,,,,,,,,,,,,,,,,,,, -253,"[P] Drug Induced Acute pancreatitis","Drug Induced Acute pancreatitis","Drug Induced Acute pancreatitis","rao@ohdsi.org","Pending peer review","","events of acute pancreatitis in an inpatient or emergency setting with no events in prior washout window of 365 days, and no history of chronic pancreatitis or hereditary or congenital pancreatitis. Events with other explanations for acute pancreatitis such as alcoholic pancreatitis, severe alcoholism, recent alcohol intoxication, cholangitis or cholecystitits, biliary tract disease, endoscopic retrograde cholangiopancreatography, intestinal ischemia or obstruction or not eligible","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4192640, 199074, 4340961","https://forums.ohdsi.org/t/17848","2022-11-15","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",90,12,"All",FALSE,"All","All",2,1,"VisitOccurrence",0,0,16,1,0,0,0,0,0,,,1,,1,,,,,,,,,,,,,,,,,,,,,,,,, -254,"[P] Drug Resistant Epilepsy","Drug Resistant Epilepsy","Drug Resistant Epilepsy","rao@ohdsi.org","Pending peer review","","first occurrence of epilepsy in inpatient, of subsequent epilepsy in an outpatient setting after another outpatient epilepsy visit more than 30 days before, or anti-epileptic drug on or after a diagnosis of epilepsy. Limit to persons with at least two different anti epilepsy drug or diagnosis of intractable epilepsy on or after index date","",1,"Mathew Spotnitz","","","","","377091, 380378, 4029498","https://forums.ohdsi.org/t/17569","2022-11-17","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",3,2,"ConditionOccurrence, DrugExposure",0,0,4,1,1,0,0,0,0,1,,0,,,,1,,,,1,1,1,,,,,,,,,,,,,,,,, -255,"[P] Alzheimer's disease (based on Imfeld, 2013)","Alzheimer's disease (based on Imfeld, 2013)","Alzheimer's disease (based on Imfeld, 2013)","rao@ohdsi.org","Pending peer review","","this is an approximation of algorithm published by Imfeld et.al 2013","",1,"","","","","","378419, 4182210","","2022-11-18","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",3,2,"ConditionOccurrence, DrugExposure",365,0,8,1,1,0,0,1,0,1,,0,,,,1,,,,1,1,,,,,,,,,,,,,,,,,, -256,"[P] Facial Palsy lower motor neuron including Bells Palsy","Facial Palsy lower motor neuron including Bells Palsy","Facial Palsy lower motor neuron including Bells Palsy","rao@ohdsi.org","Pending peer review","","events of facial palsy with 183 days washout period. Remove persons with congenital facial palsy. Remove events with upper motor neuron disease suggestive of stroke","#AESI",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 4091559","https://forums.ohdsi.org/t/17788","2022-11-22","2023-09-21",,"",,0,,,"ERA",180,"fixed duration relative to initial event","EndDate",180,3,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,1,,,,,,,,,,,,,,,, -257,"[P] Emergency room visits or code","Emergency room visits or code","Emergency room visits or code","rao@ohdsi.org","Pending peer review","","All events of Emergency Room visits or code","#Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2022-11-22","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",4,3,"Observation, ProcedureOccurrence, VisitOccurrence",0,0,3,1,0,0,0,1,0,,,1,1,1,,,,,1,,,,,,,,,,,,,,,,,,,, -258,"[P] Anaphylaxis or Anaphylactic shock events","Anaphylaxis or Anaphylactic shock events","Anaphylaxis or Anaphylactic shock events","rao@ohdsi.org","Pending peer review","","all events of anaphylaxis or anaphylaxis shock due to serum with no events in prior clean window","",1,"Erica Voss","","","","","441202","https://forums.ohdsi.org/t/16033","2022-11-28","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -259,"[P] Anaphylaxis all cause","Anaphylaxis all cause","Anaphylaxis all cause","rao@ohdsi.org","Pending peer review","","all events of anaphylaxis","",1,"Gowtham A. Rao, Andrea Noel","'0000-0002-4949-7236'","'OHDSI'","","","441202","https://forums.ohdsi.org/t/18193","2022-11-28","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -260,"[P] ST elevated myocardial infarction with inpatient admission","ST elevated myocardial infarction with inpatient admission","ST elevated myocardial infarction with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of ST segment acute myocardial infarction in an inpatient or ER visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4296653, 4329847","https://forums.ohdsi.org/t/15900","2022-11-29","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",TRUE,"All","All",2,1,"ConditionOccurrence",0,0,4,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -261,"[P] Non ST elevated myocardial infarction with inpatient admission","Non ST elevated myocardial infarction with inpatient admission","Non ST elevated myocardial infarction with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of Non ST segment acute myocardial infarction in an inpatient or ER visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4329847","https://forums.ohdsi.org/t/15900","2022-11-29","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",TRUE,"All","All",2,1,"ConditionOccurrence",0,0,5,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -262,"[P] Unstable Angina with inpatient admission","Unstable Angina with inpatient admission","Unstable Angina with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of Unstable Angina in an inpatient or ER visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","315296","https://forums.ohdsi.org/t/15900","2022-11-29","2023-09-19",,"",,0,,,"ERA",180,"fixed duration relative to initial event","EndDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,6,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -263,"[P] Unstable Angina OR NSTEMI with inpatient admission","Unstable Angina OR NSTEMI with inpatient admission","Unstable Angina OR NSTEMI with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of Unstable Angina or NSTEMI in an inpatient or ER visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4329847","https://forums.ohdsi.org/t/15900","2022-11-29","2023-09-19",,"",,0,,,"ERA",180,"fixed duration relative to initial event","EndDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,4,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -264,"[P] Acute Hepatic Failure in persons with liver disease","Acute Hepatic Failure in persons with liver disease","Acute Hepatic Failure in persons with liver disease","rao@ohdsi.org","Pending peer review","","Events of Hepatic Failure. Persons should have prior liver disease","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","2022-11-29","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",365,0,23,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -265,"[P] Drug Induced Acute Hepatic Failure","Drug Induced Acute Hepatic Failure","Drug Induced Acute Hepatic Failure","rao@ohdsi.org","Pending peer review","","first occurrence of Hepatic Failure and no other liver problems in past","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","2022-11-29","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,23,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,23,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -267,"[P] Acute Kidney Injury AKI, in persons with chronic kidney disease","Acute Kidney Injury AKI, in persons with chronic kidney disease","Acute Kidney Injury AKI, in persons with chronic kidney disease","rao@ohdsi.org","Pending peer review","","all events of Acute Kidney Injury with washout period of 30 days. Persons should have chronic kidney disease that is is not ESKD, and should be not on chronic dialysis or had kidney transplant. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","#DME",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","","2022-11-29","2023-09-19",,"",,0,,,"ERA",7,"fixed duration relative to initial event","EndDate",7,4,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,8,1,0,0,0,0,0,1,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -268,"[P] Acute Kidney Injury AKI, in persons with NO chronic kidney disease","Acute Kidney Injury AKI, in persons with NO chronic kidney disease","Acute Kidney Injury AKI, in persons with NO chronic kidney disease","rao@ohdsi.org","Pending peer review","","all events of Acute Kidney Injury with washout period of 30 days. Persons should have chronic kidney disease that is is not ESKD, and should be not on chronic dialysis or had kidney transplant. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","","2022-11-29","2023-09-19",,"",,0,,,"ERA",7,"fixed duration relative to initial event","EndDate",7,4,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,8,1,0,0,0,0,0,1,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -269,"[D] Acute Kidney Injury AKI","Acute Kidney Injury AKI","Acute Kidney Injury AKI","rao@ohdsi.org","Accepted","3.8.0","This accepted cohort was Deprecated because the rule to exclude no chronic dialysis was incorrect. This definition was replaced by 362. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","#PhenotypePhebruary, #2022",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","https://forums.ohdsi.org/t/16067","2022-11-29","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,4,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,7,1,0,0,0,0,1,1,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -270,"[P] Hemolytic Anemia","Hemolytic Anemia","Hemolytic Anemia","rao@ohdsi.org","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269","https://forums.ohdsi.org/t/17856","2022-11-30","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,2,"All",FALSE,"All","All",4,2,"ConditionOccurrence, Measurement",0,0,11,1,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -271,"[P] Hemolytic Anemia Intra corpuscular","Hemolytic Anemia Intra corpuscular","Hemolytic Anemia Intra corpuscular","rao@ohdsi.org","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, enzyme or RBC structure","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269","https://forums.ohdsi.org/t/17856","2022-11-30","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",99999,0,"All",TRUE,"All","All",4,2,"ConditionOccurrence, Measurement",0,0,6,1,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -273,"[P] Pathological Ventricular Tachycardia","Pathological Ventricular Tachycardia","Pathological Ventricular Tachycardia","rao@ohdsi.org","Pending peer review","","all events of ventricular tachycardia with hospitalization. note - the use of ventricular tachycardia is thought to imply pathological tachycardia vs. simple tachycardia","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437579, 4103295","","2022-12-06","2023-09-19",,"",,0,,,"ERA",7,"fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -274,"[P] Cardiac arrest or Pathological Ventricular tachycardia","Cardiac arrest or Pathological Ventricular tachycardia","Cardiac arrest or Pathological Ventricular tachycardia","rao@ohdsi.org","Pending peer review","","Cardiac arrest or Pathological Ventricular tachycardia with inpatient stay","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321042, 437579, 4103295","","2022-12-06","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","First",4,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,3,1,0,0,0,1,0,1,,0,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -275,"[P] Polymorphic Ventricular Tachycardia or Torsades de Pointes","Polymorphic Ventricular Tachycardia or Torsades de Pointes","Polymorphic Ventricular Tachycardia or Torsades de Pointes","rao@ohdsi.org","Pending peer review","","Polymorphic Ventricular Tachycardia or Torsades de Pointes","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","4088349, 4135823","","2022-12-06","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -276,"[P] Sudden Vision Loss","Sudden Vision Loss","Sudden Vision Loss","rao@ohdsi.org","Pending peer review","","all events of Vision Loss, indexed on diagnosis of Vision Loss. With 1. no such events in prior washout window of 365 days 2. and no history of other pathological eye disease such as glaucoma, infections and others in 365 days to 1 day prior index. cohort exits is 90 days after cohort end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","377556","","2022-12-08","2023-09-19",,"",,0,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,1,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -277,"[P] Sudden Hearing Loss","Sudden Hearing Loss","Sudden Hearing Loss","rao@ohdsi.org","Pending peer review","","all events of Sudden Hearing Loss or hearing loss that is managed by corticosteroids, imaging of head or multiple hearing exams after among persons without congenital, middle or inner ear disease and no past hearing tests","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","374053, 377889","","2022-12-08","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,4,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Observation",0,0,8,1,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -278,"[P] Pain or ache that is Non Chronic","Pain or ache that is Non Chronic","Pain or ache that is Non Chronic","rao@ohdsi.org","Pending peer review","","all events of non chronic non generalized or diffuse pain","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138525, 194133","https://forums.ohdsi.org/t/17895","2023-01-04","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,1,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,2,1,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -279,"[P] Low Back Pain or injury","Low Back Pain or injury","Low Back Pain or injury","rao@ohdsi.org","Pending peer review","","all events of low back pain","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134736, 194133","https://forums.ohdsi.org/t/17895","2023-01-04","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -280,"[P] Abdominal Pain or acute abdomen","Abdominal Pain or acute abdomen","Abdominal Pain or acute abdomen","rao@ohdsi.org","Pending peer review","","all events of abdominal pain","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200219","https://forums.ohdsi.org/t/17895","2023-01-04","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -281,"[P] Epigastric Pain","Epigastric Pain","Epigastric Pain","rao@ohdsi.org","Pending peer review","","all events of epigastric pain","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197381, 4306292","https://forums.ohdsi.org/t/17895","2023-01-04","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -282,"[P] Joint Pain","Joint Pain","Joint Pain","rao@ohdsi.org","Pending peer review","","all events of joint pain","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","78232, 80180","https://forums.ohdsi.org/t/17895","2023-01-04","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -283,"[P] Prostatitis","Prostatitis","Prostatitis","rao@ohdsi.org","Pending","","All events of prostatits that is either a first occurrence of chronic prostatitis, or did not have an event of prostatitis in past 1 year, with no testicular lesions, bladder neoplasm or abdominal or inguinal hernia in prior 1 year. cohort end 180 days post cohort end date","#Submitted",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194997","","2023-01-13","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,5,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,6,1,0,1,0,0,0,1,,1,,,,,,,,,,,1,1,,,,,,,,,,,,,,, -284,"[P] Myocarditis or Pericarditis","Myocarditis or Pericarditis","Myocarditis or Pericarditis","rao@ohdsi.org","Pending","","All events of Myocarditis or Pericarditis","#Submitted",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320116, 4138837","","2023-01-14","2023-09-19",,"",,0,,,"ERA",90,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -285,"[P] Myocarditis or Pericarditis Not due to infections","Myocarditis or Pericarditis Not due to infections","Myocarditis or Pericarditis Not due to infections","rao@ohdsi.org","Pending","","All events of Myocarditis or Pericarditis without events that are due to Infectious Etiology","#Submitted",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320116, 4138837","","2023-01-14","2023-09-19",,"",,0,,,"ERA",90,"fixed duration relative to initial event","EndDate",30,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -287,"[P] Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica","Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica","Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica","rao@ohdsi.org","Pending","","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, OR related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days OR events of myelitis unspecified with weakness or asthenia, neuromyelitis optica with weakness or asthenia. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Sensitivity",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 138965, 139803, 380995, 443904","https://forums.ohdsi.org/t/17769","2023-01-17","2023-09-19",,"",,0,,,"ERA",365,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",4,1,"ConditionOccurrence",0,0,5,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -288,"[P] Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results","Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results","Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results","rao@ohdsi.org","Pending","","Earliest event of Type 2 Diabetes Mellitus (DM), indexed on diagnosis or Blood glucose lowering drugs excluding insulin or high Hemoglobin A1c (limited to treatments or measurement that are followed with Type 2 DM diagnosis within 365 days) excluding persons with Type 1 DM or secondary diabetes mellitus in the all time prior including index date","#Disease",1,"Patrick Ryan, Jill Hardin","","","","","201820, 201826","https://forums.ohdsi.org/t/15764","2023-01-25","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",4,3,"ConditionOccurrence, DrugExposure, Measurement",0,0,5,1,0,0,0,0,0,1,1,0,,,,1,,,,,,,,,,,,,,,,,,,,,,, -289,"[P] Presence Of Cardiac Arrhythmia","Presence Of Cardiac Arrhythmia","Presence Of Cardiac Arrhythmia","rao@ohdsi.org","Pending","","All events of Cardiac arrythmia or treatments for cardiac arrythmia","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 44784217","","2023-01-26","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",60,0,"All",FALSE,"All","All",4,4,"ConditionOccurrence, DeviceExposure, DrugExposure, ProcedureOccurrence",0,0,3,0,0,0,0,0,0,1,,1,,,,1,,1,1,,,,,,,,,,,,,,,,,,,, -290,"[P] Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment","Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment","Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment","rao@ohdsi.org","Pending peer review","","All events of thyroiditis, indexed on an occurrence of Thyroiditis (including hypo and hyperthyroidism) condition or exposure to levothyroxine (limited to drug exposure that occurred within 365 days prior to an occurrence of Thyroiditis condition). Limited to events that had zero condition occurrence of Hypothyroidism other than Hashimoto's Disease (ie excluding alternative causes of hypothyroidism) all time prior and including index","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138384, 140673","","2023-01-26","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,2,"All",FALSE,"All","All",2,2,"ConditionOccurrence, DrugExposure",0,0,3,1,0,0,0,0,0,1,,1,,,,1,,,,,,,,,,,,,,,,,,,,,,, -291,"[P] Gynecomastia, indexed on diagnosis, procedure or symptoms","Gynecomastia, indexed on diagnosis, procedure or symptoms","Gynecomastia, indexed on diagnosis, procedure or symptoms","rao@ohdsi.org","Pending","","All events of Gynecomastia diagnosis, indexed on a diagnosis of Gynecomastia or a procedure of Mastectomy for gynecomastia or a presentation/symptoms of Gynecomastia (breast lump or pain). Events indexed on a procedures or symptoms are required to be followed by a diagnosis within a year","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","78474, 80767, 137809","","2023-01-26","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,1,"All",FALSE,"All","All",4,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,3,1,0,0,0,0,0,1,,1,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -292,"[P] Acute Hepatic Failure in persons without chronic hepatic failure","Acute Hepatic Failure in persons without chronic hepatic failure","Hepatic Failure","rao@ohdsi.org","Pending peer review","","all events of acute hepatic failure. no chronic hepatic failure","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","2023-01-26","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",90,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -293,"[P] Acute Hepatic Injury or inpatient jaundice","Acute Hepatic Injury or inpatient jaundice","Acute Hepatic Injury with no chronic hepatic failure","rao@ohdsi.org","Pending","","All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, with no chronic hepatic failure. Sequela of chronic liver disease maps to codes that historically were used for acute liver injury","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194990","","2023-01-26","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",90,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,3,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -294,"[P] Acute Hepatic Injury with no pre-existing liver disease","Acute Hepatic Injury with no pre-existing liver disease","Acute Hepatic Injury with no pre-existing liver disease","rao@ohdsi.org","Pending","","Earliest event of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury. Patients are excluded if they have a diagnosis of chronic hepatic failure any time in the past or on the same day. Also excluded patients who have other prior liver disease such as viral hepatitis, Liver Cirrhosis, liver fibrosis, alcoholic and others anytime prior including index","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194990","","2023-01-26","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",90,23,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,23,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -295,"[P] Acute Hepatic Failure in persons with no pre-existing liver disease","Acute Hepatic Failure in persons with no pre-existing liver disease","Acute Hepatic Failure in persons with no pre-existing liver disease","rao@ohdsi.org","Pending peer review","","Event of hepatic Failure, indexed on the diagnosis of Hepatic Failure. Patients are excluded if they have a diagnosis of chronic hepatic failure any time in the past or on the same day. Also excluded patients who have other prior liver disease such as viral hepatitis, Liver Cirrhosis, liver fibrosis, alcoholic and others anytime prior including index","#Submitted",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","2023-01-26","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,23,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,23,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -296,"Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era)","Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era)","Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era)","rao@ohdsi.org","Accepted","3.9.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 139803, 443904","https://forums.ohdsi.org/t/17769","2023-01-26","2023-09-19",,"",,0,,,"ERA",180,"fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -298,"[P] Urinary bleed events in persons without renal glomerular disease","Urinary bleed events in persons without renal glomerular disease","Urinary bleed events in persons without renal glomerular disease","rao@ohdsi.org","Pending peer review","","all events of urinary bleeds in persons with no recent kidney biopsy, no chronic kidney disease or recent renal glomerular disease","#Symptoms, #urinary",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","79864, 437038","","2023-02-02","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,3,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,5,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -299,"[P] Acute gastrointestinal bleeding or perforation events","Acute gastrointestinal bleeding or perforation events","Acute gastrointestinal bleeding or perforation events","rao@ohdsi.org","Pending peer review","","all events of gastrointestinal bleed or perforation","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671","","2023-02-02","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -300,"[P] Heavy menstrual bleeding (menorrhagia) events","Heavy menstrual bleeding (menorrhagia) events","Heavy menstrual bleeding (menorrhagia) events","rao@ohdsi.org","Pending peer review","","","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197607, 4302555","","2023-02-02","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",90,3,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,4,1,0,1,0,0,0,1,,1,,,,,,,,,,,,,1,1,,,,,,,,,,,,, -304,"Neurofibromatosis type 1 (FP)","Neurofibromatosis type 1 (FP)","Neurofibromatosis type 1 (FP)","rao@ohdsi.org","Accepted","3.12.0","","#PhenotypePhebruary, #2023, #Neurofibromatosis",1,"Maxim Moinat","","","","","377252","https://forums.ohdsi.org/t/18236","2023-02-07","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -305,"Neurofibromatosis type 1 without Type 2 (FP)","Neurofibromatosis type 1 without Type 2 (FP)","Neurofibromatosis type 1 without Type 2 (FP)","rao@ohdsi.org","Accepted","3.12.0","Persons with Neurofibromatosis without a diagnosis of NF2, vestibular schwannoma or hearing problems. Not all data sources capture NF subtype (e.g. when using ICD10), so to select NF1 we exclude diagnoses that give a suspicion of NF2 (affecting auditory system)","#PhenotypePhebruary, #2023, #Neurofibromatosis",1,"Maxim Moinat","","","","","376938","https://forums.ohdsi.org/t/18236","2023-02-07","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,4,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -306,"Optical pathway glioma and neurofibromatosis (FP)","Optical pathway glioma and neurofibromatosis (FP)","Optical pathway glioma and neurofibromatosis (FP)","rao@ohdsi.org","Accepted","3.12.0","Persons with an optic nerve glioma and diagnosis of neurofibromatosis anytime in persons history. This would be the preferred code for an OPG","#PhenotypePhebruary, #2023, #Neurofibromatosis",1,"Maxim Moinat","","","","","4112970","https://forums.ohdsi.org/t/18236","2023-02-07","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -307,"Optical pathway glioma or non mal neoplasm of optic nerve w nf","Optical pathway glioma or non mal neoplasm of optic nerve w nf","Optical pathway glioma or non malignant neoplasm of optic nerve w neurofibromatosis","rao@ohdsi.org","Accepted","3.12.0","Persons with an optic nerve glioma OR neoplasm of optic nerve, and a diagnosis of neurofibromatosis anytime in persons history","#PhenotypePhebruary, #2023, #Neurofibromatosis",1,"Maxim Moinat","","","","","4216000, 4246137","https://forums.ohdsi.org/t/18236","2023-02-07","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -308,"Optical pathway glioma with MRI imaging and ophth visits NF","Optical pathway glioma with MRI imaging and ophth visits NF","Optical pathway glioma with MRI imaging and ophthalmology visits Neurofibromatosis","rao@ohdsi.org","Accepted","3.12.0","Persons with neurofibromatosis, that also had one MRI of the brain AND at least 3 ophthalmology visits within one year (anytime in persons history). In some centers, an OPG might be coded as general NF and needs to be inferred from follow-up care after diagnosis","#PhenotypePhebruary, #2023, #Neurofibromatosis",1,"Maxim Moinat","","","","","376938","https://forums.ohdsi.org/t/18236","2023-02-07","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,0,,,,,,,,,,,,,,,1,,,,,,,,,,,, -311,"[P] Parasomnia","Parasomnia","Parasomnia","rao@ohdsi.org","Pending peer review","","All events of Parasomnia that may be expected to persist for atleast 30 days with events collapse 1 day after","",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","","","","440087","","2023-02-10","2023-09-23",,"",,0,,,"ERA",1,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -318,"[P] Acute Hepatic Failure in persons without chronic hepatic failure on same day","Acute Hepatic Failure in persons without chronic hepatic failure on same day","Acute Hepatic Failure in persons without chronic hepatic failure on same day","rao@ohdsi.org","Pending peer review","","all events of acute hepatic failure. If the persons also has chronic hepatic failure coded on the same day, they are excluded","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","2023-02-11","2023-09-19",,"",,0,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -324,"[P] Pain","Pain","Pain","rao@ohdsi.org","Pending peer review","","all events of pain","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138525, 194133","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,1,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,1,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -325,"[P] Inpatient Hospitalization By Site of care or type of service","Inpatient Hospitalization By Site of care or type of service","Inpatient Hospitalization By Site of care or type of service","rao@ohdsi.org","Pending","","All events of Inpatient visit defined by site of care (visit domain) or type of service (procedure or observation codes) within any of the main visit categories","#Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-02-12","2023-09-19",,"",,0,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",4,3,"Observation, ProcedureOccurrence, VisitOccurrence",0,0,3,1,0,0,0,1,0,,,1,1,1,,,,,1,,,,,,,,,,,,,,,,,,,, -327,"[P][R] Pharyngitis ","Pharyngitis","Pharyngitis","rao@ohdsi.org","Pending peer review","","all events of Pharyngitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","25297, 4226263","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -328,"[P] Wheezing","Wheezing","Wheezing","rao@ohdsi.org","Pending peer review","","All events of wheezing","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314754","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -330,"[P][R] Abdominal bloating ","Abdominal bloating","Abdominal bloating","rao@ohdsi.org","Pending peer review","","all events of Abdominal bloating. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4023572","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -331,"[P] Encephalopathy","Encephalopathy","Encephalopathy","rao@ohdsi.org","Pending peer review","","events Encephalopathy","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372892, 43021132","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -332,"[P] Pain or ache that is Chronic","Pain or ache that is Chronic","Pain or ache that is Chronic","rao@ohdsi.org","Pending peer review","","all events of non chronic non generalized or diffuse pain","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138525, 194133","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -333,"[P] Alcohol Use Disorder","Alcohol Use Disorder","Alcohol Use Disorder","rao@ohdsi.org","Pending peer review","","all events of abdominal pain","#Symptoms, #Drug",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435243, 36714559","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -334,"[P] Asthma","Asthma","Asthma","rao@ohdsi.org","Pending peer review","","All events of asthma diagnosis or therapy for asthma with a history of another asthma therapy more than 180 days before, or asthma diagnosis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317009","","2023-02-12","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",3,3,"ConditionOccurrence, DrugExposure, Observation",0,0,2,1,1,0,0,0,0,1,,1,1,,,1,1,,,,,,,,,,,,,,,,,,,,,, -335,"[P] Anxiety or Fear","Anxiety or Fear","Anxiety or Fear","rao@ohdsi.org","Pending peer review","","Events of Anxiety or Fear","",1,"","","","","","441542, 442077","","2023-02-12","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -339,"[P][R] Low blood pressure ","Low blood pressure","Low blood pressure","rao@ohdsi.org","Pending peer review","","all events of Low blood pressure. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317002","https://forums.ohdsi.org/t/17895","2023-03-14","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -340,"[P] Hives, Erythema, Eruption, Urticaria","Hives, Erythema, Eruption, Urticaria","Hives, Erythema, Eruption, Urticaria","rao@ohdsi.org","Pending peer review","","All events of Hives, Erythema, Eruption, Urticaria","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134438, 45766714","https://forums.ohdsi.org/t/17895","2023-03-14","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -341,"[P] Loss of mentation including comma, syncope, altered consciousness","Loss of mentation including comma, syncope, altered consciousness","Loss of mentation including comma, syncope, altered consciousness","rao@ohdsi.org","Pending peer review","","All events of Disturbance of consciousness, loss of mentation including comma, syncope, altered consciousness","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376961, 4206148","https://forums.ohdsi.org/t/17895","2023-03-14","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -342,"[P][R] Urinary incontinence","Urinary incontinence","Urinary incontinence","rao@ohdsi.org","Pending peer review","","all events of Urinary incontinence. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197672","https://forums.ohdsi.org/t/17895","2023-03-14","2023-09-25",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -343,"[P] Fecal Incontinence","Fecal Incontinence","Fecal Incontinence","rao@ohdsi.org","Pending peer review","","All events of Fecal Incontinence","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197675, 4101350","https://forums.ohdsi.org/t/17895","2023-03-14","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -344,"[P] Doctors office or clinic visit without other overlapping visits","Doctors office or clinic visit without other overlapping visits","Doctors office or clinic visit without other overlapping visits","rao@ohdsi.org","Pending peer review","","All events of Doctors office or clinic visit that does not overlap with inpatient, urgent care or emergency visit","#Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-03-14","2023-09-25",,"",,0,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,4,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,6,1,0,0,0,0,0,,,1,,1,,,,,,,,,,,,,,1,,,,,,,,,,, -346,"[P] Non urgent outpatient visit without overlapping inpatient or emergency visit","Non urgent outpatient visit without overlapping inpatient or emergency visit","Non urgent outpatient visit without overlapping inpatient or emergency visit","rao@ohdsi.org","Pending peer review","","All events of Doctors office or clinic visit that does not overlap with inpatient, urgent care or emergency visit. If a person has visits on consecutive days, they are collapsed into a spans of days","#Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-03-14","2023-10-22",,"",,0,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,4,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,5,1,0,0,0,0,0,,,1,,1,,,,,,,,,,,,,,,,,,,,,,,,, -347,"[P] Ambulance utilization","Ambulance utilization","Ambulance utilization","rao@ohdsi.org","Pending peer review","","All events of Ambulance use","#Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-03-14","2023-09-25",,"",,0,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",4,4,"ConditionOccurrence, Observation, ProcedureOccurrence, VisitOccurrence",0,0,1,0,0,0,0,1,0,1,,1,1,1,,,,,1,,,,,,,,,,,,,,,,,,,, -348,"[P][R] Blood in urine ","Blood in urine","Blood in urine","rao@ohdsi.org","Pending peer review","","all events of Blood in urine. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","79864, 437038","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -349,"[P] Lower gastrointestinal bleeding events","Lower gastrointestinal bleeding events","Lower gastrointestinal bleeding events","rao@ohdsi.org","Pending peer review","","all events of lower gastrointestinal bleed","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197925, 4245614","","2023-03-15","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -350,"[P][R] Hemoptysis","Hemoptysis","Hemoptysis","rao@ohdsi.org","Pending peer review","","all events of Hemoptysis. Persons exit on cohort end date","#Referent, #Condition, #respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","261687","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-28",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -351,"[P] Nasal Polyp present","Nasal Polyp present","Nasal Polyp present","rao@ohdsi.org","Pending peer review","","all events of nasal polyp","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4209223, 4285898, 42537251","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,5,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -352,"[P][R] Inflamed tonsils ","Inflamed tonsils","Inflamed tonsils","rao@ohdsi.org","Pending peer review","","all events of Inflamed tonsils. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24660, 4083666","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -353,"[P][R] Conjunctivitis ","Conjunctivitis","Conjunctivitis","rao@ohdsi.org","Pending peer review","","all events of Conjunctivitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","379019","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -354,"[P] Nasal Congestion or Rhinitis or Common Cold","Nasal Congestion or Rhinitis or Common Cold","Nasal Congestion or Rhinitis or Common Cold","rao@ohdsi.org","Pending peer review","","all events of Nasal Congestion or Rhinitis or Common Cold","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 4320791","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -355,"[P] Laryngitis","Laryngitis","Laryngitis","rao@ohdsi.org","Pending peer review","","all events of Laryngitis","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24969, 260134","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -356,"[P] Epistaxis","Epistaxis","Epistaxis","rao@ohdsi.org","Pending peer review","","all events of Epistaxis","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4096682","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,2,0,0,0,0,0,0,1,,1,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -357,"[P][R] Pulmonary edema ","Pulmonary edema","Pulmonary edema","rao@ohdsi.org","Pending peer review","","all events of Pulmonary edema. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","261600, 4078925","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -358,"[P] Acute Respiratory Failure among persons with no chronic respiratory failure","Acute Respiratory Failure among persons with no chronic respiratory failure","Acute Respiratory Failure among persons with no chronic respiratory failure","rao@ohdsi.org","Pending peer review","","All events of Acute Respiratory Failure among persons with no evidence of chronic respiratory failure in past 365 days","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049, 4256228","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -359,"[P] Acute Respiratory Failure","Acute Respiratory Failure","Acute Respiratory Failure","rao@ohdsi.org","Pending peer review","","All events of Acute Respiratory Failure","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049, 4256228","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -360,"[P] Pleural Effusion","Pleural Effusion","Pleural Effusion","rao@ohdsi.org","Pending peer review","","All events of Pleural Effusion","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254061","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -361,"[P][R] Restless legs ","Restless legs","Restless legs","rao@ohdsi.org","Pending peer review","","all events of Restless legs. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","73754","https://forums.ohdsi.org/t/18236","2023-04-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -362,"Acute Kidney Injury AKI","Acute Kidney Injury AKI","Acute Kidney Injury AKI","rao@ohdsi.org","Accepted","3.8.0","Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","#PhenotypePhebruary, #2022, #DME",1,"Marcela V Rivera David Vizcaya","","","","","197320","https://forums.ohdsi.org/t/16067","2023-04-25","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,4,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,7,1,0,0,0,0,1,1,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -363,"[P][R] Joint stiffness ","Joint stiffness","Joint stiffness","rao@ohdsi.org","Pending peer review","","all events of Joint stiffness. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","72404, 72711","https://forums.ohdsi.org/t/17895","2023-05-30","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -364,"[P][R] Sleep disorder ","Sleep disorder","Sleep disorder","rao@ohdsi.org","Pending peer review","","all events of Sleep disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435524, 442588","https://forums.ohdsi.org/t/17895","2023-05-30","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -365,"[P] Dysuria","Dysuria","Dysuria","rao@ohdsi.org","Pending peer review","","all events of Dysuria","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197684, 4021780","https://forums.ohdsi.org/t/17895","2023-05-30","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -366,"[P] Streptococcal throat infection","Streptococcal throat infection","Streptococcal throat infection","rao@ohdsi.org","Pending peer review","","All events of Streptococcal throat infection","#respiratory",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","25297, 28060, 4226263","","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -367,"[P] Allergic Rhinitis","Allergic Rhinitis","Allergic Rhinitis","rao@ohdsi.org","Pending peer review","","All events of Allergic rhinitis","#respiratory",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 4320791","","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",90,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,4,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -368,"[P][R] Sinusitis ","Sinusitis","Sinusitis","rao@ohdsi.org","Pending peer review","","all events of Sinusitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","260123, 4283893","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -369,"[P][R] Allergic condition ","Allergic condition","Allergic condition","rao@ohdsi.org","Pending peer review","","all events of Allergic condition. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 43021227","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -370,"[P] Allergic disorder","Allergic disorder","Allergic disorder","rao@ohdsi.org","Pending peer review","","All events of Allergic Disorder","#symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 43021227","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -371,"[P] Claudication Pain","Claudication Pain","Claudication Pain","rao@ohdsi.org","Pending peer review","","all events of claudication pain","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","195834, 317309, 442774","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -372,"[P] Otitis media","Otitis media","Otitis media","rao@ohdsi.org","Pending peer review","","All events of Otitis media","#respiratory",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372328","","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -373,"[P] Iron deficiency Anemia","Iron deficiency Anemia","Iron deficiency Anemia","rao@ohdsi.org","Pending peer review","","all events of iron deficiency anemia","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439777","https://forums.ohdsi.org/t/17856","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -374,"[P][R] Drug dependence ","Drug dependence","Drug dependence","rao@ohdsi.org","Pending peer review","","all events of Drug dependence. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437264, 440069","","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -375,"[P] Gall stone disorder","Gall stone disorder","Gall stone disorder","rao@ohdsi.org","Pending peer review","","all events of Gall stone","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","444367, 4145627","","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -376,"[P][R] Bleeding skin ","Bleeding skin","Bleeding skin","rao@ohdsi.org","Pending peer review","","all events of Bleeding skin. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441259, 4177600",,"2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -377,"[P][R] Petechiae ","Petechiae","Petechiae","rao@ohdsi.org","Pending peer review","","all events of Petechiae. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4155911",,"2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -378,"[P][R] Purpuric disorder ","Purpuric disorder","Purpuric disorder","rao@ohdsi.org","Pending peer review","","all events of Purpuric disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441259, 4307580",,"2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -379,"[P] Ecchymosis","Ecchymosis","Ecchymosis","rao@ohdsi.org","Pending peer review","","all events of Ecchymosis anywhere","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438252, 4118793",,"2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -380,"[P][R] Jaundice ","Jaundice","Jaundice","rao@ohdsi.org","Pending peer review","","all events of Jaundice. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137977, 435656","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -381,"[P] Skin Itching","Skin Itching","Skin Itching","rao@ohdsi.org","Pending peer review","","events of skin itching","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133834, 133835, 135618, 4169287","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -382,"[P] Prurititc Rash","Prurititc Rash","Prurititc Rash","rao@ohdsi.org","Pending peer review","","events of pruritic rash","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","135618, 4169287","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -383,"[P] Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis","Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis","Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis","rao@ohdsi.org","Pending peer review","","","#skin",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133834, 133835, 45766714","","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,5,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -384,"[P][R] Contact dermatitis ","Contact dermatitis","Contact dermatitis","rao@ohdsi.org","Pending peer review","","all events of Contact dermatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134438","","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -385,"[P][R] Intertrigo ","Intertrigo","Intertrigo","rao@ohdsi.org","Pending peer review","","all events of Intertrigo. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4242574","","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -386,"[P][R] Seborrheic dermatitis ","Seborrheic dermatitis","Seborrheic dermatitis","rao@ohdsi.org","Pending peer review","","all events of Seborrheic dermatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137053","","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -387,"[P][R] Photodermatitis ","Photodermatitis","Photodermatitis","rao@ohdsi.org","Pending peer review","","all events of Photodermatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4203600, 4239682, 4331304","","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -388,"[P][R] Peripheral neuritis ","Peripheral neuritis","Peripheral neuritis","rao@ohdsi.org","Pending peer review","","all events of Peripheral neuritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4027396","","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -389,"[P] Peripheral Neuropathy or Neuritits","Peripheral Neuropathy or Neuritits","Peripheral Neuropathy or Neuritits","rao@ohdsi.org","Pending peer review","","first occurrence of peripheral neuritis or neuropathy","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4027396, 4117779","","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -391,"[P] Hearing Loss","Hearing Loss","Hearing Loss","rao@ohdsi.org","Pending peer review","","all events of Hearing Loss","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377889","","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -392,"[P] Otalgia or Otitis","Otalgia or Otitis","Otalgia or Otitis","rao@ohdsi.org","Pending peer review","","All events of Otitis or Otalgia","#symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372328, 4183452","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -393,"[P] Low Back Pain or Injury","Low Back Pain or Injury","Low Back Pain or Injury","rao@ohdsi.org","Pending peer review","","all events of low back pain or injury","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312998, 4020345","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -394,"[P] Gastroesophageal reflux disease","Gastroesophageal reflux disease","Gastroesophageal reflux disease","rao@ohdsi.org","Pending peer review","","all events of Gastroesophageal reflux disease","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","23325, 318800, 4091509","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,4,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -395,"[P] Dysmenorrhea","Dysmenorrhea","Dysmenorrhea","rao@ohdsi.org","Pending peer review","","all events of Dysmenorrhea","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443431","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -396,"[P][R] Osteoarthritis ","Osteoarthritis","Osteoarthritis","rao@ohdsi.org","Pending peer review","","all events of Osteoarthritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80180, 4079750","","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -397,"[P][R] Hyperplasia of prostate ","Hyperplasia of prostate","Hyperplasia of prostate","rao@ohdsi.org","Pending peer review","","all events of Hyperplasia of prostate. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197032, 443211","","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -398,"[P] Bladder Outflow Obstruction","Bladder Outflow Obstruction","Bladder Outflow Obstruction","rao@ohdsi.org","Pending peer review","","All events of Bladder Outflow Obstruction","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194406, 443211","","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -399,"[P][R] Urolithiasis ","Urolithiasis","Urolithiasis","rao@ohdsi.org","Pending peer review","","all events of Urolithiasis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201620, 4319447","","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -400,"[P][R] Malignant tumor of prostate ","Malignant tumor of prostate","Malignant tumor of prostate","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of prostate. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200962, 4163261","","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -401,"[P] Uterine Fibroids or benign uterine tumors","Uterine Fibroids or benign uterine tumors","Uterine Fibroids or benign uterine tumors","rao@ohdsi.org","Pending peer review","","Uterine Fibroids","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197236, 201817","","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",1095,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -402,"[P] Ventilatory assist for respiratory findings with Acute Respiratory Failure","Ventilatory assist for respiratory findings with Acute Respiratory Failure","Ventilatory assist for respiratory findings with Acute Respiratory Failure","rao@ohdsi.org","Pending peer review","","all events of acute respiratory symptoms commonly seen in acute respiratory failure with procedures for ventilatory assist among persons with respiratory failure","#CriticalCare",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","255573, 4027553","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -403,"[P] Acute Respiratory Failure in inpatient or Emergency room","Acute Respiratory Failure in inpatient or Emergency room","Acute Respiratory Failure in inpatient or Emergency room","rao@ohdsi.org","Pending peer review","","all events of Acute Respiratory Failure in inpatient or Emergency room","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,1,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -404,"[P] Ventricular Tachycardia, in an Inpatient or Emergency room setting","Ventricular Tachycardia, in an Inpatient or Emergency room setting","Ventricular Tachycardia, in an Inpatient or Emergency room setting","rao@ohdsi.org","Pending peer review","","Ventricular tachycardia with inpatient stay","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437579, 4103295","","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",7,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -405,"[P] Atrial Fibrillation or Flutter","Atrial Fibrillation or Flutter","Atrial Fibrillation or Flutter","rao@ohdsi.org","Pending peer review","","All events of Atrial Fibrillation or Flutter","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217","","2023-05-31","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -406,"[P][R] Intellectual disability ","Intellectual disability","Intellectual disability","rao@ohdsi.org","Pending peer review","","all events of Intellectual disability. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40277917","","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -407,"[P][R] Hemorrhoids ","Hemorrhoids","Hemorrhoids","rao@ohdsi.org","Pending peer review","","all events of Hemorrhoids. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","195562","","2023-05-31","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -410,"[P] Acute Urinary tract infections UTI","Acute Urinary tract infections UTI","Acute Urinary tract infections UTI","rao@ohdsi.org","Pending peer review","","","#Symptoms",1,"Stephen H. Fortin","","","","","81902","","2023-06-01","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -411,"[P] Sepsis or Septic Shock","Sepsis or Septic Shock","Sepsis or Septic Shock","rao@ohdsi.org","Pending peer review","","All events of Sepsis or Septic Shock","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132797","","2023-06-01","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -412,"Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W)","Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W)","Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W)","rao@ohdsi.org","Accepted","3.7.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","139803, 443904","https://forums.ohdsi.org/t/17769","2023-06-02","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -414,"[P] Acute Skin Eruption symptoms","Acute Skin Eruption symptoms","Acute Skin Eruption symptoms","rao@ohdsi.org","Pending peer review","","All events of certain skin eruption symptoms","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134438, 45766714","https://forums.ohdsi.org/t/17895","2023-06-02","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -415,"[P][R] Erythema of skin ","Erythema of skin","Erythema of skin","rao@ohdsi.org","Pending peer review","","all events of Erythema of skin. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4300442, 40481101","https://forums.ohdsi.org/t/17895","2023-06-02","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -416,"[P] Skin Rash","Skin Rash","Skin Rash","rao@ohdsi.org","Pending peer review","","All events of Skin Erythema","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","135618","https://forums.ohdsi.org/t/17895","2023-06-02","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -417,"[P] Acute gastrointestinal bleeding events","Acute gastrointestinal bleeding events","Acute gastrointestinal bleeding events","rao@ohdsi.org","Pending peer review","","all events of gastrointestinal bleed","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671","","2023-06-02","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -444,"[P][R] Neck pain","Neck pain","Neck pain","rao@ohdsi.org","Pending peer review","","all events of Neck pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24134","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -445,"[P][R] Hypoglycemia","Hypoglycemia","Hypoglycemia","rao@ohdsi.org","Pending peer review","","all events of Hypoglycemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24609","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -446,"[P][R] Eosinophilic esophagitis","Eosinophilic esophagitis","Eosinophilic esophagitis","rao@ohdsi.org","Pending peer review","","all events of Eosinophilic esophagitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27918","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -447,"[P][R] Esophagitis","Esophagitis","Esophagitis","rao@ohdsi.org","Pending peer review","","all events of Esophagitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","30437, 30753","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -448,"[P][R] Dysphagia","Dysphagia","Dysphagia","rao@ohdsi.org","Pending peer review","","all events of Dysphagia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","31317","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -449,"[P][R] Nausea","Nausea","Nausea","rao@ohdsi.org","Pending peer review","","all events of Nausea. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27674, 31967","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -450,"[P][R] Constipation","Constipation","Constipation","rao@ohdsi.org","Pending peer review","","all events of Constipation. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","75860","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -451,"[P][R] Myasthenia gravis","Myasthenia gravis","Myasthenia gravis","rao@ohdsi.org","Pending peer review","","all events of Myasthenia gravis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","76685","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -452,"[P][R] Joint pain","Joint pain","Joint pain","rao@ohdsi.org","Pending peer review","","all events of Joint pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","77074, 78232","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -453,"[P][R] Osteoarthritis","Osteoarthritis","Osteoarthritis","rao@ohdsi.org","Pending peer review","","all events of Osteoarthritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80180, 4079750","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -454,"[P][R] Dermatomyositis","Dermatomyositis","Dermatomyositis","rao@ohdsi.org","Pending peer review","","all events of Dermatomyositis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80182","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -455,"[P][R] Fetal growth restriction","Fetal growth restriction","Fetal growth restriction","rao@ohdsi.org","Pending peer review","","all events of Fetal growth restriction. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","74469, 80204, 4145947","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -456,"[P][R] Osteoporosis","Osteoporosis","Osteoporosis","rao@ohdsi.org","Pending peer review","","all events of Osteoporosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80502","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -457,"[P][R] Rheumatoid arthritis","Rheumatoid arthritis","Rheumatoid arthritis","rao@ohdsi.org","Pending peer review","","all events of Rheumatoid arthritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80809","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -458,"[P][R] Ulcerative colitis","Ulcerative colitis","Ulcerative colitis","rao@ohdsi.org","Pending peer review","","all events of Ulcerative colitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81893","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -459,"[P][R] Urinary tract infectious disease","Urinary tract infectious disease","Urinary tract infectious disease","rao@ohdsi.org","Pending peer review","","all events of Urinary tract infectious disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81902","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -460,"[P][R] Psoriasis with arthropathy","Psoriasis with arthropathy","Psoriasis with arthropathy","rao@ohdsi.org","Pending peer review","","all events of Psoriasis with arthropathy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81931","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -461,"[P][R] Erythema multiforme","Erythema multiforme","Erythema multiforme","rao@ohdsi.org","Pending peer review","","all events of Erythema multiforme. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132702","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -462,"[P][R] Lichen planus","Lichen planus","Lichen planus","rao@ohdsi.org","Pending peer review","","all events of Lichen planus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132703","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -463,"[P][R] Sepsis","Sepsis","Sepsis","rao@ohdsi.org","Pending peer review","","all events of Sepsis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132797","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -464,"[P][R] Myelofibrosis","Myelofibrosis","Myelofibrosis","rao@ohdsi.org","Pending peer review","","all events of Myelofibrosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133169","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -465,"[P][R] Thyroiditis","Thyroiditis","Thyroiditis","rao@ohdsi.org","Pending peer review","","all events of Thyroiditis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133444, 4281109","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -466,"[P][R] Atopic dermatitis","Atopic dermatitis","Atopic dermatitis","rao@ohdsi.org","Pending peer review","","all events of Atopic dermatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133834","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -467,"[P][R] Systemic sclerosis","Systemic sclerosis","Systemic sclerosis","rao@ohdsi.org","Pending peer review","","all events of Systemic sclerosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134442","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -468,"[P][R] Pityriasis rubra pilaris","Pityriasis rubra pilaris","Pityriasis rubra pilaris","rao@ohdsi.org","Pending peer review","","all events of Pityriasis rubra pilaris. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","136774","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -469,"[P][R] Jaundice","Jaundice","Jaundice","rao@ohdsi.org","Pending peer review","","all events of Jaundice. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137977, 435656","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -470,"[P][R] Chronic lymphoid leukemia, disease","Chronic lymphoid leukemia, disease","Chronic lymphoid leukemia, disease","rao@ohdsi.org","Pending peer review","","all events of Chronic lymphoid leukemia, disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138379","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -471,"[P][R] Vitiligo","Vitiligo","Vitiligo","rao@ohdsi.org","Pending peer review","","all events of Vitiligo. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138502","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -472,"[P][R] Myelodysplastic syndrome (clinical)","Myelodysplastic syndrome (clinical)","Myelodysplastic syndrome (clinical)","rao@ohdsi.org","Pending peer review","","all events of Myelodysplastic syndrome (clinical). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138994","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -473,"[P][R] Acute transverse myelitis","Acute transverse myelitis","Acute transverse myelitis","rao@ohdsi.org","Pending peer review","","all events of Acute transverse myelitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139803","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -474,"[P][R] Pemphigoid","Pemphigoid","Pemphigoid","rao@ohdsi.org","Pending peer review","","all events of Pemphigoid. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139899","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -475,"[P][R] Psoriasis","Psoriasis","Psoriasis","rao@ohdsi.org","Pending peer review","","all events of Psoriasis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140168","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -476,"[P][R] Acute myeloid leukemia, disease","Acute myeloid leukemia, disease","Acute myeloid leukemia, disease","rao@ohdsi.org","Pending peer review","","all events of Acute myeloid leukemia, disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140352","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -477,"[P][R] Hypothyroidism","Hypothyroidism","Hypothyroidism","rao@ohdsi.org","Pending peer review","","all events of Hypothyroidism. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138384, 140673","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -478,"[P][R] Malignant melanoma of skin","Malignant melanoma of skin","Malignant melanoma of skin","rao@ohdsi.org","Pending peer review","","all events of Malignant melanoma of skin. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141232","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -479,"[P][R] Chilblains","Chilblains","Chilblains","rao@ohdsi.org","Pending peer review","","all events of Chilblains. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141456","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -480,"[P][R] Alopecia areata","Alopecia areata","Alopecia areata","rao@ohdsi.org","Pending peer review","","all events of Alopecia areata. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141933","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -481,"[P][R] Renal failure syndrome","Renal failure syndrome","Renal failure syndrome","rao@ohdsi.org","Pending peer review","","all events of Renal failure syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192359, 193782","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -482,"[P][R] Gastrointestinal hemorrhage","Gastrointestinal hemorrhage","Gastrointestinal hemorrhage","rao@ohdsi.org","Pending peer review","","all events of Gastrointestinal hemorrhage. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -483,"[P][R] Biliary cirrhosis","Biliary cirrhosis","Biliary cirrhosis","rao@ohdsi.org","Pending peer review","","all events of Biliary cirrhosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192675","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -484,"[P][R] End-stage renal disease","End-stage renal disease","End-stage renal disease","rao@ohdsi.org","Pending peer review","","all events of End-stage renal disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","193782","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -485,"[P][R] Low back pain","Low back pain","Low back pain","rao@ohdsi.org","Pending peer review","","all events of Low back pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194133","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -486,"[P][R] Premature rupture of membranes","Premature rupture of membranes","Premature rupture of membranes","rao@ohdsi.org","Pending peer review","","all events of Premature rupture of membranes. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194702, 200160","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -487,"[P][R] Celiac disease","Celiac disease","Celiac disease","rao@ohdsi.org","Pending peer review","","all events of Celiac disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194992","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -488,"[P][R] Diarrhea","Diarrhea","Diarrhea","rao@ohdsi.org","Pending peer review","","all events of Diarrhea. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196523","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -489,"[P][R] Acute renal failure syndrome","Acute renal failure syndrome","Acute renal failure syndrome","rao@ohdsi.org","Pending peer review","","all events of Acute renal failure syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -490,"[P][R] Viral hepatitis C","Viral hepatitis C","Viral hepatitis C","rao@ohdsi.org","Pending peer review","","all events of Viral hepatitis C. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197494, 198964","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -491,"[P][R] Malignant tumor of urinary bladder","Malignant tumor of urinary bladder","Malignant tumor of urinary bladder","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of urinary bladder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196360, 197508","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -492,"[P][R] Cardiogenic shock","Cardiogenic shock","Cardiogenic shock","rao@ohdsi.org","Pending peer review","","all events of Cardiogenic shock. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198571","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -493,"[P][R] Malignant tumor of cervix","Malignant tumor of cervix","Malignant tumor of cervix","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of cervix. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196359, 198984","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -494,"[P][R] Primary malignant neoplasm of kidney","Primary malignant neoplasm of kidney","Primary malignant neoplasm of kidney","rao@ohdsi.org","Pending peer review","","all events of Primary malignant neoplasm of kidney. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198985","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -495,"[P][R] Acute pancreatitis","Acute pancreatitis","Acute pancreatitis","rao@ohdsi.org","Pending peer review","","all events of Acute pancreatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","199074","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -496,"[P][R] Abdominal pain","Abdominal pain","Abdominal pain","rao@ohdsi.org","Pending peer review","","all events of Abdominal pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200219","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -497,"[P][R] Autoimmune hepatitis","Autoimmune hepatitis","Autoimmune hepatitis","rao@ohdsi.org","Pending peer review","","all events of Autoimmune hepatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200762","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -498,"[P][R] Toxic shock syndrome","Toxic shock syndrome","Toxic shock syndrome","rao@ohdsi.org","Pending peer review","","all events of Toxic shock syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201214","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -499,"[P][R] Type 1 diabetes mellitus","Type 1 diabetes mellitus","Type 1 diabetes mellitus","rao@ohdsi.org","Pending peer review","","all events of Type 1 diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201254","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -500,"[P][R] Gastritis","Gastritis","Gastritis","rao@ohdsi.org","Pending peer review","","all events of Gastritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201340","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -501,"[P][R] Crohn's disease","Crohn's disease","Crohn's disease","rao@ohdsi.org","Pending peer review","","all events of Crohn's disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201606","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -502,"[P][R] Kidney stone","Kidney stone","Kidney stone","rao@ohdsi.org","Pending peer review","","all events of Kidney stone. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201620","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -503,"[P][R] Type 2 diabetes mellitus","Type 2 diabetes mellitus","Type 2 diabetes mellitus","rao@ohdsi.org","Pending peer review","","all events of Type 2 diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201826","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -504,"[P][R] Sjögren's syndrome","Sjögren's syndrome","Sjögren's syndrome","rao@ohdsi.org","Pending peer review","","all events of Sjögren's syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254443","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -505,"[P][R] Cough","Cough","Cough","rao@ohdsi.org","Pending peer review","","all events of Cough. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254761","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -506,"[P][R] Chronic obstructive lung disease","Chronic obstructive lung disease","Chronic obstructive lung disease","rao@ohdsi.org","Pending peer review","","all events of Chronic obstructive lung disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","255573","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -507,"[P][R] Pneumonia","Pneumonia","Pneumonia","rao@ohdsi.org","Pending peer review","","all events of Pneumonia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","255848","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -508,"[P][R] Allergic rhinitis","Allergic rhinitis","Allergic rhinitis","rao@ohdsi.org","Pending peer review","","all events of Allergic rhinitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -509,"[P][R] Systemic lupus erythematosus","Systemic lupus erythematosus","Systemic lupus erythematosus","rao@ohdsi.org","Pending peer review","","all events of Systemic lupus erythematosus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257628","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -510,"[P][R] Acute myocardial infarction","Acute myocardial infarction","Acute myocardial infarction","rao@ohdsi.org","Pending peer review","","all events of Acute myocardial infarction. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312327, 444406","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -511,"[P][R] Dyspnea","Dyspnea","Dyspnea","rao@ohdsi.org","Pending peer review","","all events of Dyspnea. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312437","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -512,"[P][R] Thromboangiitis obliterans","Thromboangiitis obliterans","Thromboangiitis obliterans","rao@ohdsi.org","Pending peer review","","all events of Thromboangiitis obliterans. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312939","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -513,"[P][R] Atrial fibrillation","Atrial fibrillation","Atrial fibrillation","rao@ohdsi.org","Pending peer review","","all events of Atrial fibrillation. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -514,"[P][R] Granulomatosis with polyangiitis","Granulomatosis with polyangiitis","Granulomatosis with polyangiitis","rao@ohdsi.org","Pending peer review","","all events of Granulomatosis with polyangiitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313223","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -515,"[P][R] Sleep apnea","Sleep apnea","Sleep apnea","rao@ohdsi.org","Pending peer review","","all events of Sleep apnea. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313459, 442588","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -516,"[P][R] Thrombotic microangiopathy","Thrombotic microangiopathy","Thrombotic microangiopathy","rao@ohdsi.org","Pending peer review","","all events of Thrombotic microangiopathy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313800","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -517,"[P][R] Acute febrile mucocutaneous lymph node syndrome","Acute febrile mucocutaneous lymph node syndrome","Acute febrile mucocutaneous lymph node syndrome","rao@ohdsi.org","Pending peer review","","all events of Acute febrile mucocutaneous lymph node syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314381","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -518,"[P][R] Myocarditis","Myocarditis","Myocarditis","rao@ohdsi.org","Pending peer review","","all events of Myocarditis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314383","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -519,"[P][R] Heart failure","Heart failure","Heart failure","rao@ohdsi.org","Pending peer review","","all events of Heart failure. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","316139, 319835","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -520,"[P][R] Hypertensive disorder","Hypertensive disorder","Hypertensive disorder","rao@ohdsi.org","Pending peer review","","all events of Hypertensive disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312648, 316866, 4028741","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -521,"[P][R] Asthma","Asthma","Asthma","rao@ohdsi.org","Pending peer review","","all events of Asthma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317009","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -522,"[P][R] Coronary arteriosclerosis","Coronary arteriosclerosis","Coronary arteriosclerosis","rao@ohdsi.org","Pending peer review","","all events of Coronary arteriosclerosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317576, 764123","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -523,"[P][R] Arteriosclerotic vascular disease","Arteriosclerotic vascular disease","Arteriosclerotic vascular disease","rao@ohdsi.org","Pending peer review","","all events of Arteriosclerotic vascular disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318443, 764123","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -524,"[P][R] Migraine","Migraine","Migraine","rao@ohdsi.org","Pending peer review","","all events of Migraine. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318736","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -525,"[P][R] Gastroesophageal reflux disease","Gastroesophageal reflux disease","Gastroesophageal reflux disease","rao@ohdsi.org","Pending peer review","","all events of Gastroesophageal reflux disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318800","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -526,"[P][R] Orthostatic hypotension","Orthostatic hypotension","Orthostatic hypotension","rao@ohdsi.org","Pending peer review","","all events of Orthostatic hypotension. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319041","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -527,"[P][R] Acute respiratory failure","Acute respiratory failure","Acute respiratory failure","rao@ohdsi.org","Pending peer review","","all events of Acute respiratory failure. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -528,"[P][R] Polyarteritis nodosa","Polyarteritis nodosa","Polyarteritis nodosa","rao@ohdsi.org","Pending peer review","","all events of Polyarteritis nodosa. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320749","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -529,"[P][R] Cardiac arrest","Cardiac arrest","Cardiac arrest","rao@ohdsi.org","Pending peer review","","all events of Cardiac arrest. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321042","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -530,"[P][R] Peripheral vascular disease","Peripheral vascular disease","Peripheral vascular disease","rao@ohdsi.org","Pending peer review","","all events of Peripheral vascular disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321052","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -531,"[P][R] Angina pectoris","Angina pectoris","Angina pectoris","rao@ohdsi.org","Pending peer review","","all events of Angina pectoris. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321318","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -532,"[P][R] Heart disease","Heart disease","Heart disease","rao@ohdsi.org","Pending peer review","","all events of Heart disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 321588, 44784217","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -533,"[P][R] Otitis media","Otitis media","Otitis media","rao@ohdsi.org","Pending peer review","","all events of Otitis media. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372328","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -534,"[P][R] Transient cerebral ischemia","Transient cerebral ischemia","Transient cerebral ischemia","rao@ohdsi.org","Pending peer review","","all events of Transient cerebral ischemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","373503","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -535,"[P][R] Acute disseminated encephalomyelitis","Acute disseminated encephalomyelitis","Acute disseminated encephalomyelitis","rao@ohdsi.org","Pending peer review","","all events of Acute disseminated encephalomyelitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374021","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -536,"[P][R] Age related macular degeneration","Age related macular degeneration","Age related macular degeneration","rao@ohdsi.org","Pending peer review","","all events of Age related macular degeneration. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374028, 376966","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -537,"[P][R] Sensorineural hearing loss","Sensorineural hearing loss","Sensorineural hearing loss","rao@ohdsi.org","Pending peer review","","all events of Sensorineural hearing loss. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374366, 4110815","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -538,"[P][R] Paralytic syndrome","Paralytic syndrome","Paralytic syndrome","rao@ohdsi.org","Pending peer review","","all events of Paralytic syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374377, 4134120","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -539,"[P][R] Multiple sclerosis","Multiple sclerosis","Multiple sclerosis","rao@ohdsi.org","Pending peer review","","all events of Multiple sclerosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374919","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -540,"[P][R] Optic neuritis","Optic neuritis","Optic neuritis","rao@ohdsi.org","Pending peer review","","all events of Optic neuritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374954","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -541,"[P][R] Idiopathic peripheral neuropathy","Idiopathic peripheral neuropathy","Idiopathic peripheral neuropathy","rao@ohdsi.org","Pending peer review","","all events of Idiopathic peripheral neuropathy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","375806","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -542,"[P][R] Cerebral hemorrhage","Cerebral hemorrhage","Cerebral hemorrhage","rao@ohdsi.org","Pending peer review","","all events of Cerebral hemorrhage. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376713","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -543,"[P][R] Seizure","Seizure","Seizure","rao@ohdsi.org","Pending peer review","","all events of Seizure. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377091","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -544,"[P][R] Encephalitis","Encephalitis","Encephalitis","rao@ohdsi.org","Pending peer review","","all events of Encephalitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378143, 380941","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -545,"[P][R] Headache","Headache","Headache","rao@ohdsi.org","Pending peer review","","all events of Headache. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378253","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -546,"[P][R] Retinal detachment","Retinal detachment","Retinal detachment","rao@ohdsi.org","Pending peer review","","all events of Retinal detachment. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378414","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -547,"[P][R] Retinal disorder","Retinal disorder","Retinal disorder","rao@ohdsi.org","Pending peer review","","all events of Retinal disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376966, 378416, 4116208","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -549,"[P][R] Epilepsy","Epilepsy","Epilepsy","rao@ohdsi.org","Pending peer review","","all events of Epilepsy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","380378","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -550,"[P][R] Chronic inflammatory demyelinating polyradiculoneuropathy","Chronic inflammatory demyelinating polyradiculoneuropathy","Chronic inflammatory demyelinating polyradiculoneuropathy","rao@ohdsi.org","Pending peer review","","all events of Chronic inflammatory demyelinating polyradiculoneuropathy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381009","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -551,"[P][R] Microcephaly","Microcephaly","Microcephaly","rao@ohdsi.org","Pending peer review","","all events of Microcephaly. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381114,606878","","2023-06-25","2023-09-22",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -552,"[P][R] Parkinson's disease","Parkinson's disease","Parkinson's disease","rao@ohdsi.org","Pending peer review","","all events of Parkinson's disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381270","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -553,"[P][R] Cerebrovascular accident","Cerebrovascular accident","Cerebrovascular accident","rao@ohdsi.org","Pending peer review","","all events of Cerebrovascular accident. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381316","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -554,"[P][R] Cerebrovascular disease","Cerebrovascular disease","Cerebrovascular disease","rao@ohdsi.org","Pending peer review","","all events of Cerebrovascular disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381591, 4288310","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -555,"[P][R] Blood coagulation disorder","Blood coagulation disorder","Blood coagulation disorder","rao@ohdsi.org","Pending peer review","","all events of Blood coagulation disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432585","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -556,"[P][R] Amyloidosis","Amyloidosis","Amyloidosis","rao@ohdsi.org","Pending peer review","","all events of Amyloidosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432595","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -557,"[P][R] Angioedema","Angioedema","Angioedema","rao@ohdsi.org","Pending peer review","","all events of Angioedema. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432791","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -558,"[P][R] Hyperlipidemia","Hyperlipidemia","Hyperlipidemia","rao@ohdsi.org","Pending peer review","","all events of Hyperlipidemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432867","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -559,"[P][R] Thrombocytopenic disorder","Thrombocytopenic disorder","Thrombocytopenic disorder","rao@ohdsi.org","Pending peer review","","all events of Thrombocytopenic disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432870","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -560,"[P][R] Pancytopenia","Pancytopenia","Pancytopenia","rao@ohdsi.org","Pending peer review","","all events of Pancytopenia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432881","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -561,"[P][R] Myasthenic syndrome due to another disorder","Myasthenic syndrome due to another disorder","Myasthenic syndrome due to another disorder","rao@ohdsi.org","Pending peer review","","all events of Myasthenic syndrome due to another disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432893","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -562,"[P][R] Edema","Edema","Edema","rao@ohdsi.org","Pending peer review","","all events of Edema. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433595","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -563,"[P][R] Obesity","Obesity","Obesity","rao@ohdsi.org","Pending peer review","","all events of Obesity. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433736","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -564,"[P][R] Hidradenitis","Hidradenitis","Hidradenitis","rao@ohdsi.org","Pending peer review","","all events of Hidradenitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434119","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -565,"[P][R] Tuberculosis","Tuberculosis","Tuberculosis","rao@ohdsi.org","Pending peer review","","all events of Tuberculosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","253954, 434557","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -566,"[P][R] Kaposi's sarcoma (clinical)","Kaposi's sarcoma (clinical)","Kaposi's sarcoma (clinical)","rao@ohdsi.org","Pending peer review","","all events of Kaposi's sarcoma (clinical). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434584","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -567,"[P][R] B-cell lymphoma (clinical)","B-cell lymphoma (clinical)","B-cell lymphoma (clinical)","rao@ohdsi.org","Pending peer review","","all events of B-cell lymphoma (clinical). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434592, 4300704","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -568,"[P][R] Hyperkalemia","Hyperkalemia","Hyperkalemia","rao@ohdsi.org","Pending peer review","","all events of Hyperkalemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434610","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -569,"[P][R] Systemic inflammatory response syndrome","Systemic inflammatory response syndrome","Systemic inflammatory response syndrome","rao@ohdsi.org","Pending peer review","","all events of Systemic inflammatory response syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434821","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -570,"[P][R] Leukopenia","Leukopenia","Leukopenia","rao@ohdsi.org","Pending peer review","","all events of Leukopenia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432881, 435224","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -571,"[P][R] Schizophrenia","Schizophrenia","Schizophrenia","rao@ohdsi.org","Pending peer review","","all events of Schizophrenia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435783","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -572,"[P][R] Psychotic disorder","Psychotic disorder","Psychotic disorder","rao@ohdsi.org","Pending peer review","","all events of Psychotic disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435783, 436073","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -573,"[P][R] Chronic pain","Chronic pain","Chronic pain","rao@ohdsi.org","Pending peer review","","all events of Chronic pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436096","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -574,"[P][R] Narcolepsy","Narcolepsy","Narcolepsy","rao@ohdsi.org","Pending peer review","","all events of Narcolepsy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436100","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -575,"[P][R] Behcet's syndrome","Behcet's syndrome","Behcet's syndrome","rao@ohdsi.org","Pending peer review","","all events of Behcet's syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436642","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -576,"[P][R] Bipolar disorder","Bipolar disorder","Bipolar disorder","rao@ohdsi.org","Pending peer review","","all events of Bipolar disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436665","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -577,"[P][R] Posttraumatic stress disorder","Posttraumatic stress disorder","Posttraumatic stress disorder","rao@ohdsi.org","Pending peer review","","all events of Posttraumatic stress disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436676","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -578,"[P][R] Insomnia","Insomnia","Insomnia","rao@ohdsi.org","Pending peer review","","all events of Insomnia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436962","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -579,"[P][R] Ankylosing spondylitis","Ankylosing spondylitis","Ankylosing spondylitis","rao@ohdsi.org","Pending peer review","","all events of Ankylosing spondylitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437082","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -580,"[P][R] Respiratory syncytial virus infection","Respiratory syncytial virus infection","Respiratory syncytial virus infection","rao@ohdsi.org","Pending peer review","","all events of Respiratory syncytial virus infection. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254058, 437222","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -581,"[P][R] Multiple myeloma","Multiple myeloma","Multiple myeloma","rao@ohdsi.org","Pending peer review","","all events of Multiple myeloma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437233","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -582,"[P][R] Bleeding","Bleeding","Bleeding","rao@ohdsi.org","Pending peer review","","all events of Bleeding. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671, 437312","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -583,"[P][R] Glaucoma","Glaucoma","Glaucoma","rao@ohdsi.org","Pending peer review","","all events of Glaucoma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435262, 437541","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -584,"[P][R] Fever","Fever","Fever","rao@ohdsi.org","Pending peer review","","all events of Fever. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437663","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -585,"[P][R] Hypokalemia","Hypokalemia","Hypokalemia","rao@ohdsi.org","Pending peer review","","all events of Hypokalemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437833","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -586,"[P][R] Opioid dependence","Opioid dependence","Opioid dependence","rao@ohdsi.org","Pending peer review","","all events of Opioid dependence. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438120","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -587,"[P][R] Opioid abuse","Opioid abuse","Opioid abuse","rao@ohdsi.org","Pending peer review","","all events of Opioid abuse. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438130","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -588,"[P][R] Attention deficit hyperactivity disorder","Attention deficit hyperactivity disorder","Attention deficit hyperactivity disorder","rao@ohdsi.org","Pending peer review","","all events of Attention deficit hyperactivity disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438409","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -589,"[P][R] Pre-eclampsia","Pre-eclampsia","Pre-eclampsia","rao@ohdsi.org","Pending peer review","","all events of Pre-eclampsia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439393","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -590,"[P][R] Human immunodeficiency virus infection","Human immunodeficiency virus infection","Human immunodeficiency virus infection","rao@ohdsi.org","Pending peer review","","all events of Human immunodeficiency virus infection. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439727","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -591,"[P][R] Autism spectrum disorder","Autism spectrum disorder","Autism spectrum disorder","rao@ohdsi.org","Pending peer review","","all events of Autism spectrum disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439776, 439780","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -592,"[P][R] Anemia","Anemia","Anemia","rao@ohdsi.org","Pending peer review","","all events of Anemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439777","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -593,"[P][R] Paralysis","Paralysis","Paralysis","rao@ohdsi.org","Pending peer review","","all events of Paralysis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 440377","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -594,"[P][R] Depressive disorder","Depressive disorder","Depressive disorder","rao@ohdsi.org","Pending peer review","","all events of Depressive disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440383","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -595,"[P][R] Pulmonary embolism","Pulmonary embolism","Pulmonary embolism","rao@ohdsi.org","Pending peer review","","all events of Pulmonary embolism. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440417, 43530605","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -596,"[P][R] Gout","Gout","Gout","rao@ohdsi.org","Pending peer review","","all events of Gout. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440674","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -597,"[P][R] Takayasu's disease","Takayasu's disease","Takayasu's disease","rao@ohdsi.org","Pending peer review","","all events of Takayasu's disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440740","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -598,"[P][R] Methicillin resistant Staphylococcus aureus infection","Methicillin resistant Staphylococcus aureus infection","Methicillin resistant Staphylococcus aureus infection","rao@ohdsi.org","Pending peer review","","all events of Methicillin resistant Staphylococcus aureus infection. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440940","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -599,"[P][R] Anaphylaxis","Anaphylaxis","Anaphylaxis","rao@ohdsi.org","Pending peer review","","all events of Anaphylaxis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441202","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -600,"[P][R] Open-angle glaucoma","Open-angle glaucoma","Open-angle glaucoma","rao@ohdsi.org","Pending peer review","","all events of Open-angle glaucoma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435262, 441284","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -601,"[P][R] Vomiting","Vomiting","Vomiting","rao@ohdsi.org","Pending peer review","","all events of Vomiting. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27674, 441408","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -602,"[P][R] Anxiety","Anxiety","Anxiety","rao@ohdsi.org","Pending peer review","","all events of Anxiety. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441542, 442077","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -603,"[P][R] Human papilloma virus infection","Human papilloma virus infection","Human papilloma virus infection","rao@ohdsi.org","Pending peer review","","all events of Human papilloma virus infection. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140641, 441788","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -604,"[P][R] Cranial nerve disorder","Cranial nerve disorder","Cranial nerve disorder","rao@ohdsi.org","Pending peer review","","all events of Cranial nerve disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 441848","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -605,"[P][R] Muscle pain","Muscle pain","Muscle pain","rao@ohdsi.org","Pending peer review","","all events of Muscle pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442752","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -606,"[P][R] Stillbirth","Stillbirth","Stillbirth","rao@ohdsi.org","Pending peer review","","all events of Stillbirth. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443213, 4014454","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -607,"[P][R] Malignant tumor of stomach","Malignant tumor of stomach","Malignant tumor of stomach","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of stomach. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196044, 443387","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -608,"[P][R] Malignant neoplastic disease","Malignant neoplastic disease","Malignant neoplastic disease","rao@ohdsi.org","Pending peer review","","all events of Malignant neoplastic disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137809, 443392","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -609,"[P][R] Cerebral infarction","Cerebral infarction","Cerebral infarction","rao@ohdsi.org","Pending peer review","","all events of Cerebral infarction. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443454","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -610,"[P][R] Eclampsia","Eclampsia","Eclampsia","rao@ohdsi.org","Pending peer review","","all events of Eclampsia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443700, 4116344","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -611,"[P][R] Diabetic ketoacidosis","Diabetic ketoacidosis","Diabetic ketoacidosis","rao@ohdsi.org","Pending peer review","","all events of Diabetic ketoacidosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443727, 4009303","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -612,"[P][R] Acute tubular necrosis","Acute tubular necrosis","Acute tubular necrosis","rao@ohdsi.org","Pending peer review","","all events of Acute tubular necrosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","444044","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -613,"[P][R] Tachycardia","Tachycardia","Tachycardia","rao@ohdsi.org","Pending peer review","","all events of Tachycardia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 444070","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -614,"[P][R] Venous thrombosis","Venous thrombosis","Venous thrombosis","rao@ohdsi.org","Pending peer review","","all events of Venous thrombosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","444247, 43531681","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -615,"[P][R] Herpes simplex","Herpes simplex","Herpes simplex","rao@ohdsi.org","Pending peer review","","all events of Herpes simplex. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440021, 444429","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -616,"[P][R] Acute arthritis","Acute arthritis","Acute arthritis","rao@ohdsi.org","Pending peer review","","all events of Acute arthritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433000, 4000634","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -617,"[P][R] Monoclonal gammopathy (clinical)","Monoclonal gammopathy (clinical)","Monoclonal gammopathy (clinical)","rao@ohdsi.org","Pending peer review","","all events of Monoclonal gammopathy (clinical). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4002359","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -618,"[P][R] Pulmonary arterial hypertension","Pulmonary arterial hypertension","Pulmonary arterial hypertension","rao@ohdsi.org","Pending peer review","","all events of Pulmonary arterial hypertension. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4013643, 44783618","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -619,"[P][R] Gestational diabetes mellitus","Gestational diabetes mellitus","Gestational diabetes mellitus","rao@ohdsi.org","Pending peer review","","all events of Gestational diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4024659","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -620,"[P][R] Uveitis","Uveitis","Uveitis","rao@ohdsi.org","Pending peer review","","all events of Uveitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434926, 4028363","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -621,"[P][R] Renal impairment","Renal impairment","Renal impairment","rao@ohdsi.org","Pending peer review","","all events of Renal impairment. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","193782, 4030518","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -622,"[P][R] Non-Hodgkin's lymphoma (clinical)","Non-Hodgkin's lymphoma (clinical)","Non-Hodgkin's lymphoma (clinical)","rao@ohdsi.org","Pending peer review","","all events of Non-Hodgkin's lymphoma (clinical). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4038838, 4300704","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -623,"[P][R] Motor neuropathy with multiple conduction block","Motor neuropathy with multiple conduction block","Motor neuropathy with multiple conduction block","rao@ohdsi.org","Pending peer review","","all events of Motor neuropathy with multiple conduction block. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4046338","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -624,"[P][R] Primary sclerosing cholangitis","Primary sclerosing cholangitis","Primary sclerosing cholangitis","rao@ohdsi.org","Pending peer review","","all events of Primary sclerosing cholangitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4058821","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -625,"[P][R] Pustular psoriasis","Pustular psoriasis","Pustular psoriasis","rao@ohdsi.org","Pending peer review","","all events of Pustular psoriasis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4063434, 4100184","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -626,"[P][R] Cirrhosis of liver","Cirrhosis of liver","Cirrhosis of liver","rao@ohdsi.org","Pending peer review","","all events of Cirrhosis of liver. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194692, 4064161","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -627,"[P][R] Miscarriage","Miscarriage","Miscarriage","rao@ohdsi.org","Pending peer review","","all events of Miscarriage. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","76482, 4067106","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -628,"[P][R] Fisher's syndrome","Fisher's syndrome","Fisher's syndrome","rao@ohdsi.org","Pending peer review","","all events of Fisher's syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4070552","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -629,"[P][R] Inflammatory bowel disease","Inflammatory bowel disease","Inflammatory bowel disease","rao@ohdsi.org","Pending peer review","","all events of Inflammatory bowel disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","195585, 4074815","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -630,"[P][R] Facial palsy","Facial palsy","Facial palsy","rao@ohdsi.org","Pending peer review","","all events of Facial palsy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 4091559","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -631,"[P][R] Livebirth","Livebirth","Livebirth","rao@ohdsi.org","Pending peer review","","all events of Livebirth. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4014295, 4092289","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -632,"[P][R] Antiphospholipid syndrome","Antiphospholipid syndrome","Antiphospholipid syndrome","rao@ohdsi.org","Pending peer review","","all events of Antiphospholipid syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4098292","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -633,"[P][R] Waldenström macroglobulinemia","Waldenström macroglobulinemia","Waldenström macroglobulinemia","rao@ohdsi.org","Pending peer review","","all events of Waldenström macroglobulinemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4098597","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -634,"[P][R] Immunoglobulin A vasculitis","Immunoglobulin A vasculitis","Immunoglobulin A vasculitis","rao@ohdsi.org","Pending peer review","","all events of Immunoglobulin A vasculitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4101602","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -635,"[P][R] Ventricular tachycardia","Ventricular tachycardia","Ventricular tachycardia","rao@ohdsi.org","Pending peer review","","all events of Ventricular tachycardia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437579, 4103295","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -636,"[P][R] Malignant tumor of breast","Malignant tumor of breast","Malignant tumor of breast","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of breast. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137809, 4112853","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -637,"[P][R] Peripheral ischemia","Peripheral ischemia","Peripheral ischemia","rao@ohdsi.org","Pending peer review","","all events of Peripheral ischemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4124836, 4291464","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -638,"[P][R] Neoplasm of thyroid gland","Neoplasm of thyroid gland","Neoplasm of thyroid gland","rao@ohdsi.org","Pending peer review","","all events of Neoplasm of thyroid gland. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133424, 4131909","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -639,"[P][R] Deep venous thrombosis","Deep venous thrombosis","Deep venous thrombosis","rao@ohdsi.org","Pending peer review","","all events of Deep venous thrombosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4133004, 43531681","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -640,"[P][R] Vasculitis","Vasculitis","Vasculitis","rao@ohdsi.org","Pending peer review","","all events of Vasculitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","199856, 4137275","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -641,"[P][R] Pericarditis","Pericarditis","Pericarditis","rao@ohdsi.org","Pending peer review","","all events of Pericarditis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320116, 4138837","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -642,"[P][R] Immune reconstitution syndrome","Immune reconstitution syndrome","Immune reconstitution syndrome","rao@ohdsi.org","Pending peer review","","all events of Immune reconstitution syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4139034","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -643,"[P][R] Follicular non-Hodgkin's lymphoma","Follicular non-Hodgkin's lymphoma","Follicular non-Hodgkin's lymphoma","rao@ohdsi.org","Pending peer review","","all events of Follicular non-Hodgkin's lymphoma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4147411","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -644,"[P][R] Malignant tumor of prostate","Malignant tumor of prostate","Malignant tumor of prostate","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of prostate. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200962, 4163261","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -645,"[P][R] Guillain-Barré syndrome","Guillain-Barré syndrome","Guillain-Barré syndrome","rao@ohdsi.org","Pending peer review","","all events of Guillain-Barré syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4164770","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -646,"[P][R] Bradycardia","Bradycardia","Bradycardia","rao@ohdsi.org","Pending peer review","","all events of Bradycardia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4169095","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -647,"[P][R] Retinopathy due to diabetes mellitus","Retinopathy due to diabetes mellitus","Retinopathy due to diabetes mellitus","rao@ohdsi.org","Pending peer review","","all events of Retinopathy due to diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376683, 4174977","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -648,"[P][R] Malignant tumor of colon","Malignant tumor of colon","Malignant tumor of colon","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of colon. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197500, 4180790","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -649,"[P][R] Malignant tumor of esophagus","Malignant tumor of esophagus","Malignant tumor of esophagus","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of esophagus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","26638, 4181343","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -650,"[P][R] Malignant tumor of ovary","Malignant tumor of ovary","Malignant tumor of ovary","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of ovary. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200051, 4181351","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -651,"[P][R] Dementia","Dementia","Dementia","rao@ohdsi.org","Pending peer review","","all events of Dementia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4182210","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -652,"[P][R] Vasculitis of the skin","Vasculitis of the skin","Vasculitis of the skin","rao@ohdsi.org","Pending peer review","","all events of Vasculitis of the skin. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4182711","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -653,"[P][R] Loss of sense of smell","Loss of sense of smell","Loss of sense of smell","rao@ohdsi.org","Pending peer review","","all events of Loss of sense of smell. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4185711","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -654,"[P][R] Ischemic heart disease","Ischemic heart disease","Ischemic heart disease","rao@ohdsi.org","Pending peer review","","all events of Ischemic heart disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321318, 4185932","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -655,"[P][R] Aseptic meningitis","Aseptic meningitis","Aseptic meningitis","rao@ohdsi.org","Pending peer review","","all events of Aseptic meningitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434869, 4201096","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -656,"[P][R] Fatigue","Fatigue","Fatigue","rao@ohdsi.org","Pending peer review","","all events of Fatigue. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437113, 4223659","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -657,"[P][R] Paresthesia","Paresthesia","Paresthesia","rao@ohdsi.org","Pending peer review","","all events of Paresthesia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4236484","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -658,"[P][R] Hepatic failure","Hepatic failure","Hepatic failure","rao@ohdsi.org","Pending peer review","","all events of Hepatic failure. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -659,"[P][R] Malignant neoplasm of liver","Malignant neoplasm of liver","Malignant neoplasm of liver","rao@ohdsi.org","Pending peer review","","all events of Malignant neoplasm of liver. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198700, 4246127","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -660,"[P][R] Juvenile rheumatoid arthritis","Juvenile rheumatoid arthritis","Juvenile rheumatoid arthritis","rao@ohdsi.org","Pending peer review","","all events of Juvenile rheumatoid arthritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","72714, 4253901","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -661,"[P][R] Respiratory failure","Respiratory failure","Respiratory failure","rao@ohdsi.org","Pending peer review","","all events of Respiratory failure. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049, 4256228","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -662,"[P][R] Diverticulitis of large intestine","Diverticulitis of large intestine","Diverticulitis of large intestine","rao@ohdsi.org","Pending peer review","","all events of Diverticulitis of large intestine. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","77025, 4260535","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -663,"[P][R] Influenza","Influenza","Influenza","rao@ohdsi.org","Pending peer review","","all events of Influenza. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4183609, 4266367","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -664,"[P][R] Malaise","Malaise","Malaise","rao@ohdsi.org","Pending peer review","","all events of Malaise. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439926, 4272240","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -665,"[P][R] Suicidal thoughts","Suicidal thoughts","Suicidal thoughts","rao@ohdsi.org","Pending peer review","","all events of Suicidal thoughts. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4273391","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -666,"[P][R] Type B viral hepatitis","Type B viral hepatitis","Type B viral hepatitis","rao@ohdsi.org","Pending peer review","","all events of Type B viral hepatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439674, 4281232","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -667,"[P][R] Guttate psoriasis","Guttate psoriasis","Guttate psoriasis","rao@ohdsi.org","Pending peer review","","all events of Guttate psoriasis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4284492","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -668,"[P][R] SLE glomerulonephritis syndrome","SLE glomerulonephritis syndrome","SLE glomerulonephritis syndrome","rao@ohdsi.org","Pending peer review","","all events of SLE glomerulonephritis syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4285717","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -669,"[P][R] Schizoaffective disorder","Schizoaffective disorder","Schizoaffective disorder","rao@ohdsi.org","Pending peer review","","all events of Schizoaffective disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4286201","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -670,"[P][R] Temporal arteritis","Temporal arteritis","Temporal arteritis","rao@ohdsi.org","Pending peer review","","all events of Temporal arteritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4290976, 4343935","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -671,"[P][R] Pregnant","Pregnant","Pregnant","rao@ohdsi.org","Pending peer review","","all events of Pregnant. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4299535","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -672,"[P][R] Sense of smell impaired","Sense of smell impaired","Sense of smell impaired","rao@ohdsi.org","Pending peer review","","all events of Sense of smell impaired. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4307095","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -673,"[P][R] Primary malignant neoplasm of respiratory tract","Primary malignant neoplasm of respiratory tract","Primary malignant neoplasm of respiratory tract","rao@ohdsi.org","Pending peer review","","all events of Primary malignant neoplasm of respiratory tract. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4311499","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -674,"[P][R] Degeneration of retina","Degeneration of retina","Degeneration of retina","rao@ohdsi.org","Pending peer review","","all events of Degeneration of retina. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376966, 4318985","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -675,"[P][R] Pulmonary hypertension","Pulmonary hypertension","Pulmonary hypertension","rao@ohdsi.org","Pending peer review","","all events of Pulmonary hypertension. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4322024, 4339214","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -676,"[P][R] Necrosis of artery","Necrosis of artery","Necrosis of artery","rao@ohdsi.org","Pending peer review","","all events of Necrosis of artery. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4344489,320749,319047","","2023-06-25","2023-09-22",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -677,"[P][R] Preterm labor with preterm delivery","Preterm labor with preterm delivery","Preterm labor with preterm delivery","rao@ohdsi.org","Pending peer review","","all events of Preterm labor with preterm delivery. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","36712702, 45757176","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -678,"[P][R] COVID-19","COVID-19","COVID-19","rao@ohdsi.org","Pending peer review","","all events of COVID-19. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37311061","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -679,"[P][R] Takotsubo cardiomyopathy","Takotsubo cardiomyopathy","Takotsubo cardiomyopathy","rao@ohdsi.org","Pending peer review","","all events of Takotsubo cardiomyopathy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40479589","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -680,"[P][R] Mantle cell lymphoma","Mantle cell lymphoma","Mantle cell lymphoma","rao@ohdsi.org","Pending peer review","","all events of Mantle cell lymphoma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40481901","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -681,"[P][R] Malignant neoplasm of anorectum","Malignant neoplasm of anorectum","Malignant neoplasm of anorectum","rao@ohdsi.org","Pending peer review","","all events of Malignant neoplasm of anorectum. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","74582, 40481902","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -682,"[P][R] Marginal zone lymphoma","Marginal zone lymphoma","Marginal zone lymphoma","rao@ohdsi.org","Pending peer review","","all events of Marginal zone lymphoma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40490918","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -683,"[P][R] Antineutrophil cytoplasmic antibody positive vasculitis","Antineutrophil cytoplasmic antibody positive vasculitis","Antineutrophil cytoplasmic antibody positive vasculitis","rao@ohdsi.org","Pending peer review","","all events of Antineutrophil cytoplasmic antibody positive vasculitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313223, 42535714","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -684,"[P][R] Sensory disorder of smell and/or taste","Sensory disorder of smell and/or taste","Sensory disorder of smell and/or taste","rao@ohdsi.org","Pending peer review","","all events of Sensory disorder of smell and/or taste. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","43530714","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -685,"[P][R] Cardiac arrhythmia","Cardiac arrhythmia","Cardiac arrhythmia","rao@ohdsi.org","Pending peer review","","all events of Cardiac arrhythmia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 44784217","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -686,"[P][R] Fracture of bone of hip region","Fracture of bone of hip region","Fracture of bone of hip region","rao@ohdsi.org","Pending peer review","","all events of Fracture of bone of hip region. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434500, 45763653","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -687,"[P][R] Chronic kidney disease","Chronic kidney disease","Chronic kidney disease","rao@ohdsi.org","Pending peer review","","all events of Chronic kidney disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","193782, 46271022","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -688,"[P][R] Death","Death","Death","rao@ohdsi.org","Pending peer review","","all events of Suicide. Persons exit on cohort end date","#Referent, #Observation",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440925","","2023-06-25","2023-09-20",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -689,"[P][R] Newborn death","Newborn death","Newborn death","rao@ohdsi.org","Pending peer review","","all events of Newborn death. Persons exit on cohort end date","#Referent, #Observation",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4079843","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -690,"[P][R] Suicide","Suicide","Suicide","rao@ohdsi.org","Pending peer review","","all events of Death. Persons exit on cohort end date","#Referent, #Observation",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4306655","","2023-06-25","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -691,"Transverse myelitis or symptoms indexed on symptoms or diagnosis","Transverse myelitis or symptoms indexed on symptoms or diagnosis","Transverse myelitis or symptoms indexed on symptoms or diagnosis","rao@ohdsi.org","Accepted","3.9.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 139803, 443904","","2023-06-26","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -692,"Transverse myelitis indexed on diagnosis","Transverse myelitis indexed on diagnosis","Transverse myelitis indexed on diagnosis","rao@ohdsi.org","Accepted","3.7.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","139803, 443904","","2023-06-26","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -693,"Acquired Neutropenia or unspecified leukopenia","Acquired Neutropenia or unspecified leukopenia","Acquired Neutropenia or unspecified leukopenia","rao@ohdsi.org","Accepted","3.11.0","all events of neutropenia indexed on diagnosis or lab results with no congenital or genetic neutropenia","#PhenotypePhebruary, #2023, #Neutropenia",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Anna Ostropolets","","435224","","2023-06-26","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,3,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Measurement",0,0,4,1,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -694,"Appendicitis during Inpatient visit","Appendicitis during Inpatient visit","Appendicitis during Inpatient visit","rao@ohdsi.org","Accepted","3.11.0","events of appendicitis with an inpatient or ER visit with no events in 365 days clean window","#PhenotypePhebruary, #2023",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Azza Shoaibi","","440448, 441604","","2023-06-26","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -695,"[P][R] Optic nerve glioma","Optic nerve glioma","Optic nerve glioma","rao@ohdsi.org","Pending peer review","","all events of Optic nerve glioma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4112970","","2023-06-26","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -696,"[P][R] Neurofibromatosis type 2","Neurofibromatosis type 2","Neurofibromatosis type 2","rao@ohdsi.org","Pending peer review","","all events of Neurofibromatosis type 2. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","380975","","2023-06-26","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -697,"[P][R] Neurofibromatosis type 1","Neurofibromatosis type 1","Neurofibromatosis type 1","rao@ohdsi.org","Pending peer review","","all events of Neurofibromatosis type 1. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377252","","2023-06-26","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -698,"[P][R] Neurofibromatosis syndrome","Neurofibromatosis syndrome","Neurofibromatosis syndrome","rao@ohdsi.org","Pending peer review","","all events of Neurofibromatosis syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376938","","2023-06-26","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -699,"[P][R] Major Depressive Disorder","Major Depressive Disorder","Major Depressive Disorder","rao@ohdsi.org","Pending peer review","","all events of Major Depressive Disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4152280, 4282096","","2023-06-26","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -701,"[P][R] Ascites","Ascites","Ascites","rao@ohdsi.org","Pending peer review","","all events of Ascites. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200528","https://forums.ohdsi.org/t/17895","2023-07-09","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -702,"[P] Alanine aminotransferase (ALT) elevated","Alanine aminotransferase (ALT) elevated","Alanine aminotransferase (ALT) elevated","rao@ohdsi.org","Pending peer review","","All events of Alanine aminotransferase (ALT) elevated","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4146380","","2023-07-11","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -703,"[P] Aspartate aminotransferase (AST) elevated","Aspartate aminotransferase (AST) elevated","Aspartate aminotransferase (AST) elevated","rao@ohdsi.org","Pending peer review","","All events of Aspartate aminotransferase (ALT) elevated","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4263457","","2023-07-11","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -705,"[P] Total Bilirubin elevated","Total Bilirubin elevated","Total Bilirubin elevated","rao@ohdsi.org","Pending peer review","","Total Bilirubin elevated","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4230543","","2023-07-11","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,1,"Measurement",0,0,1,0,0,0,0,0,0,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -706,"[P] Prothrombin time (PT) elevated","Prothrombin time (PT) elevated","Prothrombin time (PT) elevated","rao@ohdsi.org","Pending peer review","","Prothrombin time (PT) elevated","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4055672","","2023-07-11","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -707,"Inpatient Hospitalization (0Pe, 1Era)","Inpatient Hospitalization (0Pe, 1Era)","Inpatient Hospitalization (0Pe, 1Era)","rao@ohdsi.org","Accepted","3.4.0","All events of Inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-07-12","2023-09-19",,"23",,0,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,1,0,0,0,0,0,0,,,1,,1,,,,,,,,,,,,,,,,,,,,,,,,, -708,"[P] International normalized ratio (INR) elevated","International normalized ratio (INR) elevated","International normalized ratio (INR)","rao@ohdsi.org","Pending peer review","","International normalized ratio (INR)","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4306239","","2023-07-14","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -709,"[P][R] Chronic liver disease","Chronic liver disease","Chronic liver disease","rao@ohdsi.org","Pending peer review","","all events of Chronic liver disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4212540","","2023-07-14","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -710,"[P] Cirrhosis of liver or its sequela","Cirrhosis of liver or its sequela","Cirrhosis of liver or its sequela","rao@ohdsi.org","Pending peer review","","all events of Cirrhosis of liver or its sequela. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4064161","","2023-07-19","2023-09-25",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -711,"[P][R] Transplanted liver present","Transplanted liver present","Transplanted liver present","rao@ohdsi.org","Pending peer review","","all events of Transplanted liver present. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","42537742","","2023-07-19","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -712,"[P] Viral hepatitis including history of","Viral hepatitis including history of","Viral hepatitis including history of","rao@ohdsi.org","Pending peer review","","All events of Viral hepatitis including history of","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4291005","","2023-07-19","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -713,"[P] Alcoholic hepatitis or alcohol liver disorder","Alcoholic hepatitis or alcohol liver disorder","Alcoholic hepatitis or alcohol liver disorder","rao@ohdsi.org","Pending peer review","","all events of Alcoholic hepatitis or alcohol liver disorder","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4340383","","2023-07-19","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -714,"[P][R] Endometriosis (clinical)","Endometriosis (clinical)","Endometriosis (clinical)","rao@ohdsi.org","Pending peer review","","all events of Endometriosis (clinical). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433527","","2023-07-19","2023-09-19",,"",,1,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -715,"[P] Hepatic fibrosis","Hepatic fibrosis","Hepatic fibrosis","rao@ohdsi.org","Pending peer review","","all events of Hepatic Fibrosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4064161,4267417","","2023-07-19","2023-09-25",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -716,"[P] Acute Hepatic Injury","Acute Hepatic Injury","Acute Hepatic Injury","rao@ohdsi.org","Pending","","Acute Hepatic Injury","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194990","","2023-07-20","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -717,"[P] Portal hypertension or esophageal varices","Portal hypertension or esophageal varices","Portal vein thrombosis","rao@ohdsi.org","Pending peer review","","all event of portal hypertension or esophageal varices","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192680","","2023-07-20","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -719,"[P] Acute Hepatic Injury or jaundice while inpatient with no cooccurring certain liver disease","Acute Hepatic Injury or jaundice while inpatient with no cooccurring certain liver disease","","rao@ohdsi.org","","","","",1,"","","","","","","","2023-07-24","2023-09-19",,"",,0,,,"ERA",90,"fixed duration relative to initial event","EndDate",1,3,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,6,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -720,"[P] Aplastic Anemia","Aplastic Anemia","Aplastic Anemia","rao@ohdsi.org","Pending peer review","","all events of aplastic anemia","#DME",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137829","","2023-07-26","2023-09-25",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,4,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,1,,,,,,,,,, -721,"[P] Sudden New Onset Blindness","Sudden New Onset Blindness","Sudden New Onset Blindness","rao@ohdsi.org","Pending peer review","","all events of Sudden New Onset Blindness","",1,"Gowtham A. Rao, Azza Shoaibi","'0000-0002-4949-7236','0000-0002-6976-2594'","'OHDSI'","","","377556","","2023-07-27","2023-09-19",,"",,0,,,"ERA",90,"fixed duration relative to initial event","EndDate",0,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,1,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -722,"[P] Endometriosis indexed on procedure with two or more diagnosis among females 15 to 49","Endometriosis indexed on procedure with two or more diagnosis among females 15 to 49","Endometriosis","rao@ohdsi.org","Pending peer review","","An occurrence of procedure expected to be performed for persons with endometriosis with a diagnosis of endometriosis within 30 days of the procedure. Should have two more diagnosis in the future. Should be female. Should be between 15 to 49 years. A person is expected to be in the phenotype for the rest of their life (i.e. the disease never ends)","",1,"'Molle McKillop', 'Noémie Elhadad'","","'OHDSI'","","","433527","","2023-08-22","2023-09-19",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"All",FALSE,"All","First",1,1,"ProcedureOccurrence",0,0,2,1,1,1,0,0,0,,,0,,,,,,,1,,1,,,,,1,,,,,,,,,,,,, -723,"[P] First Acute Hepatic Failure with no known severe liver disease","First Acute Hepatic Failure with no known severe liver disease","Earliest event of Acute Hepatic Failure","rao@ohdsi.org","Pending peer review","","This definition, is modeling acute hepatic failure, assuming that acute hepatic failure by definition is severe liver injury with hepatic coma in the absence of known liver disease. This definition include hepatic coma that is potentially due to viral hepatis or alcohol use.","#Disease, #DME",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","4245975","","2023-08-22","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",90,3,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,4,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -724,"[P] First Acute Hepatic Failure with no known liver disease","First Acute Hepatic Failure with no known liver disease","Earliest event of Acute Hepatic Failure, NO viral hepatitis or alcoholic hepatic failure","rao@ohdsi.org","Pending peer review","","This definition, is modeling acute hepatic failure, assuming that acute hepatic failure by definition is severe liver injury with hepatic coma in the absence of known liver disease. This definition excludes persons with viral hepatis or alcohol use.","#Disease, #DME",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","4245975","","2023-08-22","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",90,6,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,7,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -725,"[P] All events of Acute Kidney Injury (AKI), with a washout period of 30 days","All events of Acute Kidney Injury (AKI), with a washout period of 30 days","All events of Acute Kidney Injury (AKI)","rao@ohdsi.org","Pending peer review","","All events of Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd,. Applying a washout period of 30 days between observed events excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior . patients exit the cohort 7 days post index..","#Disease, #DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","197320","","2023-08-22","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",7,4,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,7,1,0,0,0,0,1,1,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -726,"[P] All events of Anaphylaxis, Mini-Sentinel","All events of Anaphylaxis, Mini-Sentinel","All events of Anaphylaxis, Mini-Sentinel","rao@ohdsi.org","Pending peer review","","All events of anaphylaxis in inpatient setting, or anaphylaxis in outpatient along with symptoms or treatment for anaphylaxis","#Disease, #DME, #replication",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","441202","","2023-08-22","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",1,7,"All",FALSE,"All","All",4,2,"ConditionOccurrence, Observation",0,0,17,1,0,0,0,1,1,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -727,"[P] All events of Angioedema, with a washout period of 180 days","All events of Angioedema, with a washout period of 180 days","Angioedema","rao@ohdsi.org","Pending peer review","","All events of angioedema, indexed on a diagnosis of angioedema or urticaria followed by a diagnosis of angioedema within 3 days. With no diagnosis of angioedema in the last 180 days of washout period. Events are excluded if they have recent cardiac edema, cellulitis, erysipelas, dermatitis or eczema, lymphedema or insect bites 7 days before to and including index date. Cohort exist is 1 day post cohort end date","#Disease, #DME",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","139900","","2023-08-22","2023-09-24",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",1,8,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,8,1,0,0,0,0,1,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -728,"[P] Autoimmune hemolytic anemia events not including evans syndrome","Autoimmune hemolytic anemia events not including evans syndrome","Autoimmune hemolytic anemia","rao@ohdsi.org","Pending peer review","","All events of Autoimmune hemolytic anemia events not including evans syndrome","#Disease, #DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","441269","","2023-08-23","2023-10-03",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -729,"[P] Autoimmune hepatitis, with a washout period of 365 days","Autoimmune hepatitis, with a washout period of 365 days","All events of Autoimmune hepatitis, with a washout period of 365 days","rao@ohdsi.org","Pending peer review","","all events of autoimmune hepatitis, indexed on diagnosis of autoimmune hepatitis, excluding event occurring in prior 365days washout period. Also excluded are events that have chronic liver diseases that may have similar presentation such as viral hepatitis, drug induced liver injury, alcoholic liver disease, and no systemic lupus erythematosus in past 365 and including index. Cohort exist is 1 day post end date.","#DME",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","200762","","2023-08-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",1,3,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -730,"[P] Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis","Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis","All events Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis","rao@ohdsi.org","Pending peer review","","all events of acute pancreatitis, indexed on an inpatient or emergency or an out patient visit (restricted to overlapping with an Emergency room procedures) with a diagnosis of Acute pancreatitis. With 1. no such events in prior washout window of 365 days 2. and no history of chronic pancreatitis any time prior or hereditary pancreatitis any time pre or post index. Cohort exit is 7 days post index.","",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","4192640, 199074","https://forums.ohdsi.org/t/17848","2023-08-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",7,4,"All",FALSE,"All","All",2,1,"VisitOccurrence",0,0,7,1,0,0,0,0,1,,,1,,1,,,,,,,,,,,,,,,,,,,,,,,,, -731,"[P] Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions","Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions","All events of Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions","rao@ohdsi.org","Pending peer review","","all events of sudden Hearing Loss, indexed on diagnosis of sudden hearing loss or a diagnosis or observation of any hearing loss that co-occurred with treatments or investigations within 1 day before to 21 days after index. Events much had 1. No hearing loss diagnosis or observation events in prior washout window of 365 days 2. No congenital anomaly of hearing any time 2. No history of middle or inner ear related diseases any time prior to 7 days before index. 3. Has not had audiometry 365 days before to 30 days prior index. exist cohort 30 days post end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","374053, 377889","","2023-08-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",30,5,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Observation",0,0,8,1,0,0,0,0,1,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -732,"[P] Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS) with clean window","Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS) with clean window","All events of Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS)","rao@ohdsi.org","Pending peer review","","All events of Severe Cutaneous Adverse Reaction SCAR, indexed on the diagnosis for Drug Rash With Eosinophilia, or Systemic Symptoms (DRESS) or Erythema Multiforme or Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis. Excluding events in prior 365 days washout period. cohort exist 3 days post end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","141651, 45765791","","2023-08-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",3,1,"All",FALSE,"All","All",3,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -733,"[P] Drug Rash with Eosinophilia and Systemic Symptoms (DRESS) with clean window","Drug Rash with Eosinophilia and Systemic Symptoms (DRESS) with clean window","All events Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)","rao@ohdsi.org","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), index on diagnosis of (DRESS), excluding DRESS events in the last 365 day washout period. Cohort exist is 1 day after end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","45765791","","2023-08-23","2023-10-03",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -734,"[P] Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)","Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)","All events Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)","rao@ohdsi.org","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), index on diagnosis of (DRESS)","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","45765791","","2023-08-23","2023-10-03",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -735,"[P] Acute Liver Injury indexed on diagnosis or symptoms with no chronic hepatic failure","Acute Liver Injury indexed on diagnosis or symptoms with no chronic hepatic failure","All events of Acute Liver Injury","rao@ohdsi.org","Pending","","All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, excluding events of Acute Liver Injury in prior 365 washout period. Excluding events with chronic hepatic failure on the same index date. patients exist cohort 90 days post end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","194990","","2023-08-23","2023-09-19",,"",,0,,,"ERA",90,"fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,4,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -736,"[P] Acute Liver Injury NO viral, alcoholic, chronic hepatic failure","Acute Liver Injury NO viral, alcoholic, chronic hepatic failure","All events of Acute Liver Injury, NO viral hepatitis or alcoholic hepatic failure","rao@ohdsi.org","Pending","","All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, excluding events of Acute Liver Injury in prior 365 washout period. Excluding events with chronic hepatic failure on the same index date. patients exist cohort 90 days post end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","194990","","2023-08-23","2023-09-19",,"",,0,,,"ERA",90,"fixed duration relative to initial event","EndDate",1,3,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,7,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -737,"[P] Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era","Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era","Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era","rao@ohdsi.org","Pending peer review","","All events of febrile neutropenia, indexed on the diagnosis of febrile neutropenia or a fever (diagnosis or measurement) cooccurring with neutropenia (diagnosis or measurement) within 1 day , or a diagnosis of clinically significant infection cooccurring with neutropenia (diagnosis or measurement) within 1 day. Restricted to events overlapping with in an inpatient or emergency room visit and excluding events with a normal neutrophil count (ANC) on index. Cohort exit is 3 days after end date. Recurrent events will be combined into event eras if they are within 90 days of each other.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","257011, 437663, 4170143, 4250734","https://forums.ohdsi.org/t/17876","2023-08-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,2,"All",TRUE,"All","All",8,3,"ConditionOccurrence, Measurement, Observation",0,0,7,1,0,0,0,1,0,1,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -738,"[P] Autoimmune hemolytic anemia","Autoimmune hemolytic anemia","Autoimmune hemolytic anemia","rao@ohdsi.org","Pending peer review","","All events of Autoimmune hemolytic anemia events not including evans syndrome","#Disease, #DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","441269","","2023-08-23","2023-10-03",,"",,0,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -739,"[P] All events of Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days","All events of Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days","Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days","rao@ohdsi.org","Pending peer review","","all events of Immune Thrombocytopenia (ITP), excluding such events in prior 365 days as washout period, also excluded are 1. events with a diagnosis of congenital or genetic thrombocytopenia all time prior to 7 days post index, 2. Events with a platelet count of >100 or a diagnosis of thrombocytosis on day of index 3. Events with co-occurring neutropenia, pancytopenia, bone marrow involvement, anemia 7 days within index. Persons exit after 180 days or when a normal platelet count measure is observed.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433749, 4103532","","2023-08-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",180,9,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,9,1,0,0,0,0,1,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -740,"[W] Earliest event of Pulmonary arterial hypertension (PAH)","Earliest event of Pulmonary arterial hypertension (PAH)","Pulmonary arterial hypertension (PAH)","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Pulmonary Arterial Hypertension (PAH) indexed on occurrence of PAH condition requiring right heart catheterization or echocardiogram 30 days before or 30 days after diagnosis/index. Cohort exit is the end of continuous observation.","",1,"'Joel Swerdel'","","'OHDSI'","","","4013643","","2023-08-23","2023-10-16",,"","duplicate of 747",0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -741,"[P] Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","rao@ohdsi.org","Pending peer review","","Earliest events of Immune Thrombotic microangiopathy or microangiopathic hemolytic anemia indexed on the diagnosis or its treatment or investigation. Events with congenital or genetic thrombocytopenia all time prior to 7 days post index are excluded. Also excluded are patients with Platelet count > 150. cohort exit is 7 days post end date or an occurrence of a normal platelet measure .","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","313800, 4119134","","2023-08-23","2023-09-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",7,2,"All",FALSE,"All","First",4,4,"ConditionOccurrence, DrugExposure, Measurement, ProcedureOccurrence",0,0,5,1,0,0,0,0,0,1,1,0,,,,1,,,1,,,,,,,,,,,,,,,,,,,, -742,"[P] Parasomnia or Sleep dysfunction with arousal disturbance","Parasomnia or Sleep dysfunction with arousal disturbance","Parasomnia or Sleep dysfunction with arousal disturbance","rao@ohdsi.org","Pending peer review","","All events of Parasomnia or Sleep dysfunction with arousal disturbance with events collapse 1 day after","",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","254761","https://forums.ohdsi.org/t/17895","2023-09-08","2023-09-21",,"",,0,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -743,"[P] Diabetic ketoacidosis IP-ER (SNOMED concept)","Diabetic ketoacidosis IP-ER (SNOMED concept)","Diabetic ketoacidosis identified during the inpatient or emergency room SNOMED concept","rao@ohdsi.org","Pending peer review","","All condition occurrences of DKA during an ER or IP visit, with 30-day event persistence (SNOMED code only)","",1,"'James Weaver', 'Chris Knoll'","'0000-0003-0755-5191',''","'OHDSI'","","","196523","https://forums.ohdsi.org/t/17895","2023-09-08","2023-09-20",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",30,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -744,"[P] Pulmonary Hypertension","Pulmonary Hypertension","Pulmonary Hypertension","rao@ohdsi.org","Pending peer review","","First occurrence of Pulmonary Hypertension","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","312437, 4041664","https://forums.ohdsi.org/t/17895","2023-09-14","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -745,"[W] Inflammatory Bowel Disease","Inflammatory Bowel Disease","Inflammatory Bowel Disease","rao@ohdsi.org","Pending peer review","","First occurrence of Inflammatory Bowel Disease","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","4074815, 81893, 201606",,"2023-09-14","2023-10-13",,"","duplicate of 775",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -746,"[P] Chronic Thromboembolic Pulmonary Hypertension","Chronic Thromboembolic Pulmonary Hypertension","Chronic Thromboembolic Pulmonary Hypertension","rao@ohdsi.org","Pending peer review","","First occurrence of Chronic Thromboembolic Pulmonary Hypertension","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","378253","https://forums.ohdsi.org/t/17895","2023-09-14","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -747,"[P] Pulmonary Arterial Hypertension","Pulmonary Arterial Hypertension","Pulmonary Arterial Hypertension","rao@ohdsi.org","Pending peer review","","First occurrence of Pulmonary Arterial Hypertension","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","43530714","https://forums.ohdsi.org/t/17895","2023-09-14","2023-10-02",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -748,"[P] Psoriatic arthritis","Psoriatic arthritis","Psoriatic arthritis","rao@ohdsi.org","Pending peer review","","First occurrence of Psoriatic arthritis","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","25297, 4226263","https://forums.ohdsi.org/t/17895","2023-09-14","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -749,"[P] Plaque Psoriasis","Plaque Psoriasis","Plaque Psoriasis","rao@ohdsi.org","Pending peer review","","First occurrence of Plaque Psoriasis","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","27674, 4101344","https://forums.ohdsi.org/t/17895","2023-09-15","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -750,"[P] Pulmonary hypertension associated with left heart disease (WHO Group 2)","Pulmonary hypertension associated with left heart disease (WHO Group 2)","Pulmonary hypertension associated with left heart disease (WHO Group 2)","rao@ohdsi.org","Pending peer review","","First occurrence of Pulmonary hypertension associated with left heart disease (WHO Group 2)","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","4322024",,"2023-09-15","2023-10-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -752,"[P] Firearm Accidents (FA)","Firearm Accidents (FA)","Firearm Accidents (FA)","rao@ohdsi.org","Pending peer review","","Firearm accident with an emergency room or inpatient visit on index","",1,"'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","",,"2023-09-15","2023-10-05",,"","updates to earliest event on Jill Hardin's request",0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","First",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,2,1,0,0,0,1,0,1,,0,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -753,"[P] Motor Vehicle Accidents (MVA)","Motor Vehicle Accidents (MVA)","Motor Vehicle Accidents (MVA)","rao@ohdsi.org","Pending peer review","","All events of motor vehicle accidents with an emergency room or inpatient visit on index","",1,"'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","442752, 4150129","https://forums.ohdsi.org/t/17895","2023-09-15","2023-09-20",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",0,1,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,2,1,0,0,0,1,0,1,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -754,"[P] Down Syndrome","Down Syndrome","Down Syndrome","rao@ohdsi.org","Pending peer review","","Condition occurrence of Down Syndrome, starting between 0 days before and 0 days after cohort entry start date and ending between 0 days before and 0 days after cohort entry start date. Having at least 1 additional condition occurrence of ‘Down syndrome’, starting between 1 days after and 365 days after cohort entry start date having no condition eras of ‘Condition_Era Pregnancy Codes’, starting between 0 days before and 0 days after ‘Down syndrome’ start date and ending between 0 days after and 0 days after ‘Down syndrome’ start date","",1,"'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","37016200","","2023-09-15","2023-10-05",,"","removed pregnancy logic as it is not generalizable. Discussed with Jill Hardin",0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -755,"[P] Non-infectious uveitis and iridocyclitis","Non-infectious uveitis and iridocyclitis","Non-infectious uveitis and iridocyclitis","rao@ohdsi.org","Pending peer review","","Earliest diagnosis of non-infectious uveitis or iridocyclitis, indexed on the first ever event. This event must either be followed by a second event in the 31 to 365 days in the future or the event must occur at the time of an ophthalmology visit.","",1,"'James Weaver', 'Eria Voss Stanoch'","'0000-0003-0755-5191', '0000-0002-0651-0613'","","","","","","2023-09-15","2023-10-06",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,1,1,0,0,0,1,0,1,,0,,,,,,,,1,,,,,,,,,,1,,,,,,,,, -756,"[P] Cystic Fibrosis","Cystic Fibrosis","Cystic Fibrosis","rao@ohdsi.org","Pending peer review","","1 code of cystic fibrosis and a second code within 1 to 365 days post index","",1,"'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","441267","","2023-09-15","2023-10-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -757,"[P] Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap","Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap","Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap","rao@ohdsi.org","Pending peer review","","Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","703578","","2023-09-15","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"DrugEra",0,0,2,1,0,0,0,0,0,,,0,,,,,,,,,,,,,,,,,,,1,,,,,,,, -759,"[P] Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap","Concomitant TNF - alpha Inhibitors and IL12 23 Inhibitors - GE 30D overlap","Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap","rao@ohdsi.org","Pending peer review","","Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","255848, 4318404","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"DrugEra",0,0,3,1,0,0,0,0,0,,,0,,,,,,,,,,,,,,,,,,,1,,,,,,,, -760,"[P] Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap","Concomitant IL 23 Inhibitors and IL12 23 Inhibitors - GE 30D overlap","Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap","rao@ohdsi.org","Pending peer review","","Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","256451, 260139","https://forums.ohdsi.org/t/17895","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"DrugEra",0,0,3,1,0,0,0,0,0,,,0,,,,,,,,,,,,,,,,,,,1,,,,,,,, -761,"[P] Pulmonary arterial hypertension with Prior Left Heart or Vice Versa","Pulmonary arterial hypertension with Prior Left Heart or Vice Versa","Pulmonary arterial hypertension with Prior Left Heart or Vice Versa","rao@ohdsi.org","Pending peer review","","Index date of either PAH or left heart disease whichever comes last","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","319049","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,4,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -762,"[P] Endothelin receptor antagonists","Endothelin receptor antagonists","Endothelin receptor antagonists","rao@ohdsi.org","Pending peer review","","First exposure of Endothelin receptor antagonists","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","","","2023-09-16","2023-10-09",,"","joel reporte he made an error in cohort. used condition domain for drug",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,0,,,,1,,,,,,,,,,,,,,,,,,,,,,, -763,"[P] Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators","Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators","Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators","rao@ohdsi.org","Pending peer review","","First exposure of Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,0,,,,1,,,,,,,,,,,,,,,,,,,,,,, -764,"[P] Prostacyclin analogues and prostacyclin receptor agonists","Prostacyclin analogues and prostacyclin receptor agonists","Prostacyclin analogues and prostacyclin receptor agonists","rao@ohdsi.org","Pending peer review","","First exposure of Prostacyclin analogues and prostacyclin receptor agonists","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,0,,,,1,,,,,,,,,,,,,,,,,,,,,,, -765,"[P] Earliest event of Left Heart Failure","Earliest event of Left Heart Failure","Left Heart Failure","rao@ohdsi.org","Pending peer review","","First occurrence of Left Heart Failure","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -766,"[P] Earliest event of Right Heart Failure","Earliest event of Right Heart Failure","Right Heart Failure","rao@ohdsi.org","Pending peer review","","First occurrence of Right Heart Failure","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","255573, 317009","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -767,"[P] Earliest event of Sarcoidosis","Earliest event of Sarcoidosis","Sarcoidosis","rao@ohdsi.org","Pending peer review","","First occurrence of Sarcoidosis","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","317009","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -768,"[P] Earliest event of Sickle Cell Anemia","Earliest event of Sickle Cell Anemia","Sickle Cell Anemia","rao@ohdsi.org","Pending peer review","","First occurrence of Sickle Cell Anemia","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","4213628","","2023-09-16","2023-10-19",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -769,"[P] Scleroderma, first occurrence","Scleroderma, first occurrence","Scleroderma","rao@ohdsi.org","Pending peer review","","First occurrence of Scleroderma","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","76685, 80809, 81893, 81931, 134442, 134618, 135215, 140168, 194992, 199856, 201254, 201606, 254443, 257628, 374919, 432295, 438688, 443394, 4137275, 4232076","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -770,"[P] Essential Hypertension, first occurrence","Essential Hypertension, first occurrence","Essential Hypertension","rao@ohdsi.org","Pending peer review","","First occurrence of Essential Hypertension","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","253954, 434557","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -771,"[W] Pulmonary Hypertension (Group 2 Left heart disease, encompassing)","Pulmonary Hypertension (Group 2 Left heart disease, encompassing)","Pulmonary hypertension associated with left heart disease (WHO Group 2)","rao@ohdsi.org","Pending peer review","","First occurrence of Pulmonary hypertension associated with left heart disease (WHO Group 2)","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","137809, 443392","","2023-09-16","2023-10-09",,"","duplicate of 750",0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,5,1,0,0,1,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -772,"[W] Pulmonary Hypertension (Group 3 Chronic lung disease, encompassing)","Pulmonary Hypertension (Group 3 Chronic lung disease, encompassing)","Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3)","rao@ohdsi.org","Pending peer review","","First occurrence of Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3)","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","433736","https://forums.ohdsi.org/t/17895","2023-09-16","2023-10-09",,"","replaced by 751. removed prefix and santized.",0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,3,1,0,0,1,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -773,"[P] Congenital Heart Disease","Congenital Heart Disease","Congenital Heart Disease","rao@ohdsi.org","Pending peer review","","First occurrence of Congenital Heart Disease","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","4182210","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -774,"[P] Portal Hypertension, first occurrence","Portal Hypertension, first occurrence","Portal Hypertension","rao@ohdsi.org","Pending peer review","","First occurrence of Portal Hypertension","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","312648, 4028741","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -775,"[P] First Inflammatory Bowel Disease","First Inflammatory Bowel Disease","Inflammatory Bowel Disease","rao@ohdsi.org","Pending peer review","","First occurrence of Inflammatory Bowel Disease","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","4074815, 81893, 201606",,"2023-09-16","2023-10-03",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -776,"[P] Antisynthetase syndrome","Antisynthetase syndrome","Antisynthetase syndrome","rao@ohdsi.org","Pending peer review","","First occurrence of Antisynthetase syndrome","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","439727","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -777,"[P] Mixed connective tissue disease","Mixed connective tissue disease","Mixed connective tissue disease","rao@ohdsi.org","Pending peer review","","Mixed connective tissue disease","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","197494, 198964","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -778,"[P] Undifferentiated connective tissue disease","Undifferentiated connective tissue disease","Undifferentiated connective tissue disease","rao@ohdsi.org","Pending peer review","","First occurrence of Undifferentiated connective tissue disease","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","313217, 44784217","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -779,"[P] Overlap syndrome","Overlap syndrome","Overlap syndrome","rao@ohdsi.org","Pending peer review","","First occurrence of Overlap syndrome","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","193782","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -780,"[P] Raynaud’s disease or Raynaud's phenomenon","Raynaud’s disease or Raynaud's phenomenon","Raynaud’s disease or Raynaud’s phenomenon","rao@ohdsi.org","Pending peer review","","First occurrence of Raynaud’s disease or Raynaud’s phenomenon","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","201820, 201826","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -781,"[P] Antiphospholipid syndrome","Antiphospholipid syndrome","Antiphospholipid syndrome","rao@ohdsi.org","Pending peer review","","First occurrence of Antiphospholipid syndrome","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","192359, 193782","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -782,"[P] CTEPH Prevalent (with Echo or RHC) with 2nd dx code 31-365 days after first dx","CTEPH Prevalent (with Echo or RHC) with 2nd dx code 31-365 days after first dx","Chronic Thromboembolic Pulmonary Hypertension","rao@ohdsi.org","Pending peer review","","First occurrence of Chronic Thromboembolic Pulmonary Hypertension","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","193782","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -783,"[P] Pulmonary endarterectomy","Pulmonary endarterectomy","Pulmonary endarterectomy","rao@ohdsi.org","Pending peer review","","All occurrences of Pulmonary endarterectomy","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","253954, 434557","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",0,0,"All",FALSE,"All","All",1,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -784,"[P] Balloon Pulmonary Angioplasty","Balloon Pulmonary Angioplasty","Balloon Pulmonary Angioplasty","rao@ohdsi.org","Pending peer review","","All occurrences of Balloon Pulmonary Angioplasty","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","4138754","","2023-09-16","2023-10-04",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",0,0,"All",FALSE,"All","All",1,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -785,"[P] Skin Burns","Skin Burns","Skin Burns","rao@ohdsi.org","Pending peer review","","1 code of Skin Burns and a drug or procedure treatment within 1 to 180 days post index","",1,"'Jill Hardin'","'0000-0003-2682-2187'","","","","439676, 37311061","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",0,1,"All",FALSE,"All","All",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,2,1,0,0,0,0,0,1,,1,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -788,"[P] Breast cancer","Breast cancer","Breast cancer","rao@ohdsi.org","Pending peer review","","","",1,"'Asieh Golozar'","'0000-0002-4243-155X'","","","","439676, 37311061","","2023-09-16","2023-10-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -789,"[P] Glioblastoma multiforme (GBM)","Glioblastoma multiforme (GBM)","Glioblastoma multiforme (GBM)","rao@ohdsi.org","Pending peer review","","","",1,"'Asieh Golozar', 'Vlad Korsik'","'0000-0002-4243-155X'","","","","","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -790,"[P] Colorectal Cancer","Colorectal Cancer","Colorectal Cancer","rao@ohdsi.org","Pending peer review","","","",1,"'Asieh Golozar', 'Peter Prinsen'","'0000-0002-4243-155X'","","","","","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -791,"[P] Multiple Myeloma","Multiple Myeloma","Multiple Myeloma","rao@ohdsi.org","Pending peer review","","","",1,"'Asieh Golozar'","'0000-0002-4243-155X'","","","","","","2023-09-16","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",365,0,1,0,0,0,0,0,0,1,,0,1,,,,,,,1,,,,,,,,,,,,,,,,,,, -792,"[P] Metastatic Hormone-Sensitive Prostate Cancer Synchronous","Metastatic Hormone-Sensitive Prostate Cancer Synchronous","Metastatic Hormone-Sensitive Prostate Cancer Synchronous","rao@ohdsi.org","Pending peer review","","","#Pioneer2",1,"'Asieh Golozar'","'0000-0002-4243-155X'","'OHDSI'","","","377091, 4196708","https://forums.ohdsi.org/t/17895","2023-09-16","2023-10-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",3,2,"ConditionOccurrence, Measurement",183,183,6,1,1,1,0,0,0,1,1,0,,,,,,,,1,1,,1,,,1,,,,,,,,,,,,, -793,"[P] Metastatic Hormone-Sensitive Prostate Cancer Metachronus","Metastatic Hormone-Sensitive Prostate Cancer Metachronus","Metastatic Hormone-Sensitive Prostate Cancer Metachronus","rao@ohdsi.org","Pending peer review","","","#Pioneer2",1,"'Asieh Golozar'","'0000-0002-4243-155X'","'OHDSI'","","","439676, 37311061","","2023-09-16","2023-10-05",,"",,0,,,"ERA",0,"end of continuous observation",,,7,"First",FALSE,"All","First",3,2,"ConditionOccurrence, Measurement",183,0,8,1,1,1,0,0,0,1,1,0,,,,,,,,1,1,,1,,,1,,,,,,,,,,,,, -794,"[P] Hemorrhage of digestive system","Hemorrhage of digestive system","Hemorrhage of digestive system","rao@ohdsi.org","Pending peer review","","all events of Hemorrhage of digestive system. Persons exit on cohort end date plus 14 days","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-09-17","2023-10-16",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -795,"[P] Antineoplastic drugs against colorectal cancer","Antineoplastic drugs against colorectal cancer","Antineoplastic drugs against colorectal cancer","rao@ohdsi.org","Pending peer review","","First exposure of drugs Antineoplastic drugs against colorectal cancer.","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","439676, 37311061","","2023-09-18","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,0,,,,1,,,,,,,,,,,,,,,,,,,,,,, -796,"[P] Potential curative surgery for colorectal cancer","Potential curative surgery for colorectal cancer","Potential curative surgery for colorectal cancer","rao@ohdsi.org","Pending peer review","","First event potential curative surgery for colorectal cancer.","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","2023-09-18","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,,,0,,,,,,,1,,,,,,,,,,,,,,,,,,,, -797,"[P] Radiotherapy against colorectal cancer","Radiotherapy against colorectal cancer","Radiotherapy against colorectal cancer","rao@ohdsi.org","Pending peer review","","First exposure of radiotherapy, excluding procedures with that are probably not related to colorectal cancer.","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","317302, 320425","","2023-09-18","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,,,0,,,,,,,1,,,,,,,,,,,,,,,,,,,, -798,"[P] Primary adenocarcinoma of the colon or rectum","Primary adenocarcinoma of the colon or rectum","Primary adenocarcinoma of the colon or rectum","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of the colon or rectum","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","377091, 4196708","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -802,"[P] Acute Respiratory Failure 2","Acute Respiratory Failure 2","Acute Respiratory Failure","rao@ohdsi.org","Pending peer review","","First event of acute respiratory failure","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","Evan Minty","","79908, 139803, 443904","https://forums.ohdsi.org/t/17769","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -803,"[P] Fascial dehiscence and evisceration","Fascial dehiscence and evisceration","Fascial dehiscence and evisceration","rao@ohdsi.org","Pending peer review","","First fascial dehiscence or evisceration","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","254761, 312437, 437663, 439926, 442752, 4041664, 4178904, 4272240, 43530714","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,1,,,,,,,,,,,,,,,,,,,, -804,"[P] Anastomotic leak or dehiscence","Anastomotic leak or dehiscence","Anastomotic leak or dehiscence","rao@ohdsi.org","Pending peer review","","First event of anastomotic leak or dehiscence of large or small intestine","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","199074","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -805,"[P] Intestinal obstruction (broad)","Intestinal obstruction (broad)","Intestinal obstruction","rao@ohdsi.org","Pending peer review","","First event Intestinal obstruction","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","197320","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -806,"[P] Intraabdominal abscess","Intraabdominal abscess","Intraabdominal abscess","rao@ohdsi.org","Pending peer review","","First event Intraabdominal abscess","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","4245975","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -807,"[P] Perioperative aspiration","Perioperative aspiration","Perioperative aspiration","rao@ohdsi.org","Pending peer review","","First event of Perioperative aspiration","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","316139, 319835","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -808,"[P] Postoperative hemorrhage","Postoperative hemorrhage","Postoperative hemorrhage","rao@ohdsi.org","Pending peer review","","First event postoperative hemorrhage","",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","4002836","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -809,"[P] Surgical wound infection (narrow)","Surgical wound infection (narrow)","Surgical wound infection (narrow)","rao@ohdsi.org","Pending peer review","","First event surgical wound infection","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","443454","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -810,"[P] Distant metastasis following colorectal cancer (wide)","Distant metastasis following colorectal cancer (wide)","Distant metastasis following colorectal cancer (wide)","rao@ohdsi.org","Pending peer review","","First event distant metastasis following colorectal cancer","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","314666, 4329847","https://forums.ohdsi.org/t/15900","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -811,"[P] Local recurrence after colorectal cancer","Local recurrence after colorectal cancer","Local recurrence after colorectal cancer","rao@ohdsi.org","Pending peer review","","First event local recurrence after colorectal cancer","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","4183609, 4266367","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -812,"[P] Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment","Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment","Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of the colon or rectum with MSI-H or dMMR, no curative surgery or oncological treatment any time after","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","376713, 439847","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,12,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -813,"[P] Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery","Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery","Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery","rao@ohdsi.org","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum treated with curative surgery within 90 days of the operation","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","443454","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,2,1,0,0,0,0,0,,,0,,,,,,,1,,,,1,,,,,,,,,,,,,,,, -814,"[P] Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment","Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment","Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment","rao@ohdsi.org","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum treated with no curative surgery but oncological treatment within 90 days of the operation","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","373503","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,4,1,0,0,0,0,0,,,0,,,,1,,,1,,,,1,,,,,,,,,,,,,,,, -817,"[P] Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment2","Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment2","Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment","rao@ohdsi.org","Pending peer review","","Primary adenocarcinoma of the colon or rectum, no curative intended surgery, and oncological treatment at any time after","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","192671","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,4,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -818,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of the colon or rectum, with a molecular subtype of MSI-L, MSI-indeterminate, MSS or pMMR","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","313217, 44784217","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,11,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -819,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery","rao@ohdsi.org","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery within 90 days of diagnosis","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","438624, 4027133","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,12,1,0,0,0,0,0,,,0,,,,,,,1,,,,1,,,,,,,,,,,,,,,, -820,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery","rao@ohdsi.org","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with oncological therapy, but no curative intended surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,14,1,0,0,0,0,0,,,0,,,,1,,,1,,,,1,,,,,,,,,,,,,,,, -821,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum with a MSI-L, MSI-indeterminate, MSS or pMMR subtype, and no surgery or oncological treatment anytime in the future.","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,14,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -822,"[P] Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment","rao@ohdsi.org","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum with the MSI-H or dMMR molecular subtype, receiving potential curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","40481547","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,10,1,0,0,0,0,0,,,0,,,,,,,1,,,,1,,,,,,,,,,,,,,,, -823,"[P] Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery","rao@ohdsi.org","Pending peer review","","First event primary adenocarcinoma of the colon or rectum, with MSI-H or dMMR molecular subtype, treated with oncological treatment no curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","439676, 37311061","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,12,1,0,0,0,0,0,,,0,,,,1,,,1,,,,1,,,,,,,,,,,,,,,, -824,"[P] Primary adenocarcinoma of colon or rectum, MSI-H or dMMR","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR","rao@ohdsi.org","Pending peer review","","First event Primary adenocarcinoma of the colon or rectum, with MSI-H or dMMR molecular subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,9,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -825,"[P] Primary adenocarcinoma of colon","Primary adenocarcinoma of colon","Primary adenocarcinoma of colon","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of colon","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,2,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -826,"[P] Primary adenocarcinoma of colon, no surgery or oncological treatment","Primary adenocarcinoma of colon, no surgery or oncological treatment","Primary adenocarcinoma of colon, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of the colon, no curative surgery and no oncological treatment anytime after","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","373995","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,4,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -827,"[P] Primary adenocarcinoma of colon surgical treatment","Primary adenocarcinoma of colon surgical treatment","Primary adenocarcinoma of colon surgical treatment","rao@ohdsi.org","Pending peer review","","First event of curative surgery for primary adenocarcinoma","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","378419","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,2,1,0,0,0,0,0,,,0,,,,,,,1,,,,1,,,,,,,,,,,,,,,, -828,"[P] Primary adenocarcinoma of colon oncological treatment, no surgery","Primary adenocarcinoma of colon oncological treatment, no surgery","Primary adenocarcinoma of colon oncological treatment, no surgery","rao@ohdsi.org","Pending peer review","","First event of oncological treatment after primary adenocarcinoma, with no curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","138525, 194133","https://forums.ohdsi.org/t/18223","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,6,1,0,0,0,0,0,,,0,,,,1,,,1,,,,1,,,,,,,,,,,,,,,, -829,"[P] Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR","Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR","Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of colon, with MSI-L or pMMR molecular subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","444362","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,11,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -830,"[P] Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated","Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated","Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated","rao@ohdsi.org","Pending peer review","","First event of potential curative surgery after a primary adenocarcinoma with MSI-L, MSS, pMMR molecular subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","438409, 4047120","https://forums.ohdsi.org/t/15901","2023-09-18","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,12,1,0,0,0,0,0,,,0,,,,,,,1,,,,,,,,,,,,,,,,,,,, -831,"[P] Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","rao@ohdsi.org","Pending peer review","","First event of oncological treatment of primary adenocarcinoma of colon with MSS, MSI-L or pMMR subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","314666, 4296653, 4329847","https://forums.ohdsi.org/t/15900","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,14,1,0,0,0,0,0,,,0,,,,1,,,1,,,,1,,,,,,,,,,,,,,,, -832,"[P] Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of adenocarcinoma of colon with molecular subtype pMMR/MSI-L/MSS for patients not receiving surgery or oncological treatment","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","198263","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,14,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -833,"[P] Primary adenocarcinoma of colon MSI-H or dMMR","Primary adenocarcinoma of colon MSI-H or dMMR","Primary adenocarcinoma of colon MSI-H or dMMR","rao@ohdsi.org","Pending peer review","","First event of a primary adenocarcinoma of colon with MSI-H / pMMR molecular profile","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","442597, 4152351","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,9,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -834,"[P] Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment","Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment","Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment","rao@ohdsi.org","Pending peer review","","First event of potentially curative surgery for adenocarcinoma of colon following diagnosis of MSI-H dMMR subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","439926, 4272240","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,10,1,0,0,0,0,0,,,0,,,,,,,1,,,,1,,,,,,,,,,,,,,,, -835,"[P] Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery","Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery","Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery","rao@ohdsi.org","Pending peer review","","First event of oncological treatment for colorectal cancer following diagnosis of primary adenocarcinoma of colon with MSI-H or dMMR profile, no curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","4096682",,"2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,12,1,0,0,0,0,0,,,0,,,,1,,,1,,,,1,,,,,,,,,,,,,,,, -836,"[P] Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment","Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment","Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of colon with MSI-H or dMMR profile, no curative surgery or oncological treatment at anytime past diagnosis","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","137977, 435656","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,12,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -837,"[P] Primary adenocarcinoma of rectum","Primary adenocarcinoma of rectum","Primary adenocarcinoma of rectum","rao@ohdsi.org","Pending peer review","","First event of a primary adenocarcinoma of rectum","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","436222","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -838,"[P] Primary adenocarcinoma of rectum MSI-H or dMMR","Primary adenocarcinoma of rectum MSI-H or dMMR","Primary adenocarcinoma of rectum MSI-H or dMMR","rao@ohdsi.org","Pending peer review","","First event of a primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","196360, 197508","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,9,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -839,"[P] Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment","Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment","Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of a primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype, without any curative surgery or oncological treatment in the future","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","80809","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,12,1,0,0,0,0,0,,,0,,,,,,,1,,,,1,,,,,,,,,,,,,,,, -840,"[P] Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery","Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery","Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery","rao@ohdsi.org","Pending peer review","","First event of oncological treatment for patient with primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype, without any curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","318443, 764123","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,12,1,0,0,0,0,0,,,0,,,,1,,,1,,,,1,,,,,,,,,,,,,,,, -841,"[P] Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment","Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment","Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment","rao@ohdsi.org","Pending peer review","","First event of potentially curative surgery for patients diagnosed with primary adenocarcinoma of rectum with MSI-H / dMMR subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","201606","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,10,1,0,0,0,0,0,,,0,,,,,,,1,,,,1,,,,,,,,,,,,,,,, -842,"[P] Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR","Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR","Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of rectum, with MSI-L, MSI-indeterminate, MSS or pMMR subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","440383","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,11,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -843,"[P] Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","rao@ohdsi.org","Pending peer review","","First event of oncology in patients diagnosed with primary adenocarcinoma of rectum with MSI-L, MSI-indeterminate, MSS or pMMR profile, with no subsequent potentially curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","140168","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,14,1,0,0,0,0,0,,,0,,,,1,,,1,,,,1,,,,,,,,,,,,,,,, -844,"[P] Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of tectum with MSI-L / MSS / pMMR profile, no surgery or oncological treatment","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","81893","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,14,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -845,"[P] Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery","rao@ohdsi.org","Pending peer review","","First event of potentially curative surgery for primary adenocarcinoma of rectum with MSI-L / pMMR subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","26942, 138723, 4144746","https://forums.ohdsi.org/t/17854","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,12,1,0,0,0,0,0,,,0,,,,,,,1,,,,1,,,,,,,,,,,,,,,, -846,"[P] Primary adenocarcinoma of rectum oncological treatment, no surgery","Primary adenocarcinoma of rectum oncological treatment, no surgery","Primary adenocarcinoma of rectum oncological treatment, no surgery","rao@ohdsi.org","Pending peer review","","First event of oncological for patients with primary adenocarcinoma in rectum, with no subsequent potentially curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","257011, 437663, 4170143, 4250734","https://forums.ohdsi.org/t/17876","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,4,1,0,0,0,0,0,,,0,,,,1,,,1,,,,1,,,,,,,,,,,,,,,, -847,"[P] Primary adenocarcinoma of rectum surgical treatment","Primary adenocarcinoma of rectum surgical treatment","Primary adenocarcinoma of rectum surgical treatment","rao@ohdsi.org","Pending peer review","","First event of potentially curative surgery following diagnosis of primary adenocarcinoma of rectum","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","435503, 439777, 441269, 4250490","https://forums.ohdsi.org/t/17856","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,2,1,0,0,0,0,0,,,0,,,,,,,1,,,,1,,,,,,,,,,,,,,,, -848,"[P] Primary adenocarcinoma of rectum, no surgery or oncological treatment","Primary adenocarcinoma of rectum, no surgery or oncological treatment","Primary adenocarcinoma of rectum, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of rectum, no future potentially curative surgery or oncological treatment","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","435503, 439777, 441269, 4250490","https://forums.ohdsi.org/t/17856","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,4,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -850,"[W] Intestinal obstruction (broad 2)","Intestinal obstruction (broad 2)","Intestinal obstruction","rao@ohdsi.org","Pending peer review","","First event Intestinal obstruction","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","432881","","2023-09-18","2023-10-16",,"","duplicated 805",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -851,"[P] Intraabdominal obstruction (broad)","Intraabdominal obstruction (broad)","Intraabdominal obstruction","rao@ohdsi.org","Pending peer review","","First event Intraabdominal obstruction","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","Anna Ostropolets","","435224","https://forums.ohdsi.org/t/17409","2023-09-18","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -852,"[P] Surgical wound infection (broad)","Surgical wound infection (broad)","Surgical wound infection (broad)","rao@ohdsi.org","Pending peer review","","First event surgical wound infection","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","435224","https://forums.ohdsi.org/t/17409","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -854,"[P] Distant metastasis following colorectal cancer (medium)","Distant metastasis following colorectal cancer (medium)","Distant metastasis following colorectal cancer (medium)","rao@ohdsi.org","Pending peer review","","First event distant metastasis following colorectal cancer","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","433749, 4103532","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -855,"[P] Distant metastasis following colorectal cancer (narrow)","Distant metastasis following colorectal cancer (narrow)","Distant metastasis following colorectal cancer (narrow)","rao@ohdsi.org","Pending peer review","","First event distant metastasis following colorectal cancer","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","433749, 4103532","","2023-09-18","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -856,"[P] Earliest event of Migraine, including history of migraine","Earliest event of Migraine, including history of migraine","Earliest event of Migraine, including history of migraine","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Migraine indexed on occurrence of Migraine condition (or observation of history of migraine-in the one of the cohorts versions) or symptoms (Headache , Aura) or a use of antimigraine drug (or the 1st time). Patients entering the cohort with an antimigraine drugs or migraine symptoms are required to have a diagnosis or observation of Migraine or history of migraine within 60 days. Cohort exit is the end of continuous observation.","#ColorectalCancer, #Cancer",1,"Azza Shoaibi', 'Jill Hardin'","0000-0002-6976-2594'","'OHDSI'","","","313800, 4119134","","2023-09-18","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"All",FALSE,"All","First",4,3,"ConditionOccurrence, DrugExposure, Observation",0,0,3,1,0,0,0,0,0,1,,0,1,,,1,,,,,,,,,,,,,,,,,,,,,,, -857,"[P] Earliest event of Migraine","Earliest event of Migraine","Earliest event of Migraine","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Migraine indexed on occurrence of Migraine condition (or observation of history of migraine-in the one of the cohorts versions) or symptoms (Headache , Aura) or a use of antimigraine drug (or the 1st time). Patients entering the cohort with an antimigraine drugs or migraine symptoms are required to have a diagnosis or observation of Migraine or history of migraine within 60 days. Cohort exit is the end of continuous observation.","#JNJ, #Indication",1,"Azza Shoaibi', 'Jill Hardin'","0000-0002-6976-2594'","'OHDSI'","","","137967, 4345578","","2023-09-18","2023-10-04",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",3,2,"ConditionOccurrence, DrugExposure",0,0,3,1,0,0,0,0,0,1,,0,,,,1,,,,1,,,,,,,,,,,,,,,,,,, -858,"[P] Earliest event of Rheumatoid Arthritis","Earliest event of Rheumatoid Arthritis","Earliest event of Rheumatoid Arthritis","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Rheumatoid Arthritis indexed on diagnosis (condition or observation) date, for the first time in history cohort exit is the end of continuous observation","#JNJ, #Indication",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","321042","","2023-09-18","2023-10-04",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,0,1,,,,,,,1,,,,,,,,,,,,,,,,,,, -859,"[P] Earliest event of Crohns disease","Earliest event of Crohns disease","Earliest event of Crohns disease","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Crohns disease indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#Crohn",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","201606","","2023-09-18","2023-10-04",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -860,"[P] Earliest event of Ulcerative colitis","Earliest event of Ulcerative colitis","Earliest event of Ulcerative colitis","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Ulcerative Colitis indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#UlcerativeColitis",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","441202","https://forums.ohdsi.org/t/17835","2023-09-18","2023-09-22",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -861,"[W] Earliest event of Urinary tract infections (UTI)","Earliest event of Urinary tract infections (UTI)","Earliest event of Urinary tract infections (UTI)","rao@ohdsi.org","Pending peer review","","Earliest event of diagnosis of urinary tract infections, cohort exist is end of observation period.","#ColorectalCancer, #Cancer",1,"Stephen Fortin","0000-0002-6976-2594'","'OHDSI'","","","141651","","2023-09-18","2023-11-29",,"","Cohort appears to model biologically implausible situation",0,,,"ERA",0,"end of continuous observation",,,0,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -862,"[P] Earliest event of Alzheimer's disease derived from Imfeld, 2","Earliest event of Alzheimer's disease derived from Imfeld, 2","Earliest event of Alzheimer's disease derived from Imfeld, 2","rao@ohdsi.org","Pending peer review","","","#ColorectalCancer, #Cancer",1,"Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","42872891","","2023-09-18","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, DrugExposure",0,0,9,1,0,0,0,0,0,1,,0,,,,1,,,,,,,,,,,,,,,,,,,,,,, -863,"[P] Cognitive impairment, incident","Cognitive impairment, incident","Cognitive impairment, incident","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Crohns disease indexed on diagnosis date, for the first time in history , with 365 days prior observation time. cohort exit is the end of continuous observation","",1,"Azza Shoaibi', 'Dave Kern'","0000-0002-6976-2594'","'OHDSI'","","","4297400, 439795",,"2023-09-18","2023-10-04",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -864,"[P] Earliest event of Dementia","Earliest event of Dementia","Earliest event of Dementia","rao@ohdsi.org","Pending peer review","","Occurrences of dementia indexed on diagnosis or observation date with no required prior continuous enrollment subset to earliest observation where the patient was 18 years or older cohort exit is the end of continuous observation.","#Dementia",1,"Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","4182210","","2023-09-18","2023-10-03",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"All",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,1,1,0,0,0,0,1,,0,1,,,,,,,,1,,,,,,,,,,,,,,,,,, -865,"[P] Non-Emergent Major Non Cardiac Surgery among adults","Non-Emergent Major Non Cardiac Surgery among adults","Major Non Cardiac Surgery, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",35,1,"ProcedureOccurrence",0,0,37,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,,,,,,,, -866,"[P] Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED","Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED","Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -867,"[P] Lower Extremity Bypass, adults, inpt stay, no ED","Lower Extremity Bypass, adults, inpt stay, no ED","Lower Extremity Bypass, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -868,"[P] Carotid Endarterectomy, adults, inpt stay, no ED","Carotid Endarterectomy, adults, inpt stay, no ED","Carotid Endarterectomy, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty, Brian Bucher","0000-0003-4631-9992, 0000-0001-8376-9752","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -869,"[P] Lung Resection, adults, inpt stay, no ED","Lung Resection, adults, inpt stay, no ED","Lung Resection, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -870,"[P] Esophagectomy, adults, inpt stay, no ED","Esophagectomy, adults, inpt stay, no ED","Esophagectomy, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","132702","","2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -871,"[P] Pancreatectomy, adults, inpt stay, no ED","Pancreatectomy, adults, inpt stay, no ED","Pancreatectomy, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -872,"[P] Colectomy, adults, inpt stay, no ED","Colectomy, adults, inpt stay, no ED","Colectomy, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -873,"[P] Cystectomy, adults, inpt stay, no ED","Cystectomy, adults, inpt stay, no ED","Cystectomy, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -874,"[P] Nephrectomy, adults, inpt stay, no ED","Nephrectomy, adults, inpt stay, no ED","Nephrectomy, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty, Brian Bucher","0000-0003-4631-9992, 0000-0001-8376-9752","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -875,"[P] Coronary Artery Bypass Graft, adults, inpt stay, no ED","Coronary Artery Bypass Graft, adults, inpt stay, no ED","Coronary Artery Bypass Graft, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -876,"[P] Cardiac Valve Surgery, adults, inpt stay, no ED","Cardiac Valve Surgery, adults, inpt stay, no ED","Cardiac Valve Surgery, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -877,"[P] Non-Emergent MNCS (age 18 or greater), post op Afib (parox)","Non-Emergent MNCS (age 18 or greater), post op Afib (parox)","Non-Emergent MNCS (age 18 or greater), post op Afib (parox)","rao@ohdsi.org","Pending peer review","","","#Surgery, #NonEmergent",1,"Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","374954","","2023-09-19","2023-10-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",35,1,"ProcedureOccurrence",0,0,39,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,,,,,,,, -878,"[P] Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib","Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib","Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","436100","https://forums.ohdsi.org/t/17784","2023-09-19","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",35,1,"ProcedureOccurrence",0,0,38,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,,,,,,,, -881,"[P] Acute myocardial infarction","Acute myocardial infarction","Acute myocardial infarction events","rao@ohdsi.org","Pending","","Acute myocardial infarction condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabetes",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","139900","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -882,"[P] Decreased libido","Decreased libido","Persons with decreased libido","rao@ohdsi.org","Pending","","The first condition record of decreased libido","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","377575","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-21",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -884,"[P] Diarrhea including enteritis","Diarrhea including enteritis","Diarrhea events","rao@ohdsi.org","Pending","","Diarrhea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","196523",,"2023-09-20","2023-10-09",,"",,0,,,"ERA",30,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -888,"[P] Gastrointestinal bleeding","Gastrointestinal bleeding","Gastrointestinal bleeding events","rao@ohdsi.org","Pending","","Gastrointestinal hemorrhage condition record during an inpatient or ER visit successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","196715","","2023-09-20","2023-09-20",,"",,0,,,"ERA",30,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -889,"[P] Hyponatremia","Hyponatremia","Hyponatremia events","rao@ohdsi.org","Pending","","Hyponatremia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","199837","","2023-09-20","2023-09-20",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -890,"[P] Hypotension","Hypotension","Hypotension events","rao@ohdsi.org","Pending","","Hypotension condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4133004, 43531681","https://forums.ohdsi.org/t/17769","2023-09-20","2023-09-20",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -891,"[P] Nausea","Nausea","Nausea events","rao@ohdsi.org","Pending","","Nausea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","436093","","2023-09-20","2023-09-20",,"",,0,,,"ERA",30,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -892,"[P] Stroke","Stroke","Stroke (ischemic or hemorrhagic) events","rao@ohdsi.org","Pending","","Stroke (ischemic or hemorrhagic) condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","443454","","2023-09-20","2023-09-20",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -893,"[P] Vertigo","Vertigo","Persons with vertigo","rao@ohdsi.org","Pending","","The first condition record of vertigo","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4192640, 199074","https://forums.ohdsi.org/t/17848","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -894,"[P] Abdominal pain","Abdominal pain","Abdominal pain events","rao@ohdsi.org","Pending","","Abdominal pain condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4192640, 199074, 4340961","https://forums.ohdsi.org/t/17848","2023-09-20","2023-09-24",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -895,"[P] Abnormal weight gain","Abnormal weight gain","Abnormal weight gain events","rao@ohdsi.org","Pending","","Abnormal weight gain record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #legendDiabetes, #Symptoms",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","377091, 380378, 4029498","https://forums.ohdsi.org/t/17569","2023-09-20","2023-09-24",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -896,"[P] Abnormal weight loss","Abnormal weight loss","Abnormal weight loss events","rao@ohdsi.org","Pending","","Abnormal weight loss observation record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #legendDiabetes",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","435928","","2023-09-20","2023-09-28",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -898,"[P] Acute renal failure","Acute renal failure","Acute renal failure events","rao@ohdsi.org","Pending","","Acute renal failure condition record during an inpatient or ER visit successive records with >30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabete",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","374923, 4091559","https://forums.ohdsi.org/t/17788","2023-09-20","2023-09-24",,"",,0,,,"ERA",30,"fixed duration relative to initial event","StartDate",30,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -900,"[P] Anaphylactoid reaction","Anaphylactoid reaction","Anaphylactoid reaction events","rao@ohdsi.org","Pending","","Anaphylactoid reaction condition record during an inpatient or ER visit successive records with >7 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","441202","https://forums.ohdsi.org/t/16033","2023-09-20","2023-09-20",,"",,0,,,"ERA",7,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -901,"[P] Anemia","Anemia","Persons with anemia","rao@ohdsi.org","Pending","","The first condition record of anemia","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","441202","https://forums.ohdsi.org/t/18193","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -917,"[P] Anxiety","Anxiety","Persons with anxiety","rao@ohdsi.org","Pending","","The first condition record of anxiety, which is followed by another anxiety condition record or a drug used to treat anxiety","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,4,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -918,"[P] Bradycardia","Bradycardia","Persons with bradycardia","rao@ohdsi.org","Pending","","The first condition record of bradycardia, which is followed by another bradycardia condition record","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -919,"[P] Cardiac arrhythmia","Cardiac arrhythmia","Person with cardiac arrhythmia","rao@ohdsi.org","Pending","","The first condition record of cardiac arrhythmia, which is followed by another cardiac arrhythmia condition record, at least two drug records for a drug used to treat arrhythmias, or a procedure to treat arrhythmias","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197320","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -920,"[P] Cardiovascular disease","Cardiovascular disease","Total cardiovascular disease events (ischemic stroke, hemorrhagic stroke, heart failure, acute myocardial infarction or sudden cardiac death)","rao@ohdsi.org","Pending","","A condition record of ischemic stroke, hemorrhagic stroke, heart failure, acute myocardial infarction or sudden cardiac death during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197320","","2023-09-20","2023-09-20",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",5,1,"ConditionOccurrence",0,0,6,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -921,"[P] Cardiovascular-related mortality","Cardiovascular-related mortality","Cardiovascular-related mortality","rao@ohdsi.org","Pending","","Death record with at least 1 cardiovascular-related condition record (myocardial infarction, ischemic stroke, intracranial hemorrhage, sudden cardiac death, hospitalization for heart failure) in 30 days prior to death","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197320","https://forums.ohdsi.org/t/16067","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"Death",0,0,6,1,0,0,0,1,0,,,0,,,1,,,,,,,,,,,,,,,,,,,,,,,, -922,"[P] Chest pain or angina","Chest pain or angina","Persons with chest pain or angina","rao@ohdsi.org","Pending","","The first condition record of chest pain or angina","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","435503, 439777, 441269","https://forums.ohdsi.org/t/17856","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -923,"[P] Kidney disease","Kidney disease","Persons with chronic kidney disease","rao@ohdsi.org","Pending","","The first condition record of chronic kidney disease, which is followed by either another chronic kidney disease condition record or a dialysis procedure or observation","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","435503, 439777, 441269","https://forums.ohdsi.org/t/17856","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -924,"[P] Coronary heart disease","Coronary heart disease","Coronary heart disease events (acute myocardial infarction or sudden cardiac death)","rao@ohdsi.org","Pending","","A condition record of acute myocardial infarction or sudden cardiac death during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","437579, 4103295","","2023-09-20","2023-09-20",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",2,1,"ConditionOccurrence",0,0,3,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -925,"[P] Cough","Cough","Cough events","rao@ohdsi.org","Pending","","Cough condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #respiratory, #lung",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","321042, 437579, 4103295","","2023-09-20","2023-09-28",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -927,"[P] Dementia2","Dementia2","Persons with dementia","rao@ohdsi.org","Pending","","The first condition record of dementia","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4182210","","2023-09-20","2023-10-03",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -928,"[P] Depression2","Depression2","Persons with depression","rao@ohdsi.org","Pending","","The first condition record of depression, which is followed by another depression condition record, at least two drugs used to treat depression without another indication, or two psychotherapy procedures","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","377556","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,4,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -929,"[P] Edema events","Edema events","Edema events","rao@ohdsi.org","Pending","","Edema condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","374053, 377889","","2023-09-20","2023-10-03",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -930,"[P] End stage renal disease2","End stage renal disease2","Persons with end stage renal disease","rao@ohdsi.org","Pending","","The first condition record of end stage renal disease, which is followed by either another end stage renal disease condition record or a dialysis procedure or observation within 90 days","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","138525, 194133","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"All",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -931,"[P] Fall2","Fall2","Fall events","rao@ohdsi.org","Pending","","Fall condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","134736, 194133","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,, -932,"[P] Gout2","Gout2","Persons with gout","rao@ohdsi.org","Pending","","The first condition record of gout","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","200219","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -933,"[P] Headache2","Headache2","Headache events","rao@ohdsi.org","Pending","","Headache condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197381, 4306292","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA",30,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -934,"[P] Heart failure2","Heart failure2","Persons with heart failure","rao@ohdsi.org","Pending","","The first condition record of heart failure, which is followed by at least 1 heart failure condition record in the following year","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","78232, 80180","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,0,"All",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -935,"[P] Hemorrhagic stroke2","Hemorrhagic stroke2","Hemorrhagic stroke (intracerebral bleeding) events","rao@ohdsi.org","Pending","","Intracranial, cerebral or subarachnoid hemorrhage condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","194997","","2023-09-20","2023-09-20",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -936,"[P] Hepatic failure2","Hepatic failure2","Persons with hepatic failure","rao@ohdsi.org","Pending","","The first condition record of hepatic failure, necrosis, or coma","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","320116, 4138837","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -938,"[P] Hospitalization with heart failure","Hospitalization with heart failure","Hospitalization with heart failure events","rao@ohdsi.org","Pending","","Inpatient or ER visits with heart failure condition record all qualifying inpatient visits occurring > 7 days apart are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","Evan Minty","","79908, 138965, 139803, 380995, 443904","https://forums.ohdsi.org/t/17769","2023-09-20","2023-09-20",,"",,0,,,"ERA",7,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,2,1,0,0,0,0,0,,,1,,1,,,,,,,,,,,,,,,,,,,,,,,,, -939,"[P] Hospitalization with preinfarction syndrome","Hospitalization with preinfarction syndrome","Hospitalization with preinfarction syndrome events","rao@ohdsi.org","Pending","","Inpatient or ER visits with preinfarction syndrome condition record all qualifying inpatient visits occurring > 7 days apart are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","201820, 201826","https://forums.ohdsi.org/t/15764","2023-09-20","2023-09-20",,"",,0,,,"ERA",7,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,2,1,0,0,0,0,0,,,1,,1,,,,,,,,,,,,,,,,,,,,,,,,, -940,"[P] Hyperkalemia","Hyperkalemia","Hyperkalemia events","rao@ohdsi.org","Pending","","Condition record for hyperkalemia or potassium measurements > 5.6 mmol/L successive records with >90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabetes",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","313217, 44784217","","2023-09-20","2023-09-24",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Measurement",0,0,2,0,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -941,"[P] Hypokalemia","Hypokalemia","Hypokalemia events","rao@ohdsi.org","Pending","","Hypokalemia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","138384, 140673","","2023-09-20","2023-09-20",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -942,"[P] Hypomagnesemia","Hypomagnesemia","Hypomagnesemia events","rao@ohdsi.org","Pending","","Hypomagnesemia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","78474, 80767, 137809","","2023-09-20","2023-09-20",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -943,"[P] Impotence","Impotence","Persons with impotence","rao@ohdsi.org","Pending","","The first condition record of impotence","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -944,"[P] Ischemic stroke","Ischemic stroke","Ischemic stroke events","rao@ohdsi.org","Pending","","Ischemic stroke condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","194990","","2023-09-20","2023-09-20",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -945,"[P] Malignant neoplasm","Malignant neoplasm","Persons with a malignant neoplasm other than non-melanoma skin cancer","rao@ohdsi.org","Pending","","The first condition record of a malignant neoplasm, with at least 2 conditions records for one of 17 leading cancer (breast, prostate, lung, colorectal, bladder, ovary, uterus, thyroid, kidney, brain, pancreas, liver, multiple myeloma, leukemia, melanoma, myelodysplastic syndrome)","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","194990","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,18,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -946,"[P] Measured renal dysfunction","Measured renal dysfunction","Persons with measured renal dysfunction","rao@ohdsi.org","Pending","","The first creatinine measurement with value > 3 mg/dL","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,0,"First",FALSE,"All","First",1,1,"Measurement",0,0,1,0,0,0,0,0,0,,1,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -947,"[P] Neutropenia or agranulocytosis","Neutropenia or agranulocytosis","Persons with neutropenia or agranulocytosis","rao@ohdsi.org","Pending","","The first condition record of neutropenia or agranulocytosis","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","Evan Minty","","79908, 139803, 443904","https://forums.ohdsi.org/t/17769","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -948,"[P] Rash","Rash","Rash events","rao@ohdsi.org","Pending","","Rash condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","79864, 437038","","2023-09-20","2023-09-24",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -950,"[P] Rhabdomyolysis2","Rhabdomyolysis2","Rhabdomyolysis events","rao@ohdsi.org","Pending","","Rhabdomyolysis condition record or muscle disorder condition record with creatine measurement 5*ULN during an inpatient or ER visit successive records with >90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","192671","","2023-09-20","2023-09-20",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",TRUE,"All","All",2,1,"ConditionOccurrence",0,0,4,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -953,"[P] Sudden cardiac death in inpatient","Sudden cardiac death in inpatient","Sudden cardiac death events in inpatient","rao@ohdsi.org","Pending","","Sudden cardiac death condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197607, 4302555","","2023-09-20","2023-09-24",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -954,"[P] Syncope","Syncope","Syncope events","rao@ohdsi.org","Pending","","Syncope condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","377252","https://forums.ohdsi.org/t/18236","2023-09-20","2023-09-20",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -955,"[P] Thrombocytopenia","Thrombocytopenia","Persons with thrombocytopenia","rao@ohdsi.org","Pending","","The first condition record of thrombocytopenia","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","376938","https://forums.ohdsi.org/t/18236","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -956,"[P] Transient ischemic attack","Transient ischemic attack","Transient ischemic attack events","rao@ohdsi.org","Pending","","Transient ischemic attack condition record during an inpatient or ER visit successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","4112970","https://forums.ohdsi.org/t/18236","2023-09-20","2023-09-20",,"",,0,,,"ERA",30,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -957,"[P] Type 2 diabetes mellitus","Type 2 diabetes mellitus","Persons with type 2 diabetes mellitus","rao@ohdsi.org","Pending","","The first condition record of Type 2 Diabetes Mellitus, which is followed by another Type 2 Diabetes Mellitus condition record, at least 2 drugs used to treat Type 2 diabetes, or at least 2 HbA1c measurements with value > 6.5%","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","4216000, 4246137","https://forums.ohdsi.org/t/18236","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -963,"[P] Vomiting","Vomiting","Vomiting events","rao@ohdsi.org","Pending","","Vomiting condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","25297, 4226263","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",30,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -964,"[P] Chronic kidney disease","Chronic kidney disease","Persons with chronic kidney disease with 2+ diagnoses across 30d or 2+ dialysis","rao@ohdsi.org","Pending","","Persons with chronic kidney disease with 2+ diagnoses across 30d or 2+ dialysis","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","314754","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -965,"[P] 3-point MACE","3-point MACE","","rao@ohdsi.org","Pending","","Condition record of acute myocardial infarction, hemorrhagic or ischemic stroke or sudden cardiac death during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","253506, 255848","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",4,1,"ConditionOccurrence",0,0,6,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -967,"[P] 4-point MACE","4-point MACE","","rao@ohdsi.org","Pending","","3-Point MACE $+$ inpatient or ER visit (hospitalization) with heart failure condition record","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4023572","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",5,1,"ConditionOccurrence",0,0,6,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -976,"[P] Glycemic control","Glycemic control","","rao@ohdsi.org","Pending","","First hemoglobin A1c measurement with value $\le$ 7\%","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","317009","","2023-09-20","2023-09-24",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",2,1,"Measurement",0,0,1,0,0,0,0,0,0,,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -979,"[P] Hospitalization with heart failure indexed on hospitalization","Hospitalization with heart failure indexed on hospitalization","","rao@ohdsi.org","Pending","","Inpatient or ER visit with heart failure condition record","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","","","","441542, 442077","","2023-09-20","2023-09-24",,"",,0,,,"ERA",7,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,2,1,0,0,0,0,0,,,1,,1,,,,,,,,,,,,,,,,,,,,,,,,, -980,"[P] Revascularization","Revascularization","Coronary Vessel Revascularization","rao@ohdsi.org","Pending","","Procedure record of percutaneous coronary intervention or coronary artery bypass grafting during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4283892,4336464",,"2023-09-20","2023-10-04",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","All",2,1,"ProcedureOccurrence",0,0,3,1,0,0,0,1,0,,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -982,"[P] Stroke (ischemic or hemorrhagic) in inpatient","Stroke (ischemic or hemorrhagic) in inpatient","Stroke (ischemic or hemorrhagic) in inpatient","rao@ohdsi.org","Pending","","Condition record of hemorrhagic or ischemic stroke during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","134438, 45766714","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -986,"[P] Acute pancreatitis2","Acute pancreatitis2","","rao@ohdsi.org","Pending","","Condition record of acute pancreatitis during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","","","2023-09-20","2023-09-20",,"",,0,,,"ERA",30,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -989,"[P] Bladder cancer","Bladder cancer","Bladder Cancer","rao@ohdsi.org","Pending","","Malignant tumor of urinary bladder condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","","","2023-09-20","2023-10-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -990,"[P] Bone fracture","Bone fracture","Bone Fracture","rao@ohdsi.org","Pending","","Bone fracture condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","75053",,"2023-09-20","2023-10-04",,"",,0,,,"ERA",90,"fixed duration relative to initial event","EndDate",1,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -991,"[P] Breast cancer Malignant tumor of breast","Breast cancer Malignant tumor of breast","Breast cancer Malignant tumor of breast","rao@ohdsi.org","Pending","","Malignant tumor of breast condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","197925, 4245614","","2023-09-20","2023-09-24",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -992,"[P] Diabetic ketoacidosis with inpatient or ER visit","Diabetic ketoacidosis with inpatient or ER visit","","rao@ohdsi.org","Pending","","Diabetic ketoacidosis condition record during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","261687","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -993,"[W] Diarrhea including enteritis","Diarrhea including enteritis","","rao@ohdsi.org","Pending","","Diarrhea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4209223, 4285898, 42537251","https://forums.ohdsi.org/t/17895","2023-09-20","2023-10-09",,"","duplicate 884",0,,,"ERA",30,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -994,"[P] Genitourinary infection","Genitourinary infection","Genitourinary infection","rao@ohdsi.org","Pending","","Condition record of any type of genital or urinary tract infection during an outpatient or ER vists","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","24660, 4083666","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-25",,"",,0,,,"ERA",30,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -996,"[P] Hypoglycemia","Hypoglycemia","Hypoglycemia","rao@ohdsi.org","Pending","","Hypoglycemia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","257007, 4320791","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA",30,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -997,"[W] Hypotension or low blood pressure","Hypotension or low blood pressure","Hypotension","rao@ohdsi.org","Pending","","Hypotension condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","24969, 260134","https://forums.ohdsi.org/t/17895","2023-09-20","2023-10-09",,"","duplicates 890",0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -998,"[P] Joint pain3","Joint pain3","","rao@ohdsi.org","Pending","","Joint pain condition record of any type successive records with > 90 days gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4096682","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -999,"[P] Lower extremity amputation3","Lower extremity amputation3","Lower extremity amputation","rao@ohdsi.org","Pending","","Procedure record of below knee lower extremity amputation during inpatient or outpatient visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","261600, 4078925","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",0,0,"All",TRUE,"All","All",1,1,"ProcedureOccurrence",0,0,1,1,0,0,0,0,0,,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -1000,"[P] Nausea3","Nausea3","","rao@ohdsi.org","Pending","","Nausea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","319049, 4256228","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",30,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1001,"[W] Peripheral edema","Peripheral edema","Peripheral edema","rao@ohdsi.org","Pending","","Edema condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","319049, 4256228","https://forums.ohdsi.org/t/17895","2023-09-20","2023-10-16",,"","unclear about the origins and also how does it differ from 929",0,,,"ERA",180,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1002,"[P] Photosensitivity","Photosensitivity","Photosensitivity","rao@ohdsi.org","Pending","","Condition record of drug-induced photosensitivity during any type of visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","254061","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1003,"[P] Renal cancer","Renal cancer","Renal Cancer","rao@ohdsi.org","Pending","","Primary malignant neoplasm of kidney condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","73754","https://forums.ohdsi.org/t/18236","2023-09-20","2023-09-24",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1004,"[P] Thyroid tumor","Thyroid tumor","Thyroid tumor","rao@ohdsi.org","Pending","","Neoplasm of thyroid gland condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","","","","4131909",,"2023-09-20","2023-10-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1005,"[P] Venous thromboembolism","Venous thromboembolism","Venous thromboembolism","rao@ohdsi.org","Pending","","Venous thromboembolism condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","72404, 72711","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA",180,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1006,"[P] Vomiting symptoms","Vomiting symptoms","Vomiting","rao@ohdsi.org","Pending","","Vomiting condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes, #Symptoms",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","435524, 442588","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA",30,"fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1007,"[P] Earliest event of Epilepsy","Earliest event of Epilepsy","Earliest event of Epilepsy","rao@ohdsi.org","Pending","","Earliest occurrence of Epilepsy indexed on diagnosis date cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","197684, 4021780","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1009,"[P] Earliest event of Treatment resistant depression (TRD)","Earliest event of Treatment resistant depression (TRD)","Earliest event of Treatment resistant depression (TRD)","rao@ohdsi.org","Pending","","Depression disorder patients indexed on prescription date of a first-line anti-depressant preceded by at least two prior first-line anti-depressants) or indexed on an antipsychotic preceded by a first-line anti-depressant or indexed on use of esketamine preceded by a first-line anti-depressant subset to the earliest entry with a depressive disorder diagnosis in the prior year and no history of mania, dementia, or psychosis requiring continuous enrollment for the year preceding the index date and the year preceding the depression diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","25297, 28060, 4226263","","2023-09-20","2023-10-04",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"All",TRUE,"First","First",3,1,"DrugEra",0,0,7,1,0,0,0,0,0,,,0,,,,,,,,,,,,,,,,,,,1,,,,,,,, -1010,"[P] Earliest event of Chronic Graft Versus Host Disease (GVHD)","Earliest event of Chronic Graft Versus Host Disease (GVHD)","Earliest event of Chronic Graft Versus Host Disease (GVHD)","rao@ohdsi.org","Pending","","Earliest occurrence of Chronic graft-versus-host disease indexed on diagnosis date of Chronic graft-versus-host disease or acute on Chronic graft-versus-host disease (for the first time in history) or unspecified raft-versus-host disease with a Hematopoietic Stem Cell Transplantation (HSCT) anytime prior to 180 days prior to index, cohort exit is the end of continuous observation","#JnJ, #Indication",1,"Jill Hardin","","'OHDSI'","","","257007, 4320791","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"All",FALSE,"All","First",3,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,1,,,,,,,,,,,,,, -1011,"[P] Earliest event of Marginal zone lymphoma","Earliest event of Marginal zone lymphoma","Earliest event of Marginal zone lymphoma","rao@ohdsi.org","Pending","","Earliest occurrence of Marginal zone lymphoma, indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication",1,"Jill Hardin","","'OHDSI'","","","260123, 4283893","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1012,"[P] Earliest event of Waldenstrom macroglobulinemia","Earliest event of Waldenstrom macroglobulinemia","Earliest event of Waldenstrom macroglobulinemia","rao@ohdsi.org","Pending","","Earliest occurrence of Waldenstrom macroglobulinemia indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication",1,"'Jill Hardin'","","'OHDSI'","","","435502",,"2023-09-20","2023-10-04",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1013,"[P] Earliest event of Ankylosing Spondylitis","Earliest event of Ankylosing Spondylitis","Earliest event of Ankylosing Spondylitis","rao@ohdsi.org","Pending","","Earliest occurrence of Ankylosing Spondylitis indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication",1,"Joel Swerdel'","","'OHDSI'","","","257007, 43021227","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1016,"[P] Earliest event of Polyarticular juvenile idiopathic arthritis (JIA)","Earliest event of Polyarticular juvenile idiopathic arthritis (JIA)","Earliest event of Polyarticular juvenile idiopathic arthritis (JIA)","rao@ohdsi.org","Pending","","First occurrence of Polyarticular juvenile idiopathic arthritis (JIA)) indexed on diagnosis date, for the first time in history. Requiring that events occurred on or after January of 2016 and limited to patients with age less or equal to 16 years old. cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","372328","","2023-09-20","2023-10-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,1,0,0,0,0,1,,0,,,,,1,,,1,,,,,,,,,,,,,,,,,,, -1017,"[P] Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old","Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old","Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old","rao@ohdsi.org","Pending","","Earliest occurrence of Neonatal Thrombocytopenia indexed on diagnosis date, for the first time in history limited to patients less than 1 years old, cohort exit is the end of continuous observation","#JnJ, #Indication",1,"Nathan Hal', 'Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","439777","https://forums.ohdsi.org/t/17856","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,1,0,0,0,0,1,,0,,,,,1,,,1,,,,,,,,,,,,,,,,,,, -1018,"[P] Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA)","Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA)","Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA)","rao@ohdsi.org","Pending","","Earliest occurrence of Warm Autoimmune Hemolytic Anemia (wAIHA) indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication",1,"'Jill Hardin'","","'OHDSI'","","","437264, 440069","","2023-09-20","2023-10-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1019,"[P] All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode","All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode","All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode","rao@ohdsi.org","Pending","","All events of Hemolytic Disease Fetus and Newborn (HDFN) indexed on diagnosis date, requiring a pregnancy episode that started any time prior index and pregnancy ends between 14 days pre to all time post index patients exit the cohort 270 days post index or on events signaling pregnancy end. Reoccurrence events are collapsed if the next event starts within 90 days of end of prior event.","#JnJ, #Indication",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","444367, 4145627","","2023-09-20","2023-09-20",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",270,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1020,"[P] Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder","Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder","Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder","rao@ohdsi.org","Pending","","Earliest occurrence of major depressive disorder indexed on diagnosis date requiring no occurrence anytime prior including day 0 of Bipolar disorder, Schizoaffective, Schizophrenia not including paraphrenia, Dementia or Psychotic disorder cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Dave Kern, Joel Swerdel","","'OHDSI'","","","441259, 4177600",,"2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"All","First",1,1,"ConditionOccurrence",0,0,6,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1021,"[P] Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18","Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18","Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18","rao@ohdsi.org","Pending","","Earliest occurrence of myasthenia gravis (excluding congenital, juvenile, neonatal or genetic) indexed on diagnosis date requiring either a second diagnosis of myasthenia gravis within 365 days after the first diagnosis (index date) or a drug exposure to Pyridostigmine on or 60 days after the first diagnosis or that the first diagnosis occur in an inpatient setting cohort exit is the end of continuous observation. Limit to persons with age greater than or equal to 18 on entry.","#JnJ, #Indication",1,"Mitch Conover'","","'OHDSI'","","","4155911",,"2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"ConditionOccurrence, DrugExposure",0,0,3,1,1,0,0,1,0,1,,0,,,,1,,,,,1,,,,,,,,,,,,,,,,,, -1022,"[P] Earliest event of Depressive and Sleep Disorder","Earliest event of Depressive and Sleep Disorder","Earliest event of Depressive and Sleep Disorder","rao@ohdsi.org","Pending","","Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by a sleep disorder diagnosis in the prior year 2) a sleep disorder diagnosis that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Joel Swerdel','Azza Shoaibi'","","'OHDSI'","","","441259, 4307580",,"2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1023,"[P] Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent","Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent","Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent","rao@ohdsi.org","Pending","","Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by a suicidal ideation diagnosis or suicide observation in the prior year, or 2) a suicide ideation diagnosis that is preceded by a depressive disorder diagnosis in the prior year, or 3) a suicide attempt observation that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Joel Swerdel','Azza Shoaibi' ,'Pranav Bhimani'","","'OHDSI'","","","438252, 4118793",,"2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",3,2,"ConditionOccurrence, Observation",0,0,3,1,0,0,0,0,0,1,,0,1,,,,,,,1,,,,,,,,,,,,,,,,,,, -1024,"[P] Earliest Event of Depressive Disorder with Anhedonia","Earliest Event of Depressive Disorder with Anhedonia","Earliest Event of Depressive Disorder with Anhedonia","rao@ohdsi.org","Pending","","Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by an Anhedonia diagnosis in the prior year or 2) an anhedonia diagnosis that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Joel Swerdel', 'Pranav Bhimani'","","'OHDSI'","","","137977, 435656","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1025,"[P] First event of Attention-deficit hyperactivity (ADHD) disorder or procedure","First event of Attention-deficit hyperactivity (ADHD) disorder or procedure","First event of Attention-deficit hyperactivity (ADHD) disorder or procedure","rao@ohdsi.org","Pending","","First occurrence of Attention-deficit hyperactivity disorder (ADHD) condition or related procedures, indexed on the earliest occurrence of ADHD condition, procedure or treatment (limited to drug exposure followed by a related condition or procedure), with 365d prior observation, exit at end of observation","#JnJ, #Indication",1,"Jamie Weaves', 'Mitch Connover'","","'OHDSI'","","","40480225,4047120",,"2023-09-20","2023-10-04",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",3,3,"ConditionOccurrence, DrugExposure, ProcedureOccurrence",0,0,2,1,0,0,0,0,0,1,,0,,,,1,,,1,,,,,,,,,,,,,,,,,,,, -1026,"[P] Earliest Event of Multiple Sclerosis","Earliest Event of Multiple Sclerosis","Earliest Event of Multiple Sclerosis","rao@ohdsi.org","Pending","","Earliest occurrence of multiple sclerosis indexed on diagnosis date for the first time in persons history cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Joel Swerdel'","","'OHDSI'","","","135618, 4169287","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1027,"[P] Earliest event of Chronic Leukocytic Leukemia","Earliest event of Chronic Leukocytic Leukemia","Earliest event of Chronic Leukocytic Leukemia","rao@ohdsi.org","Pending","","Earliest event of Chronic Leukocytic Leukemia (not including Hairy cell, prolymphocytic leukemia, T cell, reticuloendotheliosis) for the first time in persons history, exit cohort at the end of continuous observation period.","#JnJ, #Indication",1,"Jill Hardin'","","'OHDSI'","","","133834, 133835, 45766714","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1028,"[P] Earliest event of Urothelial carcinoma","Earliest event of Urothelial carcinoma","Earliest event of Urothelial carcinoma","rao@ohdsi.org","Pending","","Earliest event of Urothelial Carcinoma indexed on diagnosis Indexed on Primary or malignant urothelial bladder cancer diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Jill Hardin'","","'OHDSI'","","","134438","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1029,"[P] Earliest event of Mantle Cell Lymphoma","Earliest event of Mantle Cell Lymphoma","Earliest event of Mantle Cell Lymphoma","rao@ohdsi.org","Pending","","Earliest event of Urothelial Carcinoma indexed on diagnosis Indexed on Primary or malignant urothelial bladder cancer diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Jill Hardin'","","'OHDSI'","","","4242574","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,1,,,,,,,,,,,,,, -1030,"[P] Earliest event of Prostate cancer, among adult males","Earliest event of Prostate cancer, among adult males","Earliest event of Prostate cancer, among adult males","rao@ohdsi.org","Pending","","Earliest event of Prostate cancer restricting age greater than or equal to 18 and males indexed on prostate cancer diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Rupa Makadia","","'OHDSI'","","","137053","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,1,1,0,0,0,1,,0,,,,,1,,,,,,,1,,,,,,,,,,,,,,, -1031,"[P] Earliest event of Coronary artery disease (CAD)","Earliest event of Coronary artery disease (CAD)","Earliest event of Coronary artery disease (CAD)","rao@ohdsi.org","Pending","","Earliest event of Coronary Artery Disease for the first time in the persons history Indexed on coronary artery disease diagnosis (condition or observation) cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Joel Swerdel'","","'OHDSI'","","","4203600, 4239682, 4331304","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,0,1,,,,,,,1,,,,,,,,,,,,,,,,,,, -1032,"[P] Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM","Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM","Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM","rao@ohdsi.org","Pending","","Earliest event of Type 2 Diabetes Mellitus (DM), indexed on diagnosis or Blood glucose lowering drugs excluding insulin or high Hemoglobin A1c (limited to treatments or measurement that are followed with Type 2 DM diagnosis within 365 days) excluding persons with Type 1 DM or secondary diabetes mellitus in the all time prior including index date","#JnJ, #Indication",1,"Patrick Ryan,","","'OHDSI'","","","4027396","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",4,3,"ConditionOccurrence, DrugExposure, Measurement",0,0,5,1,0,0,0,0,0,1,1,0,,,,1,,,,,,,,,,,,,,,,,,,,,,, -1033,"[P] Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis","Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis","Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis","rao@ohdsi.org","Pending","","Earliest event of Human Immunodeficiency Virus I (HIV), with HIV drugs or laboratory results any time after index date or second diagnosis post index cohort exit is the end of continuous observation","#JnJ, #Indication",1,"Rupa Makadia, Jamie Calusardo","","'OHDSI'","","","4027396, 4117779","","2023-09-20","2023-10-04",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"All",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1034,"[P] All events of Respiratory syncytial virus infection, with 30 days washout","All events of Respiratory syncytial virus infection, with 30 days washout","All events of Respiratory syncytial virus infection, with 30 days washout","rao@ohdsi.org","Pending","","All events of Respiratory syncytial virus infection, with no such events in prior 30 days (washout). Persons exit the cohort at the start date + 30 day.","#JnJ, #Indication",1,"Nathan Hall, Rupa Makadia","","'OHDSI'","","","377889","","2023-09-20","2023-09-20",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",30,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1035,"[P] New users of Thiazide diuretics","New users of Thiazide diuretics","New users of Thiazide diuretics","rao@ohdsi.org","Pending peer review","","New users of Thiazide diuretics","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,0,90,0,,,, -1036,"[P] New users of Beta blockers","New users of Beta blockers","New users of Beta blockers","rao@ohdsi.org","Pending peer review","","New users of Beta blockers","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,2,90,0,,,, -1037,"[P] New users of SGLT2 inhibitor","New users of SGLT2 inhibitor","New users of SGLT2 inhibitor","rao@ohdsi.org","Pending peer review","","New users of SGLT2 inhibitor","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,3,90,0,,,, -1038,"[P] New users of GLP-1 receptor antagonists","New users of GLP-1 receptor antagonists","New users of GLP-1 receptor antagonists","rao@ohdsi.org","Pending peer review","","New users of GLP-1 receptor antagonists","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,4,90,0,,,, -1039,"[P] New users of DPP-4 inhibitors","New users of DPP-4 inhibitors","New users of DPP-4 inhibitors","rao@ohdsi.org","Pending peer review","","New users of DPP-4 inhibitors","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,5,90,0,,,, -1040,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors","rao@ohdsi.org","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,6,90,0,,,, -1041,"[P] New users of JAK inhibitors","New users of JAK inhibitors","New users of JAK inhibitors","rao@ohdsi.org","Pending peer review","","New users of JAK inhibitors","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,7,90,0,,,, -1042,"[P] New users of IL-23 inhibitors","New users of IL-23 inhibitors","New users of IL-23 inhibitors","rao@ohdsi.org","Pending peer review","","New users of IL-23 inhibitors","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-10-03",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,8,90,0,,,, -1043,"[P] New users of Fluoroquinolone systemic","New users of Fluoroquinolone systemic","New users of Fluoroquinolone systemic","rao@ohdsi.org","Pending peer review","","New users of Fluoroquinolone systemic","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,9,30,0,,,, -1044,"[P] New users of Cephalosporin systemetic","New users of Cephalosporin systemetic","New users of Cephalosporin systemetic","rao@ohdsi.org","Pending peer review","","New users of Cephalosporin systemetic","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,10,30,0,,,, -1045,"[P] New users of Trimethoprim systemetic","New users of Trimethoprim systemetic","New users of Trimethoprim systemetic","rao@ohdsi.org","Pending peer review","","New users of Trimethoprim systemetic","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,11,30,0,,,, -1046,"[P] New users of Thiazide diuretics nested in essential hypertension","New users of Thiazide diuretics nested in essential hypertension","New users of Thiazide diuretics nested in essential hypertension","rao@ohdsi.org","Pending peer review","","New users of Thiazide diuretics nested in essential hypertension","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,0,90,0,,,, -1047,"[P] New users of dihydropyridine calcium channel blockers nested in essential hypertension","New users of dihydropyridine calcium channel blockers nested in essential hypertension","New users of dihydropyridine calcium channel blockers nested in essential hypertension","rao@ohdsi.org","Pending peer review","","New users of dihydropyridine calcium channel blockers nested in essential hypertension","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,1,90,0,,,, -1048,"[P] New users of dihydropyridine calcium channel blockers","New users of dihydropyridine calcium channel blockers","New users of dihydropyridine calcium channel blockers","rao@ohdsi.org","Pending peer review","","New users of dihydropyridine calcium channel blockers","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,1,90,0,,,, -1049,"[P] New users of Beta blockers nested in essential hypertension","New users of Beta blockers nested in essential hypertension","New users of Beta blockers nested in essential hypertension","rao@ohdsi.org","Pending peer review","","New users of Beta blockers nested in essential hypertension","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,2,90,0,,,, -1050,"[P] New users of Beta blockers nested in Left Heart Failure","New users of Beta blockers nested in Left Heart Failure","New users of Beta blockers nested in Left Heart Failure","rao@ohdsi.org","Pending peer review","","New users of Beta blockers nested in Left Heart Failure","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,2,90,0,,,, -1051,"[P] New users of SGLT2 inhibitor nested in Left Heart Failure","New users of SGLT2 inhibitor nested in Left Heart Failure","New users of SGLT2 inhibitor nested in Left Heart Failure","rao@ohdsi.org","Pending peer review","","New users of SGLT2 inhibitor nested in Left Heart Failure","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,3,90,0,,,, -1052,"[P] New users of Beta blockers nested in Acute Myocardial Infarction","New users of Beta blockers nested in Acute Myocardial Infarction","New users of Beta blockers nested in Acute Myocardial Infarction","rao@ohdsi.org","Pending peer review","","New users of Beta blockers nested in Acute Myocardial Infarction","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,3,1,0,0,0,1,0,,,0,,,,1,,,,1,,,,,,,,,,,,,2,90,0,,,, -1053,"[P] New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus","New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus","New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus","rao@ohdsi.org","Pending peer review","","New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,4,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,4,90,0,,,, -1054,"[P] New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus","New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus","New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus","rao@ohdsi.org","Pending peer review","","New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,4,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,3,90,0,,,, -1055,"[P] New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus","New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus","New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus","rao@ohdsi.org","Pending peer review","","New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,4,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,5,90,0,,,, -1056,"[P] New users of GLP-1 receptor antagonists nested in obesity","New users of GLP-1 receptor antagonists nested in obesity","New users of GLP-1 receptor antagonists nested in obesity","rao@ohdsi.org","Pending peer review","","New users of GLP-1 receptor antagonists nested in obesity","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,4,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,4,90,0,,,, -1057,"[P] New users of IL-23 inhibitors nested in Plaque psoriasis","New users of IL-23 inhibitors nested in Plaque psoriasis","New users of IL-23 inhibitors nested in Plaque psoriasis","rao@ohdsi.org","Pending peer review","","New users of IL-23 inhibitors nested in Plaque psoriasis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-10-03",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,8,90,0,,,, -1058,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis","rao@ohdsi.org","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,6,90,0,,,, -1059,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis","rao@ohdsi.org","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,4,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,6,90,0,,,, -1060,"[P] New users of Fluoroquinolone systemic nested in Urinary Tract Infection","New users of Fluoroquinolone systemic nested in Urinary Tract Infection","New users of Fluoroquinolone systemic nested in Urinary Tract Infection","rao@ohdsi.org","Pending peer review","","New users of Fluoroquinolone systemic nested in Urinary Tract Infection","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,9,30,0,,,, -1061,"[P] New users of Cephalosporin systemetic nested in Urinary Tract Infection","New users of Cephalosporin systemetic nested in Urinary Tract Infection","New users of Cephalosporin systemetic nested in Urinary Tract Infection","rao@ohdsi.org","Pending peer review","","New users of Cephalosporin systemetic nested in Urinary Tract Infection","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,10,30,0,,,, -1062,"[P] New users of Trimethoprim systemetic nested in Urinary Tract Infection","New users of Trimethoprim systemetic nested in Urinary Tract Infection","New users of Trimethoprim systemetic nested in Urinary Tract Infection","rao@ohdsi.org","Pending peer review","","New users of Trimethoprim systemetic nested in Urinary Tract Infection","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,11,30,0,,,, -1063,"[P] New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia","New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia","New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia","rao@ohdsi.org","Pending peer review","","New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,3,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,9,30,0,,,, -1064,"[P] New users of Cephalosporin systemetic nested in Acute Typical Pneumonia","New users of Cephalosporin systemetic nested in Acute Typical Pneumonia","New users of Cephalosporin systemetic nested in Acute Typical Pneumonia","rao@ohdsi.org","Pending peer review","","New users of Cephalosporin systemetic nested in Acute Typical Pneumonia","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,3,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,10,30,0,,,, -1065,"[P] New users of Trimethoprim systemetic nested in Acute Typical Pneumonia","New users of Trimethoprim systemetic nested in Acute Typical Pneumonia","New users of Trimethoprim systemetic nested in Acute Typical Pneumonia","rao@ohdsi.org","Pending peer review","","New users of Trimethoprim systemetic nested in Acute Typical Pneumonia","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,3,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,11,30,0,,,, -1066,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis","rao@ohdsi.org","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,6,90,0,,,, -1067,"[P] New users of JAK inhibitors nested in Ulcerative colitis","New users of JAK inhibitors nested in Ulcerative colitis","New users of JAK inhibitors nested in Ulcerative colitis","rao@ohdsi.org","Pending peer review","","New users of JAK inhibitors nested in Ulcerative colitis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,7,90,0,,,, -1068,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis","rao@ohdsi.org","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,6,90,0,,,, -1069,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease","rao@ohdsi.org","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,6,90,0,,,, -1070,"[P] New users of JAK inhibitors nested in Rheumatoid arthritis","New users of JAK inhibitors nested in Rheumatoid arthritis","New users of JAK inhibitors nested in Rheumatoid arthritis","rao@ohdsi.org","Pending peer review","","New users of JAK inhibitors nested in Rheumatoid arthritis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,1,0,0,0,0,0,,,0,,,,1,,,,1,,,,,,,,,,,,,7,90,0,,,, -1071,"[P] persons at risk at start of year 2012-2022 with 365d prior observation","persons at risk at start of year 2012-2022 with 365d prior observation","persons at risk at start of year 2012-2022 with 365d prior observation","rao@ohdsi.org","Pending peer review","","persons at risk at start of year 2012-2022 with 365d prior observation","#Target, #Study, #Symposium, #baseCohort",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-10-02",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,0,"All",TRUE,"All","All",11,1,"ObservationPeriod",365,0,0,1,1,1,1,0,0,,,1,,,,,,,,,,,,,,,,,,,,,,,,1,1,1, -1072,"[P] CMV Anterior Uveitis","CMV Anterior Uveitis","Cytomegalovirus CMV Anterior Uveitis","rao@ohdsi.org","Pending peer review","",,"#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli','Rupesh Agrawal','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0002-9612-5697','','','','','','','',''","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore', 'Minneapolis VA Health Care System, University of Minnesota','UC Davis','UCSF','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-09-21","2023-10-18",,"",,0,,,"ERA",0,"end of continuous observation",,,6,"First",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,11,1,0,0,0,0,0,1,1,0,1,,,,,,,,,,,,,,,,,,,,,,,,,, -1073,"[P] Serious Infection, opportunistic infections and other infections of interest event","Serious Infection, opportunistic infections and other infections of interest event","Serious Infection, opportunistic infections and other infections of interest event","rao@ohdsi.org","Pending peer review","","Incidence of Serious Infection, opportunistic infections and other infections of interest event.","#Infection",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","81893",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",30,0,"All",FALSE,"All","All",3,1,"ConditionOccurrence",0,0,4,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1074,"[P] Serious Infection","Serious Infection","Serious Infection","rao@ohdsi.org","Pending peer review","","Incidence of Serious Infection.","#Infection",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","81893",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",90,"fixed duration relative to initial event","StartDate",30,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1075,"[P] FDA AESI Narcolepsy","FDA AESI Narcolepsy","Narcolepsy","rao@ohdsi.org","Pending peer review","","Narcolepsy","#AESI, ,#FDA, #Study, #Symposium, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1076,"[P] FDA AESI Anaphylaxis","FDA AESI Anaphylaxis","Anaphylaxis","rao@ohdsi.org","Pending peer review","","Anaphylaxis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1077,"[P] FDA AESI Anaphylaxis v2","FDA AESI Anaphylaxis v2","Anaphylaxis v2","rao@ohdsi.org","Pending peer review","","Anaphylaxis v2","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-10-09",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1078,"[P] FDA AESI Bells Palsy","FDA AESI Bells Palsy","Bells Palsy","rao@ohdsi.org","Pending peer review","","Bells Palsy","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1079,"[P] FDA AESI Encephalomyelitis","FDA AESI Encephalomyelitis","Encephalomyelitis","rao@ohdsi.org","Pending peer review","","Encephalomyelitis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1080,"[P] FDA AESI Guillain Barre Syndrome","FDA AESI Guillain Barre Syndrome","Guillain Barre Syndrome","rao@ohdsi.org","Pending peer review","","Guillain Barre Syndrome","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1081,"[P] FDA AESI Acute Myocardial Infarction or its complications","FDA AESI Acute Myocardial Infarction or its complications","Acute Myocardial Infarction including its complications","rao@ohdsi.org","Pending peer review","","Acute Myocardial Infarction","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-25",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1082,"[P] FDA AESI Myocarditis Pericarditis","FDA AESI Myocarditis Pericarditis","Myocarditis Pericarditis","rao@ohdsi.org","Pending peer review","","Myocarditis Pericarditis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1083,"[P] FDA AESI Immune Thrombocytopenia (ITP)","FDA AESI Immune Thrombocytopenia (ITP)","Immune Thrombocytopenia (ITP)","rao@ohdsi.org","Pending peer review","","Immune Thrombocytopenia (ITP)","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1084,"[P] FDA AESI Disseminated Intravascular Coagulation","FDA AESI Disseminated Intravascular Coagulation","Disseminated Intravascular Coagulation","rao@ohdsi.org","Pending peer review","","Disseminated Intravascular Coagulation","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1085,"[P] FDA AESI Appendicitis","FDA AESI Appendicitis","Appendicitis","rao@ohdsi.org","Pending peer review","","Appendicitis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1086,"[P] FDA AESI Transverse Myelitis","FDA AESI Transverse Myelitis","Transverse Myelitis","rao@ohdsi.org","Pending peer review","","Transverse Myelitis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1087,"[P] FDA AESI Hemorrhagic Stroke","FDA AESI Hemorrhagic Stroke","Hemorrhagic Stroke","rao@ohdsi.org","Pending peer review","","Hemorrhagic Stroke","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1088,"[P] FDA AESI Deep Vein Thrombosis (DVT)","FDA AESI Deep Vein Thrombosis (DVT)","Deep Vein Thrombosis (DVT)","rao@ohdsi.org","Pending peer review","","Deep Vein Thrombosis (DVT)","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1089,"[P] FDA AESI Non-hemorrhagic Stroke","FDA AESI Non-hemorrhagic Stroke","Non-hemorrhagic Stroke","rao@ohdsi.org","Pending peer review","","Non-hemorrhagic Stroke","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1090,"[P] FDA AESI Pulmonary Embolism","FDA AESI Pulmonary Embolism","Pulmonary Embolism","rao@ohdsi.org","Pending peer review","","Pulmonary Embolism","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1091,"[P] FDA AESI Thrombosis with Thrombocytopenia (TWT)","FDA AESI Thrombosis with Thrombocytopenia (TWT)","Thrombosis with Thrombocytopenia (TWT)","rao@ohdsi.org","Pending peer review","","Thrombosis with Thrombocytopenia (TWT)","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,2,"All",FALSE,"All","All",11,1,"ConditionOccurrence",0,0,16,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1093,"[P] Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib","Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib","Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) AAA repair (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1094,"[P] Lower Extremity Bypass - post op new Afib","Lower Extremity Bypass - post op new Afib","Lower Extremity Bypass - post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Lower Extremity Bypass (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation.","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1095,"[P] Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib","Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib","Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Carotid Endarterctomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1097,"[P] Esophagectomy, adults, inpt stay, no ED, post op new Afib","Esophagectomy, adults, inpt stay, no ED, post op new Afib","Esophagectomy, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Esophagectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1098,"[P] Pancreatectomy, adults, inpt stay, no ED, post op new Afib","Pancreatectomy, adults, inpt stay, no ED, post op new Afib","Pancreatectomy, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Pancreatectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1099,"[P] Colectomy, adults, inpt stay, no ED, post op new Afib","Colectomy, adults, inpt stay, no ED, post op new Afib","Colectomy, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Colectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1100,"[P] Cystectomy, adults, inpt stay, no ED, post op new Afib","Cystectomy, adults, inpt stay, no ED, post op new Afib","Cystectomy, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Cystectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1101,"[P] Nephrectomy, adults, inpt stay, no ED, post op new Afib","Nephrectomy, adults, inpt stay, no ED, post op new Afib","Nephrectomy, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Nephrectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1102,"[P] Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib","Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib","Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit)CABG (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1103,"[P] Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib","Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib","Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Aortic Or Mitral Repair or Replacement (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1104,"[P] RBC Transfusion (adult relevant, no auto 1yr clean window)","RBC Transfusion (adult relevant, no auto 1yr clean window)","RBC Transfusion (adult relevant, no auto 1yr clean window)","rao@ohdsi.org","Pending peer review","","RBC transfusion with no prior transfusion","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2023-09-25",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",0,0,2,1,0,0,0,0,0,,,0,,,,,,,1,,,,,,,,,,,,,,,,,,,, -1105,"[P] Clostridium difficile - first episode","Clostridium difficile - first episode","Clostridium difficile - first episode","rao@ohdsi.org","Pending peer review","","Clostridium difficile with no history of clostridium difficle","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","4307981",,"2023-09-25","2023-10-04",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Measurement",0,0,2,1,0,0,0,0,0,1,1,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1106,"[P] Non-Emergent Major Non Cardiac Surgery no prior Opioid","Non-Emergent Major Non Cardiac Surgery no prior Opioid","Non-Emergent Major Non Cardiac Surgery no prior Opioid","rao@ohdsi.org","Pending peer review","","Persons having any of major non cardiac surgery","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","","","2023-09-25","2023-10-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",35,1,"ProcedureOccurrence",0,0,38,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,,,,,,,, -1150,"Emergency room only or Emergency room and inpatient visits (0Pe, 0Era)","Emergency room only or Emergency room and inpatient visits (0Pe, 0Era)","Emergency room visits (0Pe, 0Era)","rao@ohdsi.org","Accepted","3.4.0","All events of Emergency Room visits or Emergency room or inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-10-04","2023-10-04",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,1,0,0,0,0,0,0,,,1,,1,,,,,,,,,,,,,,,,,,,,,,,,, -1151,"[P] Autism","Autism","Autism","rao@ohdsi.org","Pending peer review","","","#autism",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439776","","2023-10-05","2023-10-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1152,"[P] Deep Vein Thrombosis DVT 10","Deep Vein Thrombosis DVT 10","Deep Vein Thrombosis DVT","rao@ohdsi.org","Prediction","","All events of Deep Vein Thrombosis (DVT), indexed on a condition occurrence of Deep Vein Thrombosis (DVT). Requiring a clean window of 30 days, cohort exit is 1 day after start date.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4133004",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1153,"[P] Seizure 10","Seizure 10","Seizure","rao@ohdsi.org","Prediction","","First Seizure record in 42 days continues for 1 day","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","377091",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1154,"[P] Heart failure 10","Heart failure 10","Heart failure","rao@ohdsi.org","Prediction","","First Heart failure continues until observation end","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","316139",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1155,"[P] Non-hemorrhagic Stroke 10","Non-hemorrhagic Stroke 10","Non-hemorrhagic Stroke","rao@ohdsi.org","Prediction","","All events of Ischemic (Non-hemorrhagic) Stroke, indexed on a condition occurrence of Ischemic (Non-hemorrhagic), limited to events with overlapping inpatient visit with no such events in prior 365 days (clean window). Persons exit the cohort at the start date + 1 day.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","443454",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1156,"[P] Hemorrhagic stroke 10","Hemorrhagic stroke 10","Hemorrhagic stroke","rao@ohdsi.org","Prediction","","All events of Hemorrhagic stroke, indexed on a condition occurrence of Hemorrhagic stroke, limited to events with overlapping inpatient visit with no such events in prior 365 days (clean window). Persons exit the cohort at the start date + 1 day.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","439847",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,1,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1157,"[P] peripheral vascular disease 10","peripheral vascular disease 10","peripheral vascular disease","rao@ohdsi.org","Prediction","","First peripheral vascular disease continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","321052",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1158,"[P] Aspirin 10","Aspirin 10","Aspirin","rao@ohdsi.org","Prediction","","aspirin exposures w 0d prior obsv 30d gap","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1112807",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1159,"[P] Angina 10","Angina 10","Angina","rao@ohdsi.org","Prediction","","First Angina in 30 days continues for 1 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","77670",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",1,"fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1160,"[P] Atrial Fibrillation 10","Atrial Fibrillation 10","Atrial Fibrillation","rao@ohdsi.org","Prediction","","First Atrial Fibrillation continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","313217",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1161,"[P] Major depressive disorder with NO occurrence of certain psychiatric disorder 10","Major depressive disorder with NO occurrence of certain psychiatric disorder 10","Major depressive disorder with NO occurrence of certain psychiatric disorder","rao@ohdsi.org","Prediction","","Earliest occurrence of major depressive disorder indexed on diagnosis date requiring no occurrence anytime prior including day 0 of Bipolar disorder, Schizoaffective, Schizophrenia not including paraphrenia, Dementia or Psychotic disorder cohort exit is the end of continuous observation.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","440383",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",TRUE,"All","First",1,1,"ConditionOccurrence",0,0,6,1,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1162,"[P] Coronary artery disease (CAD) 10","Coronary artery disease (CAD) 10","Coronary artery disease (CAD)","rao@ohdsi.org","Prediction","","First coronary artery disease (CAD) continues until observation end","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","318443",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,0,1,,,,,,,1,,,,,,,,,,,,,,,,,,, -1163,"[P] Acute Kidney Injury 10","Acute Kidney Injury 10","Acute Kidney Injury","rao@ohdsi.org","Prediction","","All events of Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd,. Applying a washout period of 30 days between observed events excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior . patients exit the cohort 7 days post index.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","197320",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","EndDate",7,4,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,7,1,0,0,0,0,1,1,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -1164,"[P] Asthma 10","Asthma 10","Asthma","rao@ohdsi.org","Prediction","","First Asthma continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","317009",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1165,"[P] Alcoholism 10","Alcoholism 10","Alcoholism","rao@ohdsi.org","Prediction","","First record of Alcoholism until observation end","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4218106",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,1,,0,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -1166,"[P] Smoking 10","Smoking 10","Smoking","rao@ohdsi.org","Prediction","","First Smoking condition or observtion or procedure record continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4209423",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,1,,0,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -1167,"[P] sleep apnea 10","sleep apnea 10","sleep apnea","rao@ohdsi.org","Prediction","","First sleep apnea record continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","313459",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1168,"[P] skin ulcer 10","skin ulcer 10","skin ulcer","rao@ohdsi.org","Prediction","","First skin ulcer record in 365 days continues for 30 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4262920",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,1,"All",FALSE,"All","All",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,1,1,0,0,0,0,1,1,,1,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -1169,"[P] Chronic hepatitis 10","Chronic hepatitis 10","Chronic hepatitis","rao@ohdsi.org","Prediction","","First Chronic hepatitis continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4212540",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1170,"[P] hyperlipidemia 10","hyperlipidemia 10","hyperlipidemia","rao@ohdsi.org","Prediction","","First hyperlipidemia continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","432867",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1171,"[P] hypothyroidism 10","hypothyroidism 10","hypothyroidism","rao@ohdsi.org","Prediction","","First hypothyroidism continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","140673",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1172,"[P] Heart valve disorder 10","Heart valve disorder 10","Heart valve disorder","rao@ohdsi.org","Prediction","","First Heart valve disorder continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4281749",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1173,"[P] Low back pain 10","Low back pain 10","Low back pain","rao@ohdsi.org","Prediction","","First Low back pain continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","194133",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1174,"[P] neuropathy 10","neuropathy 10","neuropathy","rao@ohdsi.org","Prediction","","First neuropathy continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4301699",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1175,"[P] Psychotic disorder 10","Psychotic disorder 10","Psychotic disorder","rao@ohdsi.org","Prediction","","First Psychotic disorder continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","436073",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1176,"[P] Sepsis 10","Sepsis 10","Sepsis","rao@ohdsi.org","Prediction","","First Sepsis record in 180 days continues for 7 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","132797",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","EndDate",7,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,1,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1177,"[P] Acute Respiratory failure 10","Acute Respiratory failure 10","Acute Respiratory failure","rao@ohdsi.org","Prediction","","First Acute Respiratory failure record in 365 days continues for 14 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","319049",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,1,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1178,"[P] Gastroesophageal reflux disease 10","Gastroesophageal reflux disease 10","Gastroesophageal reflux disease","rao@ohdsi.org","Prediction","","First Gastroesophageal reflux disease continues until observation end","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","318800",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1179,"[P] obesity 10","obesity 10","obesity","rao@ohdsi.org","Prediction","","First obesity measurement or condition or observation continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","433736",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,3,0,0,0,0,0,0,1,1,0,1,,,,,,,,,,,,,,,,,,,,,,,,,, -1180,"[P] Inflammatory Bowel Disease 10","Inflammatory Bowel Disease 10","Inflammatory Bowel Disease","rao@ohdsi.org","Prediction","","First Inflammatory Bowel Disease continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","201606",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1181,"[P] STEROIDS 10","STEROIDS 10","STEROIDS","rao@ohdsi.org","Prediction","","STEROIDS record with 60 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1551099",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,60,0,,,, -1182,"[P] Opioids 10","Opioids 10","Opioids","rao@ohdsi.org","Prediction","","Opioids with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1174888",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1183,"[P] ANTIEPILEPTICS 10","ANTIEPILEPTICS 10","ANTIEPILEPTICS","rao@ohdsi.org","Prediction","","ANTIEPILEPTICS exposure with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","797399",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1184,"[P] Osteoarthritis 10","Osteoarthritis 10","Osteoarthritis","rao@ohdsi.org","Prediction","","First Osteoarthritis continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","80180",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1185,"[P] Osteoporosis 10","Osteoporosis 10","Osteoporosis","rao@ohdsi.org","Prediction","","First Osteoporosis continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","80502",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1186,"[P] Urinary tract infectious 10","Urinary tract infectious 10","Urinary tract infectious","rao@ohdsi.org","Prediction","","First Urinary tract infectious record in 30 days continues for 1 day","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","81902",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,1,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1187,"[P] acetaminophen exposure 10","acetaminophen exposure 10","acetaminophen exposure","rao@ohdsi.org","Prediction","","acetaminophen exposure with 30 day persistence window","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1125315",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1188,"[P] Anemia 10","Anemia 10","Anemia","rao@ohdsi.org","Prediction","","Anemia record or measurement continues for 21 days unless normal measurement","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4144746",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",365,"fixed duration relative to initial event","StartDate",21,3,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Measurement",0,0,4,1,0,0,0,0,0,1,1,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1189,"[P] Anxiety 10","Anxiety 10","Anxiety","rao@ohdsi.org","Prediction","","First Anxiety continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","441542",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,0,1,,,,,,,,,,,,,,,,,,,,,,,,,, -1190,"[P] HORMONAL CONTRACEPTIVES 10","HORMONAL CONTRACEPTIVES 10","HORMONAL CONTRACEPTIVES","rao@ohdsi.org","Prediction","","HORMONAL CONTRACEPTIVES with 30 day persistence window","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","21602473",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1191,"[P] Chronic kidney disease or end stage renal disease 10","Chronic kidney disease or end stage renal disease 10","Chronic kidney disease or end stage renal disease","rao@ohdsi.org","Prediction","","First chronic kidney disease or end stage renal disease continues until observation end","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","46271022",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",5,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,3,0,0,0,0,0,0,1,,0,1,,,,,,1,,,,,,,,,,,,,,,,,,,, -1192,"[P] Chronic obstructive pulmonary disease (COPD) 10","Chronic obstructive pulmonary disease (COPD) 10","Chronic obstructive pulmonary disease (COPD)","rao@ohdsi.org","Prediction","","First chronic obstructive pulmonary disease (COPD) continues until observation end","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","255573",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1193,"[P] Type 1 diabetes and no prior specific nonT1DM diabetes 10","Type 1 diabetes and no prior specific nonT1DM diabetes 10","Type 1 diabetes and no prior specific nonT1DM diabetes","rao@ohdsi.org","Prediction","","Earliest Type 1 diabetes with no prior type 2 or secondary diabetes continues until end of observation.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","201254",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1194,"[P] Type 2 Diabetes Mellitus with no type 1 or secondary DM 10","Type 2 Diabetes Mellitus with no type 1 or secondary DM 10","Type 2 Diabetes Mellitus with no type 1 or secondary DM","rao@ohdsi.org","Prediction","","Earliest Type 2 diabetes with no prior type 1 or secondary diabetes continues until end of observation.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","201820",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,5,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1195,"[P] Dyspnea 10","Dyspnea 10","Dyspnea","rao@ohdsi.org","Prediction","","All events of Dyspnea with no Dyspnea in prior 30 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","312437",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1196,"[P] Edema 10","Edema 10","Edema","rao@ohdsi.org","Prediction","","All events of Edema with no Edemain prior 30 days and cohort ends 3 days after index.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","433595",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","StartDate",3,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,1,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1197,"[P] Acute gastrointestinal bleeding 10","Acute gastrointestinal bleeding 10","Acute gastrointestinal bleeding","rao@ohdsi.org","Prediction","","First gastrointestinal bleed in 45 days continues for 7 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","192671",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","StartDate",7,1,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,1,1,0,0,0,0,1,1,,1,,,,,,,1,,,,,,,,,,,,,,,,,,,, -1198,"[P] Hypertension 10","Hypertension 10","Hypertension","rao@ohdsi.org","Prediction","","First Hypertension continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","316866",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1199,"[P] Pneumonia 10","Pneumonia 10","Pneumonia","rao@ohdsi.org","Prediction","","First Pneumonia record in 180 days continues until for 30 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","255848",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,1,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1200,"[P] Rheumatoid Arthritis 10","Rheumatoid Arthritis 10","Rheumatoid Arthritis","rao@ohdsi.org","Prediction","","First Rheumatoid Arthritis record continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","80809",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,1,,0,1,,,,,,,,,,,,,,,,,,,,,,,,,, -1201,"[P] Antibiotics Aminoglycosides 10","Antibiotics Aminoglycosides 10","Antibiotics Aminoglycosides","rao@ohdsi.org","Prediction","","any Antibiotics Aminoglycosides with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","915981",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1202,"[P] Antibiotics Carbapenems 10","Antibiotics Carbapenems 10","Antibiotics Carbapenems","rao@ohdsi.org","Prediction","","any Antibiotics Carbapenems with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1709170",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1203,"[P] Antibiotics Cephalosporins 10","Antibiotics Cephalosporins 10","Antibiotics Cephalosporins","rao@ohdsi.org","Prediction","","any Antibiotics Cephalosporins with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1786621",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1204,"[P] Antibiotics Fluoroquinolones 10","Antibiotics Fluoroquinolones 10","Antibiotics Fluoroquinolones","rao@ohdsi.org","Prediction","","any Antibiotics Fluoroquinolones with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1797513",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1205,"[P] Antibiotics Glycopeptides and lipoglycopeptides 10","Antibiotics Glycopeptides and lipoglycopeptides 10","Antibiotics Glycopeptides and lipoglycopeptides","rao@ohdsi.org","Prediction","","any Antibiotics Glycopeptides and lipoglycopeptides with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1707687",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1206,"[P] Antibiotics Macrolides 10","Antibiotics Macrolides 10","Antibiotics Macrolides","rao@ohdsi.org","Prediction","","any Antibiotics Macrolides with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1734104",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1207,"[P] Antibiotics Monobactams 10","Antibiotics Monobactams 10","Antibiotics Monobactams","rao@ohdsi.org","Prediction","","any Antibiotics Monobactams with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1715117",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1208,"[P] Antibiotics Oxazolidinones 10","Antibiotics Oxazolidinones 10","Antibiotics Oxazolidinones","rao@ohdsi.org","Prediction","","any Antibiotics Oxazolidinones with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1736887",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1209,"[P] Antibiotics Penicillins 10","Antibiotics Penicillins 10","Antibiotics Penicillins","rao@ohdsi.org","Prediction","","any Antibiotics Penicillins with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1713332",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1210,"[P] Antibiotics Polypeptides 10","Antibiotics Polypeptides 10","Antibiotics Polypeptides","rao@ohdsi.org","Prediction","","any Antibiotics Polypeptides with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","948582",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,30,0,,,, -1211,"[P] Antibiotics Rifamycins 10","Antibiotics Rifamycins 10","Antibiotics Rifamycins","rao@ohdsi.org","Prediction","","any Antibiotics Rifamycins with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1735947",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,1,30,0,,,, -1212,"[P] Antibiotics Sulfonamides 10","Antibiotics Sulfonamides 10","Antibiotics Sulfonamides","rao@ohdsi.org","Prediction","","any Antibiotics Sulfonamides with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1836430",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,2,30,0,,,, -1213,"[P] Antibiotics Streptogramins 10","Antibiotics Streptogramins 10","Antibiotics Streptogramins","rao@ohdsi.org","Prediction","","any Antibiotics Streptogramins with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1789517",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,3,30,0,,,, -1214,"[P] Antibiotics Tetracyclines 10","Antibiotics Tetracyclines 10","Antibiotics Tetracyclines","rao@ohdsi.org","Prediction","","any Antibiotics Tetracyclines with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1738521",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,4,30,0,,,, -1215,"[P] Any cancer (excl. prostate cancer and benign cancer) 10","Any cancer (excl. prostate cancer and benign cancer) 10","Any cancer (excl. prostate cancer and benign cancer)","rao@ohdsi.org","Prediction","","First cancer (excluding prostate and benign) continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","438112",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",4,3,"ConditionOccurrence, Measurement, Observation",0,0,1,0,0,0,0,0,0,1,1,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,1 -1217,"[P] Platinum based chemotherapy regimens","Platinum based chemotherapy regimens","Platinum based chemotherapy regimens","rao@ohdsi.org","Pending peer review","","Events of platinum based chemotherapy with 60 days of surveillance because most cycles of every 4 weeks","",1,"'Gowtham A. Rao'","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-10-09","2023-11-30",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,60,0,,,, -1219,"[P] Hyperlipidemia","Hyperlipidemia","Hyperlipidemia","ryan@ohdsi.org","Pending peer review","","Earliest event of hyperlipidemia","",1,"Patrick Ryan","","'OHDSI'","","","432867","","2023-10-16","2023-11-29",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1220,"[P] Hypoparathyroidism","Hypoparathyroidism","Hypoparathyroidism","ryan@ohdsi.org","Pending peer review","","Earliest event of hypoparathyroidism","",1,"Patrick Ryan","","'OHDSI'","","","140362","","2023-10-16","2023-10-16",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1221,"[P] Osteoporosis","Osteoporosis","Osteoporosis","ryan@ohdsi.org","Pending peer review","","Earliest event of Osteoporosis","",1,"Patrick Ryan","","'OHDSI'","","","80502","","2023-10-16","2023-10-16",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1222,"[P] Viral hepatitis type A","Viral hepatitis type A","Viral Hepatitis A","ryan@ohdsi.org","Pending peer review","","Earliest event of Viral Hepatitis A","",1,"Patrick Ryan","","'OHDSI'","","","4223947","","2023-10-16","2023-10-16",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1223,"[P] Birdshot chorioretinitis","Birdshot chorioretinitis","Birdshot chorioretinitis","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-17","2023-10-17",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Measurement",0,0,10,1,0,0,0,0,0,1,1,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1224,"[P] CMV Anterior Uveitis (sensitivity analysis)","CMV Anterior Uveitis (sensitivity analysis)","CMV Anterior Uveitis sensitivite","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-18","2023-10-19",,"",,0,,,"ERA",0,"end of continuous observation",,,6,"First",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,11,1,0,0,0,0,0,1,1,0,1,,,,,,,,,,,,,,,,,,,,,,,,,, -1225,"[P] VZV Anterior Uveitis (SUN)","VZV Anterior Uveitis (SUN)","VZV Anterior Uveitis (SUN)","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-19","2023-10-19",,"",,0,,,"ERA",0,"end of continuous observation",,,7,"First",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,14,1,1,0,0,0,0,1,1,0,1,,,,,,,,1,,,,,,,,,,,,,,,,,, -1226,"[P] VZV Anterior Uveitis (SUN) sensitive","VZV Anterior Uveitis (SUN) sensitive","VZV Anterior Uveitis (SUN) sensitive","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-19","2023-10-19",,"",,0,,,"ERA",0,"end of continuous observation",,,7,"First",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,14,1,1,0,0,0,0,1,1,0,1,,,,,,,,1,,,,,,,,,,,,,,,,,, -1227,"[P] HSV Anterior Uveitis (SUN)","HSV Anterior Uveitis (SUN)","HSV Anterior Uveitis (SUN)","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-19","2023-10-19",,"",,0,,,"ERA",0,"end of continuous observation",,,8,"All",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,15,1,1,0,0,0,0,1,1,0,1,,,,,,,,1,,,,,,,,,,,,,,,,,, -1228,"[P] HSV Anterior Uveitis (SUN) sensitive","HSV Anterior Uveitis (SUN) sensitive","HSV Anterior Uveitis (SUN) sensitive","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-19","2023-10-19",,"",,0,,,"ERA",0,"end of continuous observation",,,8,"All",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,15,1,1,0,0,0,0,1,1,0,1,,,,,,,,1,,,,,,,,,,,,,,,,,, -1229,"[P] Behcet Uveitis (SUN)","Behcet Uveitis (SUN)","Behcet Uveitis (SUN)","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-19","2023-10-19",,"",,0,,,"ERA",0,"end of continuous observation",,,5,"All",FALSE,"All","First",7,2,"ConditionOccurrence, Measurement",0,0,12,1,0,0,0,0,0,1,1,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1231,"[P] Sickle Cell Crisis","Sickle Cell Crisis","Sickle Cell Crisis","rao@ohdsi.org","Pending peer review","","First occurrence of Sickle Cell Crisis","#epi1073",1,"'Gowtham a rao'","'0000-0002-4949-7236'","'OHDSI'","","","4216915","","2023-10-19","2023-10-19",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",3,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1244,"[P] Non Platinum chemotherapy regimen","Non Platinum chemotherapy regimen","Non Platinum chemotherapy regimen","rao@ohdsi.org","Pending peer review","","Events of non platinum based chemotherapy with 60 days of surveillance because most cycles of every 4 weeks","",1,"'Gowtham A. Rao'","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-11-30","2023-11-30",,"",,0,,,"ERA",0,"end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,,,1,,,,1,,,,,,,,,,,,,,,,,0,60,0,,,, -1261,"[P] Acute Typical Pneumonia","Acute Typical Pneumonia","Acute Typical Pneumonia","rao@ohdsi.org","Pending peer review","","Acute Typical Pneumonia","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255848, 4318404","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1262,"[P] Asthma or Chronic obstructive pulmonary disease (COPD)","Asthma or Chronic obstructive pulmonary disease (COPD)","Asthma or Chronic obstructive pulmonary disease (COPD)","rao@ohdsi.org","Pending peer review","","Asthma or Chronic obstructive pulmonary disease (COPD)","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255573, 317009","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1263,"[P] Chronic obstructive pulmonary disease (COPD) without asthma","Chronic obstructive pulmonary disease (COPD) without asthma","Chronic obstructive pulmonary disease (COPD) without asthma","rao@ohdsi.org","Pending peer review","","Chronic obstructive pulmonary disease (COPD) without asthma","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255573","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",3,2,"ConditionOccurrence, DrugExposure",0,0,4,1,1,0,0,0,0,1,,0,,,,1,1,,,,,,,,,,,,,,,,,,,,,, -1264,"[P] Pneumonitis and lung infections","Pneumonitis and lung infections","Pneumonitis and lung infections","rao@ohdsi.org","Pending peer review","","Pneumonitis and lung infections","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","253506, 255848",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1265,"[P] Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3)","Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3)","Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3)","rao@ohdsi.org","Pending peer review","","Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3)","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","0","4322024","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,2,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1266,"[P] Non-small cell lung cancer (NSCLC) for first time using ICD0","Non-small cell lung cancer (NSCLC) for first time using ICD0","Non-small cell lung cancer (NSCLC)","rao@ohdsi.org","Pending peer review","","Non-small cell lung cancer (NSCLC) for first time using ICD0","",1,"'Asieh Golozar', 'Vlad Korsik'","'0000-0002-4243-155X'","","","0","439676, 37311061","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1267,"[P] Lung cancer using ICD0","Lung cancer using ICD0","Lung cancer","rao@ohdsi.org","Pending peer review","","Lung cancer using ICD0","",1,"'Asieh Golozar'","'0000-0002-4243-155X'","","","0","439676, 37311061","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,1,,0,,,,,,,,1,,,,,,,,,,,,,,,,,,, -1268,"[P] Lung Resection, adults, inpt stay, no ED, post op new Afib","Lung Resection, adults, inpt stay, no ED, post op new Afib","Lung Resection, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Lung Resection - post op new Afib (any)","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","0","","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,1,1,0,0,1,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1269,"[P] Pulmonary fibrosis","Pulmonary fibrosis","Pulmonary fibrosis","rao@ohdsi.org","Pending peer review","","Pulmonary fibrosis","#Condition, #respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4197819","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1270,"[P] History of Bladder cancer","History of Bladder cancer","Bladder cancer including history","rao@ohdsi.org","Pending","","History of Bladder cancer","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","197508","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1271,"[P] Chronic obstructive pulmonary disease (COPD)","Chronic obstructive pulmonary disease (COPD)","Chronic obstructive pulmonary disease (COPD)","rao@ohdsi.org","Pending peer review","","Chronic obstructive pulmonary disease (COPD)","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255573","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1272,"[P] Chronic Interstitial lung disease (ILD)","Chronic Interstitial lung disease (ILD)","Chronic Interstitial lung disease (ILD) not including Acute Respiratory Distress Syndrome","rao@ohdsi.org","Pending peer review","","Chronic Interstitial lung disease (ILD)","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4119786","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1273,"[P] Lung Nodule","Lung Nodule","Lung Nodule","rao@ohdsi.org","Pending peer review","","Lung Nodule","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1274,"[P] Lung Nodule - solitary","Lung Nodule - solitary","Lung Nodule - solitary","rao@ohdsi.org","Pending peer review","","Lung Nodule - solitary","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719,4142875","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",730,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1275,"[P] Lung Nodule - multiple","Lung Nodule - multiple","Lung Nodule - multiple","rao@ohdsi.org","Pending peer review","","Lung Nodule - multiple","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719,40482871","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",730,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1276,"[P] Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)","Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)","Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)","rao@ohdsi.org","Pending peer review","","Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1277,"[P] Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis)","Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis)","Lung Lesion that is not acute, necrotic, atlectatic, abscess, fibrosis","rao@ohdsi.org","Pending peer review","","Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis)","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4116778,37206719","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1278,"[P] Non Small Cell Lung Cancer (Stage 3)","Non Small Cell Lung Cancer (Stage 3)","Stage 3 Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC","rao@ohdsi.org","Pending peer review","","Non Small Cell Lung Cancer (Stage 3)","#respiratory, #lung",1,"'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,15,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,17,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1279,"[P] Non Small Cell Lung Cancer","Non Small Cell Lung Cancer","Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC","rao@ohdsi.org","Pending peer review","","Non Small Cell Lung Cancer","#respiratory, #lung",1,"'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,4,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,8,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1280,"[P] Small Cell Lung Cancer","Small Cell Lung Cancer","Small Cell Lung Cancer","rao@ohdsi.org","Pending peer review","","Small Cell Lung Cancer","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"All",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1281,"[P] Primary Lung Cancer","Primary Lung Cancer","Primary Lung Cancer, indexed on lung abnormaility","rao@ohdsi.org","Pending peer review","","Primary Lung Cancer","#respiratory, #lung",1,"'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1282,"[P] Hoarseness","Hoarseness","Hoarseness","rao@ohdsi.org","Pending peer review","","Hoarseness","#Symptoms, #respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","312437, 4041664",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1283,"[P] Bone Pain","Bone Pain","Bone Pain","rao@ohdsi.org","Pending peer review","","Bone Pain","#Symptom",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4129418",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,3,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1284,"[P] Weight loss","Weight loss","Weight loss","rao@ohdsi.org","Pending peer review","","Weight loss","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4177176,435928",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1285,"[P] Acute bronchitis","Acute bronchitis","Acute Bronchitis","rao@ohdsi.org","Pending peer review","","Acute bronchitis","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","256451,260139",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"fixed duration relative to initial event","StartDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1286,"[P] Non Small Cell Lung Cancer (Stage 3) without second diagnosis","Non Small Cell Lung Cancer (Stage 3) without second diagnosis","Stage 3 Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC","rao@ohdsi.org","Pending peer review","","Non Small Cell Lung Cancer (Stage 3) without second diagnosis","#respiratory, #lung",1,"'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,14,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,17,1,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1287,"[P] Intestinal obstruction - colorectal specific","Intestinal obstruction - colorectal specific","Intestinal obstruction - colorectal specific","rao@ohdsi.org","Pending peer review","","Earliest occurence of Intestinal obstruction - colorectal specific","",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","193518","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1288,"[P] Intraabdominal abscess - narrow for colorectal cancer","Intraabdominal abscess - narrow for colorectal cancer","Intraabdominal abscess - narrow for colorectal cancer","rao@ohdsi.org","Pending peer review","","Earliest occurence of Intraabdominal abscess - narrow for colorectal cancer","",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","193518","","2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,, -1289,"[P] Major Non Cardiac Surgery, adults","Major Non Cardiac Surgery, adults","Major Non Cardiac Surgery, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",35,1,"ProcedureOccurrence",0,0,35,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,,,,,,,, -1290,"[P] Abdominal Aortic Aneurysm repair, adults","Abdominal Aortic Aneurysm repair, adults","Abdominal Aortic Aneurysm repair, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1291,"[P] Lower Extremity Bypass, adults","Lower Extremity Bypass, adults","Lower Extremity Bypass, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1292,"[P] Carotid Endarterectomy, adults","Carotid Endarterectomy, adults","Carotid Endarterectomy, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1293,"[P] Lung Resection, adults","Lung Resection, adults","Lung Resection, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1294,"[P] Esophagectomy, adults","Esophagectomy, adults","Esophagectomy, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1295,"[P] Pancreatectomy, adults","Pancreatectomy, adults","Pancreatectomy, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1296,"[P] Colectomy, adults","Colectomy, adults","Colectomy, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1297,"[P] Cystectomy, adults","Cystectomy, adults","Cystectomy, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1298,"[P] Nephrectomy, adults","Nephrectomy, adults","Nephrectomy, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1299,"[P] Coronary Artery Bypass Graft, adults","Coronary Artery Bypass Graft, adults","Coronary Artery Bypass Graft, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1300,"[P] Cardiac Valve Surgery, adults","Cardiac Valve Surgery, adults","Cardiac Valve Surgery, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1301,"[P] Acute Urinary tract infections UTI events","Acute Urinary tract infections UTI events","Acute Urinary tract infections UTI","rao@ohdsi.org","Pending peer review","","all events of acute urinary tract infection","",1,"Evan Minty","0000-0003-4631-9992'","","","","81902","","2024-01-05","2024-01-05",,"",,0,,,"ERA",1,"fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1303,"[P] Acute Heart failure from legend","Acute Heart failure from legend","Acute Heart failure","rao@ohdsi.org","Pending","","The first condition record of heart failure, which is followed by at least 1 heart failure condition record in the following year","",1,"'Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","78232, 80180","https://forums.ohdsi.org/t/17895","2024-01-05","2024-01-05",,"","modified from 934 to support HowOften study.",0,,,"ERA",1,"fixed duration relative to initial event","StartDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,1,1,0,0,0,0,0,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,, -1304,"[P] Major Non Cardiac Surgery, adults, post op new Afib","Major Non Cardiac Surgery, adults, post op new Afib","Major Non Cardiac Surgery, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",35,1,"ProcedureOccurrence",0,0,36,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,,,,,,,, -1305,"[P] AAA repair, adults, post op new Afib","AAA repair, adults, post op new Afib","AAA repair, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1306,"[P] Lower Extremity Bypass, adults, post op new Afib","Lower Extremity Bypass, adults, post op new Afib","Lower Extremity Bypass, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1307,"[P] Carotid Endarterectomy, adults, post op new Afib","Carotid Endarterectomy, adults, post op new Afib","Carotid Endarterectomy, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1308,"[P] Lung Resection, adults, post op new Afib","Lung Resection, adults, post op new Afib","Lung Resection, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1309,"[P] Esophagectomy, adults, post op new Afib","Esophagectomy, adults, post op new Afib","Esophagectomy, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1310,"[P] Pancreatectomy, adults, post op new Afib","Pancreatectomy, adults, post op new Afib","Pancreatectomy, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1311,"[P] Colectomy, adults, post op new Afib","Colectomy, adults, post op new Afib","Colectomy, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1312,"[P] Cystectomy, adults, post op new Afib","Cystectomy, adults, post op new Afib","Cystectomy, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1313,"[P] Nephrectomy, adults, post op new Afib","Nephrectomy, adults, post op new Afib","Nephrectomy, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1314,"[P] Coronary Artery Bypass Graft, adults, post op new Afib","Coronary Artery Bypass Graft, adults, post op new Afib","Coronary Artery Bypass Graft, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, -1315,"[P] Cardiac Valve Surgery, adults, post op new Afib","Cardiac Valve Surgery, adults, post op new Afib","Cardiac Valve Surgery, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA",0,"end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,1,1,0,0,0,0,,,0,,,,,,,1,,1,,,,,,,,,,,1,,,,,,, +"cohortId","cohortName","atlasId","description","createdDate","modifiedDate","librarian","cohortNameFormatted","lastModifiedBy","cohortNameLong","status","addedVersion","logicDescription","hashTag","contributors","contributorOrcIds","contributorOrganizations","peerReviewers","peerReviewerOrcIds","recommendedReferentConceptIds","ohdsiForumPost","replaces","notes","cohortNameAtlas","recommendedEraPersistenceDurations","recommendedEraCollapseDurations","recommendSubsetOperators","id","name" +2,"[W] COVID-19 diagnosis or SARS-CoV-2 test (1pos)",2,"cohortNameLong : COVID-19 diagnosis or SARS-CoV-2 test (1pos); +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2021-09-22","2023-09-19","rao@ohdsi.org","COVID-19 diagnosis or SARS-CoV-2 test (1pos)",,"COVID-19 diagnosis or SARS-CoV-2 test (1pos)","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","439676, 37311061","","",,,,,,2,2 +3,"[P] Cough or Sputum",3,"cohortNameLong : Cough or Sputum; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of cough or sputum finding; +hashTag : #Symptoms, #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 254761; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-22","2023-09-28","rao@ohdsi.org","Cough or Sputum",,"Cough or Sputum","Pending peer review","","All events of cough or sputum finding","#Symptoms, #respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254761","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,3,3 +4,"[P] Diarrhea",4,"cohortNameLong : Diarrhea; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of diarrhea including Functional Diarrhea; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 196523; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Diarrhea",,"Diarrhea","Pending peer review","","All events of diarrhea including Functional Diarrhea","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196523","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,4,4 +5,"[P] Dyspnea",5,"cohortNameLong : Dyspnea; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of dyspnea including difficulty breathing or abnormal breathing; +hashTag : #Symptoms, #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 312437, 4041664; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-28","rao@ohdsi.org","Dyspnea",,"Dyspnea","Pending peer review","","All events of dyspnea including difficulty breathing or abnormal breathing","#Symptoms, #respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312437, 4041664","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,5,5 +6,"[P] Fever",6,"cohortNameLong : Fever; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of fever or elevated temperature measurement; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 437663, 4178904; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Fever",,"Fever","Pending peer review","","All events of fever or elevated temperature measurement","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437663, 4178904","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,6,6 +7,"[P] Headache or Headache disorder",7,"cohortNameLong : Headache or Headache disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Headache or headache disorder; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 378253; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Headache or Headache disorder",,"Headache or Headache disorder","Pending peer review","","All events of Headache or headache disorder","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378253","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,7,7 +8,"[P] Altered smell or taste including Anosmia, Hyposmia or Dysgeusia",8,"cohortNameLong : Altered smell or taste including Anosmia, Hyposmia or Dysgeusia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Altered smell or taste including Anosmia, Hyposmia or Dysgeusia; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 43530714; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Altered smell or taste including Anosmia, Hyposmia or Dysgeusia",,"Altered smell or taste including Anosmia, Hyposmia or Dysgeusia","Pending peer review","","Altered smell or taste including Anosmia, Hyposmia or Dysgeusia","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","43530714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,8,8 +9,"[P] Sore throat",9,"cohortNameLong : Sore throat; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Sore throat; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 25297, 4226263; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Sore throat",,"Sore throat","Pending peer review","","All events of Sore throat","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","25297, 4226263","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,9,9 +10,"[P] Nausea or Vomiting",10,"cohortNameLong : Nausea or Vomiting; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Nausea or vomiting; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 27674, 4101344; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Nausea or Vomiting",,"Nausea or Vomiting","Pending peer review","","All events of Nausea or vomiting","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27674, 4101344","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,10,10 +11,"[P] Malaise and or fatigue",11,"cohortNameLong : Malaise and or fatigue; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Malaise and or fatigue; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439926, 4272240; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Malaise and or fatigue",,"Malaise and or fatigue","Pending peer review","","All events of Malaise and or fatigue","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439926, 4272240","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,11,11 +12,"[P] Rhinitis or common cold or Sinusitis",12,"cohortNameLong : Rhinitis or common cold or Sinusitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Rhinitis or common cold; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257007, 4320791; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Rhinitis or common cold or Sinusitis",,"Rhinitis or common cold or Sinusitis","Pending peer review","","All events of Rhinitis or common cold","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 4320791","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,12,12 +13,"[P] Myalgia (not explained by injury, ischemia or systemic inflammation)",13,"cohortNameLong : Myalgia (not explained by injury, ischemia or systemic inflammation); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Myalgia. Exclude persons with secondary causes of myalgia explained by injury, ischemia or chronic systemic inflammation; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 442752, 4150129; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Myalgia (not explained by injury, ischemia or systemic inflammation)",,"Myalgia (not explained by injury, ischemia or systemic inflammation)","Pending peer review","","All events of Myalgia. Exclude persons with secondary causes of myalgia explained by injury, ischemia or chronic systemic inflammation","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442752, 4150129","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,13,13 +14,"[P] Myalgia",14,"cohortNameLong : Myalgia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Myalgia; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 442752, 4150129; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Myalgia",,"Myalgia","Pending peer review","","All events of Myalgia","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442752, 4150129","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,14,14 +15,"[P][R] Exposure to viral disease ",15,"cohortNameLong : Exposure to viral disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Exposure to viral disease. Persons exit on cohort end date; +hashTag : #Referent, #Observation; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 37016200; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Exposure to viral disease",,"Exposure to viral disease","Pending peer review","","all events of Exposure to viral disease. Persons exit on cohort end date","#Referent, #Observation","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37016200","","",,,,,,15,15 +16,"[W] Exposure to SARS-Cov 2 and coronavirus",16,"cohortNameLong : Exposure to SARS-Cov 2 and coronavirus; +librarian : rao@ohdsi.org; +status : ; +addedVersion : ; +logicDescription : ; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Exposure to SARS-Cov 2 and coronavirus",,"Exposure to SARS-Cov 2 and coronavirus","","","","","","","","","","","","",,,,,,16,16 +17,"[P][R] Exposure to SARS-CoV-2 ",17,"cohortNameLong : Exposure to SARS-CoV-2; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Exposure to SARS-CoV-2. Persons exit on cohort end date; +hashTag : #Referent, #Observation; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 37311059; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Exposure to SARS-CoV-2",,"Exposure to SARS-CoV-2","Pending peer review","","all events of Exposure to SARS-CoV-2. Persons exit on cohort end date","#Referent, #Observation","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37311059","","",,,,,,17,17 +18,"[P][R] Multisystem inflammatory syndrome (MIS) ",18,"cohortNameLong : Multisystem inflammatory syndrome (MIS); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Multisystem inflammatory syndrome (MIS). Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 703578; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Multisystem inflammatory syndrome (MIS)",,"Multisystem inflammatory syndrome (MIS)","Pending peer review","","all events of Multisystem inflammatory syndrome (MIS). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","703578","","",,,,,,18,18 +20,"[P] Bronchitis or Bronchiolitis",20,"cohortNameLong : Bronchitis or Bronchiolitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Bronchitis; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 256451, 260139; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Bronchitis or Bronchiolitis",,"Bronchitis or Bronchiolitis","Pending peer review","","All events of Bronchitis","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","256451, 260139","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,20,20 +21,"[P] Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure",21,"cohortNameLong : Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 319049; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure",,"Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure","Pending peer review","","All events of Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure","","","","","","","319049","","",,,,,,21,21 +22,"[W] SARS-CoV-2 testing",22,"cohortNameLong : SARS-CoV-2 testing; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","SARS-CoV-2 testing",,"SARS-CoV-2 testing","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,22,22 +23,"Inpatient Hospitalization (1Pe, 0Era)",23,"cohortNameLong : Inpatient Hospitalization (1Pe, 0Era); +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.4.0; +logicDescription : All events of Inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process; +hashTag : #standard, #Visits; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Inpatient Hospitalization (1Pe, 0Era)",,"Inpatient Hospitalization (1Pe, 0Era)","Accepted","3.4.0","All events of Inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,23,23 +24,"Emergency room visits (0Pe, 0Era)",24,"cohortNameLong : Emergency room visits (0Pe, 0Era); +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.4.0; +logicDescription : All events of Emergency Room visits. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process; +hashTag : #standard, #Visits; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Emergency room visits (0Pe, 0Era)",,"Emergency room visits (0Pe, 0Era)","Accepted","3.4.0","All events of Emergency Room visits. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,24,24 +25,"All cause mortality",25,"cohortNameLong : All cause mortality; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : 3.4.0; +logicDescription : Earliest observation of any death; +hashTag : #standard; +contributors : Gowtham A Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","All cause mortality",,"All cause mortality","Pending peer review","3.4.0","Earliest observation of any death","#standard","Gowtham A Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,25,25 +27,"[P] Asthma without COPD",27,"cohortNameLong : Asthma without COPD; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest of either asthma diagnosis or therapy for asthma with a history of another asthma therapy more than 180 days before. The person should not have a diagnosis or treatment for COPD in past; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 317009; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Asthma without COPD",,"Asthma without COPD","Pending peer review","","Earliest of either asthma diagnosis or therapy for asthma with a history of another asthma therapy more than 180 days before. The person should not have a diagnosis or treatment for COPD in past","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317009","","",,,,,,27,27 +29,"[W] Autoimmune condition (FP)",29,"cohortNameLong : Autoimmune condition (FP); +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 76685, 80809, 81893, 81931, 134442, 134618, 135215, 140168, 194992, 199856, 201254, 201606, 254443, 257628, 374919, 432295, 438688, 443394, 4137275, 4232076; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Autoimmune condition (FP)",,"Autoimmune condition (FP)","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","","","","","","","76685, 80809, 81893, 81931, 134442, 134618, 135215, 140168, 194992, 199856, 201254, 201606, 254443, 257628, 374919, 432295, 438688, 443394, 4137275, 4232076","","",,,,,,29,29 +30,"[P] Tuberculosis with treatment using anti tubercular drug",30,"cohortNameLong : Tuberculosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of tuberculosis with at least 3 different drugs for tuberculosis at anytime on or after diagnosis; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 253954, 434557; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Tuberculosis with treatment using anti tubercular drug",,"Tuberculosis","Pending peer review","","All events of tuberculosis with at least 3 different drugs for tuberculosis at anytime on or after diagnosis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","253954, 434557","","",,,,,,30,30 +31,"[P] Malignant neoplasm excluding non-melanoma skin cancer",31,"cohortNameLong : Malignant neoplasm excluding non-melanoma skin cancer; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events with a malignant neoplastic disease or history of malignant neoplastic disease; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137809, 443392; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Malignant neoplasm excluding non-melanoma skin cancer",,"Malignant neoplasm excluding non-melanoma skin cancer","Pending peer review","","All events with a malignant neoplastic disease or history of malignant neoplastic disease","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137809, 443392","","",,,,,,31,31 +32,"[P] Obesity",32,"cohortNameLong : Obesity; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Persons with obesity diagnosis or a body weight measurement > 120 kg or 265 lbs; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433736; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Obesity",,"Obesity","Pending peer review","","Persons with obesity diagnosis or a body weight measurement > 120 kg or 265 lbs","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433736","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,32,32 +33,"[P] Dementia",33,"cohortNameLong : Dementia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Persons with the diagnosis of dementia, includes history of Dementia; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4182210; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Dementia",,"Dementia","Pending peer review","","Persons with the diagnosis of dementia, includes history of Dementia","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4182210","","",,,,,,33,33 +34,"[P] Hypertensive disorder or hypertensive complications",34,"cohortNameLong : Hypertensive disorder or hypertensive complications; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Hypertensive disorder diagnosis or complication of hypertension; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 312648, 4028741; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Hypertensive disorder or hypertensive complications",,"Hypertensive disorder or hypertensive complications","Pending peer review","","Hypertensive disorder diagnosis or complication of hypertension","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312648, 4028741","","",,,,,,34,34 +35,"[W] Chronic kidney disease (FP)",35,"cohortNameLong : Chronic kidney disease (FP); +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192359, 193782; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Chronic kidney disease (FP)",,"Chronic kidney disease (FP)","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","","","","","","","192359, 193782","","",,,,,,35,35 +36,"[P] Human immunodeficiency virus (not HIV2) infection",36,"cohortNameLong : Human immunodeficiency virus (not HIV2) infection; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest diagnosis of HIV (not HIV2) with another diagnosis in future or a treatment for HIV; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439727; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Human immunodeficiency virus (not HIV2) infection",,"Human immunodeficiency virus (not HIV2) infection","Pending peer review","","Earliest diagnosis of HIV (not HIV2) with another diagnosis in future or a treatment for HIV","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439727","","",,,,,,36,36 +37,"[P] Hepatitis C infection, carrier status or antibody positivity",37,"cohortNameLong : Hepatitis C infection, carrier status or antibody positivity; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest diagnosis of Hepatitis C; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197494, 198964; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Hepatitis C infection, carrier status or antibody positivity",,"Hepatitis C infection, carrier status or antibody positivity","Pending peer review","","Earliest diagnosis of Hepatitis C","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197494, 198964","","",,,,,,37,37 +38,"[P] Heart disease",38,"cohortNameLong : Heart disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest of any Heart disease or arteriosclerosis of coronary artery bypass graft; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313217, 44784217; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Heart disease",,"Heart disease","Pending peer review","","Earliest of any Heart disease or arteriosclerosis of coronary artery bypass graft","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 44784217","","",,,,,,38,38 +39,"[W] End stage renal disease (FP)",39,"cohortNameLong : End stage renal disease (FP); +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 193782; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","End stage renal disease (FP)",,"End stage renal disease (FP)","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","","","","","","","193782","","",,,,,,39,39 +40,"[P] Diabetes Mellitus Type 2 or history of diabetes",40,"cohortNameLong : Diabetes Mellitus Type 2 or history of diabetes; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest of any Type 2 Diabetes Mellitus or History of Diabetes; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201820, 201826; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Diabetes Mellitus Type 2 or history of diabetes",,"Diabetes Mellitus Type 2 or history of diabetes","Pending peer review","","Earliest of any Type 2 Diabetes Mellitus or History of Diabetes","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201820, 201826","","",,,,,,40,40 +41,"[W] Chronic kidney disease broad (FP)",41,"cohortNameLong : Chronic kidney disease broad (FP); +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192359, 193782; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","Chronic kidney disease broad (FP)",,"Chronic kidney disease broad (FP)","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","","","","","","","192359, 193782","","",,,,,,41,41 +42,"[W] End stage renal disease broad (FP)",42,"cohortNameLong : End stage renal disease broad (FP); +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 193782; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-19","rao@ohdsi.org","End stage renal disease broad (FP)",,"End stage renal disease broad (FP)","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","","","","","","","193782","","",,,,,,42,42 +43,"[P] Respiratory or pulmonary tuberculosis",43,"cohortNameLong : Respiratory or pulmonary tuberculosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest occurrence of respiratory or pulmonary tuberculosis; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 253954, 434557; +ohdsiForumPost : ; +replaces : ; +","2021-09-23","2023-09-25","rao@ohdsi.org","Respiratory or pulmonary tuberculosis",,"Respiratory or pulmonary tuberculosis","Pending peer review","","Earliest occurrence of respiratory or pulmonary tuberculosis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","253954, 434557","","",,,,,,43,43 +44,"[P][R] COVID-19 ",44,"cohortNameLong : COVID-19; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of COVID-19. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 37311061; +ohdsiForumPost : ; +replaces : ; +","2021-09-24","2023-09-19","rao@ohdsi.org","COVID-19",,"COVID-19","Pending peer review","","all events of COVID-19. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37311061","","",,,,,,44,44 +45,"[W] COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d)",45,"cohortNameLong : COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d); +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2021-09-24","2023-09-19","rao@ohdsi.org","COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d)",,"COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d)","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","439676, 37311061","","",,,,,,45,45 +46,"[W] COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d",46,"cohortNameLong : COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2021-09-24","2023-09-19","rao@ohdsi.org","COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d",,"COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","439676, 37311061","","",,,,,,46,46 +47,"[W] COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d",47,"cohortNameLong : COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2021-09-24","2023-09-19","rao@ohdsi.org","COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d",,"COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","439676, 37311061","","",,,,,,47,47 +48,"[W] COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d)",48,"cohortNameLong : COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d); +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2021-09-24","2023-09-19","rao@ohdsi.org","COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d)",,"COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d)","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","439676, 37311061","","",,,,,,48,48 +51,"[W] SARS-CoV-2 test positive result",51,"cohortNameLong : SARS-CoV-2 test positive result; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-09-24","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test positive result",,"SARS-CoV-2 test positive result","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,51,51 +52,"[W] SARS-CoV-2 test negative result",52,"cohortNameLong : SARS-CoV-2 test negative result; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-09-24","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test negative result",,"SARS-CoV-2 test negative result","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,52,52 +53,"[W] SARS-CoV-2 test positive or negative result - keep persons with positive",53,"cohortNameLong : SARS-CoV-2 test positive or negative result - keep persons with positive; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-09-24","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test positive or negative result - keep persons with positive",,"SARS-CoV-2 test positive or negative result - keep persons with positive","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,53,53 +54,"[P] Febrile seizure",54,"cohortNameLong : Febrile seizure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Febrile seizures; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377091, 4196708; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-24","2023-09-25","rao@ohdsi.org","Febrile seizure",,"Febrile seizure","Pending peer review","","All events of Febrile seizures","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377091, 4196708","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,54,54 +56,"[P] SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d)",56,"cohortNameLong : SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Covid Diagnosis without a negative test result or a SARS-Cov-2 test positive test; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2021-09-30","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d)",,"SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d)","Pending peer review","","All events of Covid Diagnosis without a negative test result or a SARS-Cov-2 test positive test","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439676, 37311061","","",,,,,,56,56 +57,"[P][R] Bleeding ",57,"cohortNameLong : Bleeding; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Bleeding. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192671, 437312; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-09-30","2023-09-19","rao@ohdsi.org","Bleeding",,"Bleeding","Pending peer review","","all events of Bleeding. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671, 437312","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,57,57 +59,"[W] COVID-19 diagnosis with no SARS-CoV-2 test",59,"cohortNameLong : COVID-19 diagnosis with no SARS-CoV-2 test; +librarian : rao@ohdsi.org; +status : ; +addedVersion : ; +logicDescription : ; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","COVID-19 diagnosis with no SARS-CoV-2 test",,"COVID-19 diagnosis with no SARS-CoV-2 test","","","","","","","","","","439676, 37311061","","",,,,,,59,59 +60,"[W] SARS-CoV-2 test positive and negative result",60,"cohortNameLong : SARS-CoV-2 test positive and negative result; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test positive and negative result",,"SARS-CoV-2 test positive and negative result","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,60,60 +61,"[P] Bradycardia or heart block with inpatient admission",61,"cohortNameLong : Bradycardia or heart block with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Bradycardia or heart block or first occurrence of pace maker limited to inpatient visit; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 317302, 320425; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-25","rao@ohdsi.org","Bradycardia or heart block with inpatient admission",,"Bradycardia or heart block with inpatient admission","Pending peer review","","All events of Bradycardia or heart block or first occurrence of pace maker limited to inpatient visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317302, 320425","","",,,,,,61,61 +62,"[P][R] Seizure related finding ",62,"cohortNameLong : Seizure related finding; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Seizure related finding. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377091, 4196708; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Seizure related finding",,"Seizure related finding","Pending peer review","","all events of Seizure related finding. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377091, 4196708","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,62,62 +63,"Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W)",63,"cohortNameLong : Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W); +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.7.0; +logicDescription : events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia; +hashTag : #Accepted, #Level2; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : Evan Minty; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 79908, 139803, 443904; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W)",,"Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W)","Accepted","3.7.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 139803, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,63,63 +64,"[P] Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia",64,"cohortNameLong : Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of flue like symptoms or signs; +hashTag : #Symptoms, #Signs; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 254761, 312437, 437663, 439926, 442752, 4041664, 4178904, 4272240, 43530714; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2021-10-05","2023-09-25","rao@ohdsi.org","Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia",,"Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia","Pending peer review","","All events of flue like symptoms or signs","#Symptoms, #Signs","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254761, 312437, 437663, 439926, 442752, 4041664, 4178904, 4272240, 43530714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,64,64 +65,"[W] Acute pancreatitis with inpatient admission",65,"cohortNameLong : Acute pancreatitis with inpatient admission; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn and replaced by 205; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 199074; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Acute pancreatitis with inpatient admission",,"Acute pancreatitis with inpatient admission","Withdrawn","","Withdrawn and replaced by 205","","","","","","","199074","","",,,,,,65,65 +66,"[W] Acute renal failure with inpatient admission",66,"cohortNameLong : Acute renal failure with inpatient admission; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197320; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Acute renal failure with inpatient admission",,"Acute renal failure with inpatient admission","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","197320","","",,,,,,66,66 +67,"[W] Hepatic failure with inpatient admission",67,"cohortNameLong : Hepatic failure with inpatient admission; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Hepatic failure with inpatient admission",,"Hepatic failure with inpatient admission","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","4245975","","",,,,,,67,67 +68,"[W] Heart failure with inpatient admission",68,"cohortNameLong : Heart failure with inpatient admission; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 316139, 319835; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Heart failure with inpatient admission",,"Heart failure with inpatient admission","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","316139, 319835","","",,,,,,68,68 +69,"[W] Angioedema with inpatient admission",69,"cohortNameLong : Angioedema with inpatient admission; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432791; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Angioedema with inpatient admission",,"Angioedema with inpatient admission","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","432791","","",,,,,,69,69 +70,"[P] Stroke (ischemic or hemorrhagic) with inpatient admission",70,"cohortNameLong : Stroke (ischemic or hemorrhagic) with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of ischemic or hemorrhagic stroke in an inpatient or ER visit; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 443454; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Stroke (ischemic or hemorrhagic) with inpatient admission",,"Stroke (ischemic or hemorrhagic) with inpatient admission","Pending peer review","","all events of ischemic or hemorrhagic stroke in an inpatient or ER visit","","","","","","","443454","","",,,,,,70,70 +71,"[P] Acute myocardial infarction with inpatient admission",71,"cohortNameLong : Acute myocardial infarction with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of acute myocardial infarction in an inpatient or ER visit; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314666, 4329847; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; +replaces : ; +","2021-10-05","2023-09-25","rao@ohdsi.org","Acute myocardial infarction with inpatient admission",,"Acute myocardial infarction with inpatient admission","Pending peer review","","all events of acute myocardial infarction in an inpatient or ER visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,71,71 +72,"[P] Influenza diagnosis or positive test result",72,"cohortNameLong : Influenza diagnosis or positive test result; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of influenza diagnosis, or positive influenza test result; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4183609, 4266367; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Influenza diagnosis or positive test result",,"Influenza diagnosis or positive test result","Pending peer review","","all events of influenza diagnosis, or positive influenza test result","","","","","","","4183609, 4266367","","",,,,,,72,72 +74,"[P] Hemorrhagic stroke (intracerebral bleeding) with inpatient admission",74,"cohortNameLong : Hemorrhagic stroke (intracerebral bleeding) with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of hemorrhagic stroke while inpatient or ER setting.; +hashTag : ; +contributors : Unknown; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 376713, 439847; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Hemorrhagic stroke (intracerebral bleeding) with inpatient admission",,"Hemorrhagic stroke (intracerebral bleeding) with inpatient admission","Pending peer review","","all events of hemorrhagic stroke while inpatient or ER setting.","","Unknown","","","","","376713, 439847","","",,,,,,74,74 +75,"[P] Ischemic stroke with inpatient admission",75,"cohortNameLong : Ischemic stroke with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of ischemic stroke while inpatient or ER setting.; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 443454; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Ischemic stroke with inpatient admission",,"Ischemic stroke with inpatient admission","Pending peer review","","all events of ischemic stroke while inpatient or ER setting.","","","","","","","443454","","",,,,,,75,75 +76,"[P] Transient ischemic attack with inpatient admission",76,"cohortNameLong : Transient ischemic attack with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of transient ischemic attack while in inpatient or ER setting; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 373503; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Transient ischemic attack with inpatient admission",,"Transient ischemic attack with inpatient admission","Pending peer review","","all events of transient ischemic attack while in inpatient or ER setting","","","","","","","373503","","",,,,,,76,76 +77,"[P] Gastrointestinal bleeding with inpatient admission",77,"cohortNameLong : Gastrointestinal bleeding with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of gastrointestinal hemorrhage in inpatient or ER setting; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192671; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Gastrointestinal bleeding with inpatient admission",,"Gastrointestinal bleeding with inpatient admission","Pending peer review","","all events of gastrointestinal hemorrhage in inpatient or ER setting","","","","","","","192671","","",,,,,,77,77 +78,"[P] Cardiac arrhythmia with inpatient admission",78,"cohortNameLong : Cardiac arrhythmia with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of cardiac arrhythmia or treatments for cardiac arrhythmia in inpatient or ER setting; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313217, 44784217; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Cardiac arrhythmia with inpatient admission",,"Cardiac arrhythmia with inpatient admission","Pending peer review","","all events of cardiac arrhythmia or treatments for cardiac arrhythmia in inpatient or ER setting","","","","","","","313217, 44784217","","",,,,,,78,78 +79,"[P] Dialysis with inpatient admission",79,"cohortNameLong : Dialysis with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of dialysis in inpatient setting; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 438624, 4027133; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Dialysis with inpatient admission",,"Dialysis with inpatient admission","Pending peer review","","all events of dialysis in inpatient setting","","","","","","","438624, 4027133","","",,,,,,79,79 +80,"[P] Extracorporeal Membrane Oxygenation with inpatient admission",80,"cohortNameLong : Extracorporeal Membrane Oxygenation with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Extracorporeal Membrane Oxygenation in inpatient setting; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Extracorporeal Membrane Oxygenation with inpatient admission",,"Extracorporeal Membrane Oxygenation with inpatient admission","Pending peer review","","all events of Extracorporeal Membrane Oxygenation in inpatient setting","","","","","","","","","",,,,,,80,80 +81,"[P] Cesarean section",81,"cohortNameLong : Cesarean section; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Cesarean section; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Cesarean section",,"Cesarean section","Pending peer review","","all events of Cesarean section","","","","","","","","","",,,,,,81,81 +82,"[P] Intensive services during hospitalization",82,"cohortNameLong : Intensive services during hospitalization; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of intensive care service in an inpatient setting; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 40481547; +ohdsiForumPost : ; +replaces : ; +","2021-10-05","2023-09-19","rao@ohdsi.org","Intensive services during hospitalization",,"Intensive services during hospitalization","Pending peer review","","all events of intensive care service in an inpatient setting","","","","","","","40481547","","",,,,,,82,82 +84,"[P] SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d)",84,"cohortNameLong : SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of positive SAR-CoV-2 test result or Covid-19 diagnosis without a negative test result on or within 3 days of diagnosis; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2021-10-09","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d)",,"SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d)","Pending peer review","","all events of positive SAR-CoV-2 test result or Covid-19 diagnosis without a negative test result on or within 3 days of diagnosis","","","","","","","439676, 37311061","","",,,,,,84,84 +86,"[W] SARS-CoV-2 test positive or negative result",86,"cohortNameLong : SARS-CoV-2 test positive or negative result; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-10-11","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test positive or negative result",,"SARS-CoV-2 test positive or negative result","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,86,86 +87,"[W] SARS-CoV-2 test",87,"cohortNameLong : SARS-CoV-2 test; +librarian : rao@ohdsi.org; +status : Withdrawn; +addedVersion : ; +logicDescription : Withdrawn by contributor before peer review; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2021-10-21","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test",,"SARS-CoV-2 test","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,87,87 +95,"[P] Delirium",95,"cohortNameLong : Delirium; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : first occurrence of Delirium; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 373995; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2022-02-04","2023-09-25","rao@ohdsi.org","Delirium",,"Delirium","Pending peer review","","first occurrence of Delirium","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","373995","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,95,95 +100,"[P][R] Alzheimer's disease",100,"cohortNameLong : Alzheimer's disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Alzheimer's disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 378419; +ohdsiForumPost : ; +replaces : ; +","2022-02-06","2023-09-25","ryan@ohdsi.org","Alzheimer's disease",,"Alzheimer's disease","Pending peer review","","all events of Alzheimer's disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378419","","",,,,,,100,100 +119,"Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP)",119,"cohortNameLong : Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP); +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.10.0; +logicDescription : first signs and symptoms suggestive of Systemic lupus erythematosus (SLE) or first treatment suggestive of SLE with SLE diagnosis with 90 days; +hashTag : #PhenotypePhebruary, #2023, #SystemicLupusErythematosus; +contributors : Joel Swerdel, Daniel Prieto-Alhambra; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 138525, 194133; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p5-systemic-lupus-erythematosus-sle/18223; +replaces : ; +","2022-02-10","2023-09-19","rao@ohdsi.org","Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP)",,"Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP)","Accepted","3.10.0","first signs and symptoms suggestive of Systemic lupus erythematosus (SLE) or first treatment suggestive of SLE with SLE diagnosis with 90 days","#PhenotypePhebruary, #2023, #SystemicLupusErythematosus","Joel Swerdel, Daniel Prieto-Alhambra","","","","","138525, 194133","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p5-systemic-lupus-erythematosus-sle/18223","",,,,,,119,119 +123,"[P] Suicide attempt or self inflicted injury",123,"cohortNameLong : Suicide attempt or self inflicted injury; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Suicide or self inflicted events; +hashTag : #Submitted; +contributors : Azza A Shoaibi; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 444362; +ohdsiForumPost : ; +replaces : ; +","2022-02-11","2023-09-25","rao@ohdsi.org","Suicide attempt or self inflicted injury",,"Suicide attempt or self inflicted injury","Pending","","Suicide or self inflicted events","#Submitted","Azza A Shoaibi","'0000-0002-4949-7236'","'OHDSI'","","","444362","","",,,,,,123,123 +134,"[P] Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment",134,"cohortNameLong : Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Attention-deficit hyperactivity disorder (ADHD) condition or related procedures, indexed on the earliest occurrence of ADHD condition, procedure or treatment (limited to drug exposure followed by a related condition or procedure), with 365d prior observation, exit at end of observation; +hashTag : #PhenotypePhebruary; +contributors : Patrick B. Ryan; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 438409, 4047120; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-13-attention-deficit-hyperactivity-disorder/15901; +replaces : ; +","2022-02-13","2023-09-19","ryan@ohdsi.org","Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment",,"Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment","Pending peer review","","First occurrence of Attention-deficit hyperactivity disorder (ADHD) condition or related procedures, indexed on the earliest occurrence of ADHD condition, procedure or treatment (limited to drug exposure followed by a related condition or procedure), with 365d prior observation, exit at end of observation","#PhenotypePhebruary","Patrick B. Ryan","","","","","438409, 4047120","https//forums.ohdsi.org/t/phenotype-phebruary-day-13-attention-deficit-hyperactivity-disorder/15901","",,,,,,134,134 +142,"[P] ST elevated Myocardial infarction or Acute MI with ST elevation",142,"cohortNameLong : Earliest of ST elevated Myocardial infarction or Acute MI with ST elevation; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest of ST elevated Myocardial infarction or Acute Myocardial Infarction with ST elevation; +hashTag : #PhenotypePhebruary, #2022; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314666, 4296653, 4329847; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; +replaces : ; +","2022-02-15","2023-09-25","rao@ohdsi.org","ST elevated Myocardial infarction or Acute MI with ST elevation",,"Earliest of ST elevated Myocardial infarction or Acute MI with ST elevation","Pending","","Earliest of ST elevated Myocardial infarction or Acute Myocardial Infarction with ST elevation","#PhenotypePhebruary, #2022","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4296653, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,142,142 +189,"[P][R] Right upper quadrant pain ",189,"cohortNameLong : Right upper quadrant pain; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Right upper quadrant pain. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 198263; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2022-06-29","2023-09-19","rao@ohdsi.org","Right upper quadrant pain",,"Right upper quadrant pain","Pending peer review","","all events of Right upper quadrant pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198263","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,189,189 +190,"[P][R] Swollen abdomen ",190,"cohortNameLong : Swollen abdomen; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Swollen abdomen. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 442597, 4152351; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2022-06-29","2023-09-19","rao@ohdsi.org","Swollen abdomen",,"Swollen abdomen","Pending peer review","","all events of Swollen abdomen. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442597, 4152351","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,190,190 +191,"[P] Fatigue, Asthenia, Malaise, Lethargy, Anorexia",191,"cohortNameLong : Fatigue, Asthenia, Malaise, Lethargy, Anorexia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events with a diagnosis of Fatigue, Asthenia, Malaise, Lethargy, Anorexia but not senile, cancer or stroke related asthenia; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439926, 4272240; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2022-06-29","2023-09-25","rao@ohdsi.org","Fatigue, Asthenia, Malaise, Lethargy, Anorexia",,"Fatigue, Asthenia, Malaise, Lethargy, Anorexia","Pending peer review","","events with a diagnosis of Fatigue, Asthenia, Malaise, Lethargy, Anorexia but not senile, cancer or stroke related asthenia","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439926, 4272240","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,191,191 +192,"[P] Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia",192,"cohortNameLong : Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Skin, Nasal or oral mucosal bleeding events such as epistaxis. Does not include gastrointestinal bleeding. Limited to bleeding common during thrombocytopenia; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4096682; +ohdsiForumPost : Pending; +replaces : ; +","2022-06-29","2023-09-25","rao@ohdsi.org","Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia",,"Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia","Pending peer review","","all events of Skin, Nasal or oral mucosal bleeding events such as epistaxis. Does not include gastrointestinal bleeding. Limited to bleeding common during thrombocytopenia","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4096682","Pending","",,,,,,192,192 +193,"[P] Jaundice or Itching",193,"cohortNameLong : Jaundice or Itching; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of jaundice or itching; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137977, 435656; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2022-06-29","2023-09-25","rao@ohdsi.org","Jaundice or Itching",,"Jaundice or Itching","Pending peer review","","events of jaundice or itching","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137977, 435656","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,193,193 +194,"[P] Encephalopathy or its presentations",194,"cohortNameLong : Encephalopathy or its presentations; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events Encephalopathy or its presentations; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436222; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2022-06-29","2023-09-25","rao@ohdsi.org","Encephalopathy or its presentations",,"Encephalopathy or its presentations","Pending peer review","","events Encephalopathy or its presentations","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436222","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,194,194 +195,"[P] Primary or malignant urothelial bladder cancer",195,"cohortNameLong : Primary or malignant urothelial bladder cancer; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Primary or malignant urothelial bladder cancer; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 196360, 197508; +ohdsiForumPost : ; +replaces : ; +","2022-06-30","2023-09-19","rao@ohdsi.org","Primary or malignant urothelial bladder cancer",,"Primary or malignant urothelial bladder cancer","Pending peer review","","all events of Primary or malignant urothelial bladder cancer","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196360, 197508","","",,,,,,195,195 +196,"[P] Rheumatoid arthritis or complications",196,"cohortNameLong : Rheumatoid arthritis or complications; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of rheumatoid arthritis or complications; +hashTag : #Disease; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 80809; +ohdsiForumPost : ; +replaces : ; +","2022-06-30","2023-09-19","rao@ohdsi.org","Rheumatoid arthritis or complications",,"Rheumatoid arthritis or complications","Pending peer review","","All events of rheumatoid arthritis or complications","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80809","","",,,,,,196,196 +197,"[P] Coronary Artery Disease from vessel disease to ischemic injury",197,"cohortNameLong : Coronary Artery Disease from vessel disease to ischemic injury; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all occurrence of coronary artery disease; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 318443, 764123; +ohdsiForumPost : ; +replaces : ; +","2022-06-30","2023-09-19","rao@ohdsi.org","Coronary Artery Disease from vessel disease to ischemic injury",,"Coronary Artery Disease from vessel disease to ischemic injury","Pending peer review","","all occurrence of coronary artery disease","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318443, 764123","","",,,,,,197,197 +198,"[P] Crohns disease or its complication",198,"cohortNameLong : Crohns disease or its complication; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of crohns disease or complications; +hashTag : #Disease; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201606; +ohdsiForumPost : ; +replaces : ; +","2022-06-30","2023-09-25","rao@ohdsi.org","Crohns disease or its complication",,"Crohns disease or its complication","Pending peer review","","All events of crohns disease or complications","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201606","","",,,,,,198,198 +199,"[P] Major Depressive Disorder",199,"cohortNameLong : Major Depressive Disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of major depressive disorder; +hashTag : #Disease; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440383; +ohdsiForumPost : ; +replaces : ; +","2022-06-30","2023-09-25","rao@ohdsi.org","Major Depressive Disorder",,"Major Depressive Disorder","Pending peer review","","All events of major depressive disorder","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440383","","",,,,,,199,199 +200,"[P] Psoriasis of skin",200,"cohortNameLong : Psoriasis of skin; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of psoriasis of skin; +hashTag : #Disease; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 140168; +ohdsiForumPost : ; +replaces : ; +","2022-06-30","2023-09-25","rao@ohdsi.org","Psoriasis of skin",,"Psoriasis of skin","Pending peer review","","All events of psoriasis of skin","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140168","","",,,,,,200,200 +201,"[P] Ulcerative colitis or complications",201,"cohortNameLong : Ulcerative colitis or complications; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Ulcerative colitis or complications; +hashTag : #Disease; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 81893; +ohdsiForumPost : ; +replaces : ; +","2022-06-30","2023-09-25","rao@ohdsi.org","Ulcerative colitis or complications",,"Ulcerative colitis or complications","Pending peer review","","All events of Ulcerative colitis or complications","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81893","","",,,,,,201,201 +207,"[P] Acquired Pure Red Cell Aplasia",207,"cohortNameLong : Acquired Pure Red Cell Aplasia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : earliest of acquired pure red cell aplasia indexed on anemia, with no congenital or genetic anemia or constitutional aplasia, and no erroneous measurements such as normal hemoglobin or hematocrit. Persons should not have constitutional aplasia as it represents congenital form of aplasia and should not have bone marrow transplantation; +hashTag : #DME; +contributors : Azza Shoaibi; +contributorOrcIds : '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 26942, 138723, 4144746; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acquired-pure-red-cell-aplasia/17854; +replaces : ; +","2022-11-10","2024-09-11","rao@ohdsi.org","Acquired Pure Red Cell Aplasia",,"Acquired Pure Red Cell Aplasia","Pending peer review","","earliest of acquired pure red cell aplasia indexed on anemia, with no congenital or genetic anemia or constitutional aplasia, and no erroneous measurements such as normal hemoglobin or hematocrit. Persons should not have constitutional aplasia as it represents congenital form of aplasia and should not have bone marrow transplantation","#DME","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","26942, 138723, 4144746","https//forums.ohdsi.org/t/phenotype-submission-acquired-pure-red-cell-aplasia/17854","",,,,,,207,207 +208,"[P] Febrile Neutropenia or Neutropenic Fever",208,"cohortNameLong : Febrile Neutropenia or Neutropenic Fever; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of febrile neutropenia, indexed on the diagnosis of febrile neutropenia or a fever (diagnosis or measurement) cooccurring with neutropenia (diagnosis or measurement) within 1 day , or a diagnosis of clinically significant infection cooccurring with neutropenia (diagnosis or measurement) within 1 day. Restricted to events overlapping with in an inpatient or emergency room visit and excluding events with a normal neutrophil count (ANC) on index.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257011, 437663, 4170143, 4250734; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-febrile-neutropenia-or-neutropenic-fever/17876; +replaces : ; +","2022-11-10","2023-09-19","rao@ohdsi.org","Febrile Neutropenia or Neutropenic Fever",,"Febrile Neutropenia or Neutropenic Fever","Pending peer review","","All events of febrile neutropenia, indexed on the diagnosis of febrile neutropenia or a fever (diagnosis or measurement) cooccurring with neutropenia (diagnosis or measurement) within 1 day , or a diagnosis of clinically significant infection cooccurring with neutropenia (diagnosis or measurement) within 1 day. Restricted to events overlapping with in an inpatient or emergency room visit and excluding events with a normal neutrophil count (ANC) on index.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","257011, 437663, 4170143, 4250734","https//forums.ohdsi.org/t/phenotype-submission-febrile-neutropenia-or-neutropenic-fever/17876","",,,,,,208,208 +209,"[P] Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd",209,"cohortNameLong : Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, enzyme or RBC structure; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435503, 439777, 441269, 4250490; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; +replaces : ; +","2022-11-11","2023-09-19","rao@ohdsi.org","Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd",,"Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, enzyme or RBC structure","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269, 4250490","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,209,209 +210,"[P] Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect",210,"cohortNameLong : Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, or RBC structure. Persons with enzyme disorder (e.g. G-6-PD deficiency) are not excluded; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435503, 439777, 441269, 4250490; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; +replaces : ; +","2022-11-11","2024-09-11","rao@ohdsi.org","Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect",,"Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, or RBC structure. Persons with enzyme disorder (e.g. G-6-PD deficiency) are not excluded","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269, 4250490","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,210,210 +211,"[P] Pancytopenia, Acquired",211,"cohortNameLong : Pancytopenia, Acquired; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Pancytopenia, indexed on diagnosis or lab results. Excluded are patients with severe congenital blood disorders that may cause pancytopenia any time prior to 7 days post index. Exist cohort at 60 days post end date. Repeated events will be combined into events eras if they are within 365 days of each other.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432881; +ohdsiForumPost : ; +replaces : ; +","2022-11-11","2024-09-11","rao@ohdsi.org","Pancytopenia, Acquired",,"Pancytopenia, Acquired","Pending peer review","","All events of Pancytopenia, indexed on diagnosis or lab results. Excluded are patients with severe congenital blood disorders that may cause pancytopenia any time prior to 7 days post index. Exist cohort at 60 days post end date. Repeated events will be combined into events eras if they are within 365 days of each other.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","432881","","",,,,,,211,211 +213,"[D] Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)",213,"cohortNameLong : Neutropenia or unspecified leukopenia; +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.11.0; +logicDescription : All events of neutropenia indexed on diagnosis or lab results, with no congenital or genetic neutropenia all days pre to 7 days post index. Also excluded, events with normal neutrophil count or a diagnosis of Neutrophilia on index. patients exit 21 days post end date or with the occurrence of a normal neutrophil count. Reoccurring events for the same patients will be combined into event eras if they are within 365 days of each other.; +hashTag : #PhenotypePhebruary, #2023, #Neutropenia, #DME; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : Anna Ostropolets; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435224; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409; +replaces : ; +","2022-11-11","2024-09-11","rao@ohdsi.org","Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)",,"Neutropenia or unspecified leukopenia","Accepted","3.11.0","All events of neutropenia indexed on diagnosis or lab results, with no congenital or genetic neutropenia all days pre to 7 days post index. Also excluded, events with normal neutrophil count or a diagnosis of Neutrophilia on index. patients exit 21 days post end date or with the occurrence of a normal neutrophil count. Reoccurring events for the same patients will be combined into event eras if they are within 365 days of each other.","#PhenotypePhebruary, #2023, #Neutropenia, #DME","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Anna Ostropolets","","435224","https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409","",,,,,,213,213 +214,"[P] Acquired Isolated Neutropenia or unspecified leukopenia",214,"cohortNameLong : Acquired Isolated Neutropenia or unspecified leukopenia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of neutropenia indexed on diagnosis or lab results with no congenital or genetic neutropenia, and no other cell lines reduced at the same time; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435224; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409; +replaces : ; +","2022-11-11","2023-09-19","rao@ohdsi.org","Acquired Isolated Neutropenia or unspecified leukopenia",,"Acquired Isolated Neutropenia or unspecified leukopenia","Pending peer review","","all events of neutropenia indexed on diagnosis or lab results with no congenital or genetic neutropenia, and no other cell lines reduced at the same time","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435224","https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409","",,,,,,214,214 +215,"[P] Isolated Immune Thrombocytopenia",215,"cohortNameLong : Isolated Immune Thrombocytopenia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of Immune Thrombocytopenia (ITP) with no evidence of congenital or genetic thrombocytopenia, and no simultaneous neutropenia, pancytopenia, bone marrow involvement, anemia.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433749, 4103532; +ohdsiForumPost : ; +replaces : ; +","2022-11-11","2023-09-19","rao@ohdsi.org","Isolated Immune Thrombocytopenia",,"Isolated Immune Thrombocytopenia","Pending peer review","","events of Immune Thrombocytopenia (ITP) with no evidence of congenital or genetic thrombocytopenia, and no simultaneous neutropenia, pancytopenia, bone marrow involvement, anemia.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433749, 4103532","","",,,,,,215,215 +216,"[P] Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes",216,"cohortNameLong : Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of Immune Thrombocytopenia (ITP) with no evidence of congenital or genetic thrombocytopenia, and no simultaneous neutropenia, pancytopenia, bone marrow involvement, anemia. Persons exit after 180 days or when they have normal platelet count. Also no evidence of common causes of thrombocytopenia including hypersplenism, antiphospholipid syndrome, paroxysmal noctural hemoglobinuria, hemolytic uremic syndrome, thrombotic microangiopathy, major autoimmune disorders, chronic liver disease, pregnancy HELLP, tumors of hematopoietic cells or nutritional deficiency; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433749, 4103532; +ohdsiForumPost : ; +replaces : ; +","2022-11-11","2024-09-11","rao@ohdsi.org","Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes",,"Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes","Pending peer review","","events of Immune Thrombocytopenia (ITP) with no evidence of congenital or genetic thrombocytopenia, and no simultaneous neutropenia, pancytopenia, bone marrow involvement, anemia. Persons exit after 180 days or when they have normal platelet count. Also no evidence of common causes of thrombocytopenia including hypersplenism, antiphospholipid syndrome, paroxysmal noctural hemoglobinuria, hemolytic uremic syndrome, thrombotic microangiopathy, major autoimmune disorders, chronic liver disease, pregnancy HELLP, tumors of hematopoietic cells or nutritional deficiency","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433749, 4103532","","",,,,,,216,216 +217,"[W] Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)",217,"cohortNameLong : Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest events of Immune Thrombotic microangiopathy or microangiopathic hemolytic anemia indexed on the diagnosis or its treatment or investigation. Events with congenital or genetic thrombocytopenia all time prior to 7 days post index are excluded. Also excluded are patients with Platelet count > 150. cohort exit is 7 days post end date or an occurrence of a normal platelet measure .; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313800, 4119134; +ohdsiForumPost : ; +replaces : ; +notes : same as 741;","2022-11-11","2023-10-16","rao@ohdsi.org","Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)",,"Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","Pending peer review","","Earliest events of Immune Thrombotic microangiopathy or microangiopathic hemolytic anemia indexed on the diagnosis or its treatment or investigation. Events with congenital or genetic thrombocytopenia all time prior to 7 days post index are excluded. Also excluded are patients with Platelet count > 150. cohort exit is 7 days post end date or an occurrence of a normal platelet measure .","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","313800, 4119134","","","same as 741",,,,,217,217 +218,"[P] Rhabdomyolysis",218,"cohortNameLong : Rhabdomyolysis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of rhabdomyolysis, indexed on a diagnosis or an observation of of Rhabdomyolysis or Myoglobinuria or a diagnosis of Muscle, ligament and fascia disorders co-occurring with a measurement of creatine kinase that is 5 times above the normal range- within 7 days. With no such events in the last 180 days washout period. Restricted to events that overlap with an inpatient visit. Events are excluded if they had recent trauma such as burn, drowning, hypothermia, hyperthermia, hyperpyrexia, crush syndrome, sepsis, march myoglobinuria, exertional rhabdomyolysis or alcohol intoxication, in the last 14 days including index. cohort exit 0 days post end date.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137967, 4345578; +ohdsiForumPost : ; +replaces : ; +","2022-11-11","2024-09-11","rao@ohdsi.org","Rhabdomyolysis",,"Rhabdomyolysis","Pending peer review","","All events of rhabdomyolysis, indexed on a diagnosis or an observation of of Rhabdomyolysis or Myoglobinuria or a diagnosis of Muscle, ligament and fascia disorders co-occurring with a measurement of creatine kinase that is 5 times above the normal range- within 7 days. With no such events in the last 180 days washout period. Restricted to events that overlap with an inpatient visit. Events are excluded if they had recent trauma such as burn, drowning, hypothermia, hyperthermia, hyperpyrexia, crush syndrome, sepsis, march myoglobinuria, exertional rhabdomyolysis or alcohol intoxication, in the last 14 days including index. cohort exit 0 days post end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","137967, 4345578","","",,,,,,218,218 +219,"[P] Sudden Cardiac arrest or cardiac death",219,"cohortNameLong : Sudden Cardiac arrest or cardiac death; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest event of Sudden Cardiac arrest or Cardiac death, indexed on diagnosis or observation of cardiac arrest or cardiac death or a procedures of resuscitation. Restricting to events overlapping an inpatient or ER visit. Cohort exist is 1 day post cohort end date.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 321042; +ohdsiForumPost : ; +replaces : ; +","2022-11-11","2024-09-11","rao@ohdsi.org","Sudden Cardiac arrest or cardiac death",,"Sudden Cardiac arrest or cardiac death","Pending peer review","","Earliest event of Sudden Cardiac arrest or Cardiac death, indexed on diagnosis or observation of cardiac arrest or cardiac death or a procedures of resuscitation. Restricting to events overlapping an inpatient or ER visit. Cohort exist is 1 day post cohort end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","321042","","",,,,,,219,219 +220,"[P] Angioedema",220,"cohortNameLong : Angioedema; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of angioedema, with no recent cardiac edema, cellulitis, erysipelas, dermatitis or eczema, lymphedema or insect bites; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 139900; +ohdsiForumPost : ; +replaces : ; +","2022-11-11","2023-09-25","rao@ohdsi.org","Angioedema",,"Angioedema","Pending peer review","","all events of angioedema, with no recent cardiac edema, cellulitis, erysipelas, dermatitis or eczema, lymphedema or insect bites","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139900","","",,,,,,220,220 +221,"[P] Anaphylaxis Non Environmental exposure related",221,"cohortNameLong : Anaphylaxis Non Environmental exposure related; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of anaphylaxis that is not due to environmental etiology and no food, substance, insect bite or sting, poisoning as an explanation for anaphylaxis; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441202; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-anaphylaxis/17835; +replaces : ; +","2022-11-11","2023-09-25","rao@ohdsi.org","Anaphylaxis Non Environmental exposure related",,"Anaphylaxis Non Environmental exposure related","Pending peer review","","all events of anaphylaxis that is not due to environmental etiology and no food, substance, insect bite or sting, poisoning as an explanation for anaphylaxis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441202","https//forums.ohdsi.org/t/phenotype-submission-anaphylaxis/17835","",,,,,,221,221 +222,"[P] Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum",222,"cohortNameLong : Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest event of Stevens-Johnson syndrome, Toxic epidermal necrolysis spectrum, indexed on diagnosis of Stevens-Johnson syndrome, Toxic epidermal necrolysis spectrum. Restricting to events overlapping an inpatient or ER visit. Cohort exist is 1 day post cohort end date.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 141651; +ohdsiForumPost : ; +replaces : ; +","2022-11-11","2024-09-11","rao@ohdsi.org","Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum",,"Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum","Pending peer review","","Earliest event of Stevens-Johnson syndrome, Toxic epidermal necrolysis spectrum, indexed on diagnosis of Stevens-Johnson syndrome, Toxic epidermal necrolysis spectrum. Restricting to events overlapping an inpatient or ER visit. Cohort exist is 1 day post cohort end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","141651","","",,,,,,222,222 +223,"[P] Posterior reversible encephalopathy syndrome PRES",223,"cohortNameLong : Posterior reversible encephalopathy syndrome PRES; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of posterior reversible encephalopathy syndrome with no hypertensive encephalopathy or eclampsia; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 42872891; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Posterior reversible encephalopathy syndrome PRES",,"Posterior reversible encephalopathy syndrome PRES","Pending peer review","","all events of posterior reversible encephalopathy syndrome with no hypertensive encephalopathy or eclampsia","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","42872891","","",,,,,,223,223 +224,"[P] Long QT Syndrome or QT prolonged (Acquired)",224,"cohortNameLong : Long QT Syndrome or QT prolonged (Acquired); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Long QT or QT prolonged. Exclude persons with congenital QT syndrome; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314664; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Long QT Syndrome or QT prolonged (Acquired)",,"Long QT Syndrome or QT prolonged (Acquired)","Pending peer review","","all events of Long QT or QT prolonged. Exclude persons with congenital QT syndrome","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314664","","",,,,,,224,224 +225,"[P] Drug-induced Lupus",225,"cohortNameLong : Drug-induced Lupus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of drug induced lupus with no Systemic Lupus Erythematosus; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4063581, 4198217; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Drug-induced Lupus",,"Drug-induced Lupus","Pending peer review","","all events of drug induced lupus with no Systemic Lupus Erythematosus","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4063581, 4198217","","",,,,,,225,225 +226,"[P][R] Drug reaction with eosinophilia and systemic symptoms ",226,"cohortNameLong : Drug reaction with eosinophilia and systemic symptoms; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Drug reaction with eosinophilia and systemic symptoms. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 45765791; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Drug reaction with eosinophilia and systemic symptoms",,"Drug reaction with eosinophilia and systemic symptoms","Pending peer review","","all events of Drug reaction with eosinophilia and systemic symptoms. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","45765791","","",,,,,,226,226 +227,"[P] Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM)",227,"cohortNameLong : Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), Erythema Multiforme, Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 132702, 141651, 45765791; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM)",,"Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM)","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), Erythema Multiforme, Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132702, 141651, 45765791","","",,,,,,227,227 +228,"[P] Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS)",228,"cohortNameLong : Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 141651, 45765791; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS)",,"Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS)","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141651, 45765791","","",,,,,,228,228 +229,"[P] Progressive multifocal leukoencephalopathy",229,"cohortNameLong : Progressive multifocal leukoencephalopathy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest occurrence of progressive multifocal leukoencephalopathy, indexed on diagnosis of multifocal leukoencephalopathy. Cohort exist at the end of observation period; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433957; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2024-09-11","rao@ohdsi.org","Progressive multifocal leukoencephalopathy",,"Progressive multifocal leukoencephalopathy","Pending peer review","","Earliest occurrence of progressive multifocal leukoencephalopathy, indexed on diagnosis of multifocal leukoencephalopathy. Cohort exist at the end of observation period","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433957","","",,,,,,229,229 +230,"[P] Autoimmune hepatitis",230,"cohortNameLong : Autoimmune hepatitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of autoimmune hepatitis with no chronic liver diseases that may have similar presentation up to 365days prior such as viral hepatitis, drug induced liver injury, alcoholic liver disease, and no systemic lupus erythematosus in past 365 days; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 200762; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Autoimmune hepatitis",,"Autoimmune hepatitis","Pending peer review","","all events of autoimmune hepatitis with no chronic liver diseases that may have similar presentation up to 365days prior such as viral hepatitis, drug induced liver injury, alcoholic liver disease, and no systemic lupus erythematosus in past 365 days","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200762","","",,,,,,230,230 +231,"[P][R] Erythema multiforme ",231,"cohortNameLong : Erythema multiforme; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Erythema multiforme. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 132702; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Erythema multiforme",,"Erythema multiforme","Pending peer review","","all events of Erythema multiforme. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132702","","",,,,,,231,231 +232,"[P] Paresthesia",232,"cohortNameLong : Paresthesia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of paresthesia; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4090425; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2022-11-12","2023-09-25","rao@ohdsi.org","Paresthesia",,"Paresthesia","Pending peer review","","all events of paresthesia","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4090425","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,232,232 +233,"[P] Hemorrhagic stroke",233,"cohortNameLong : Hemorrhagic stroke; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of hemorrhagic stroke during an inpatient or ER visit; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 376713, 439847; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Hemorrhagic stroke",,"Hemorrhagic stroke","Pending peer review","","all events of hemorrhagic stroke during an inpatient or ER visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376713, 439847","","",,,,,,233,233 +234,"Appendicitis (1Pe, 180Era)",234,"cohortNameLong : Appendicitis (1Pe, 180Era); +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.11.0; +logicDescription : events of appendicitis with an inpatient or ER visit with no events in 365 days clean window; +hashTag : #PhenotypePhebruary, #2023; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : Azza Shoaibi; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440448, 441604; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p3-appendicitis-interactive-session/18188; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Appendicitis (1Pe, 180Era)",,"Appendicitis (1Pe, 180Era)","Accepted","3.11.0","events of appendicitis with an inpatient or ER visit with no events in 365 days clean window","#PhenotypePhebruary, #2023","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Azza Shoaibi","","440448, 441604","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p3-appendicitis-interactive-session/18188","",,,,,,234,234 +235,"[P] Guillain Barre syndrome inpatient",235,"cohortNameLong : Guillain Barre syndrome inpatient; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : earliest event of Guillain Barre Syndrome during inpatient or ER stay; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374925; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-25","rao@ohdsi.org","Guillain Barre syndrome inpatient",,"Guillain Barre syndrome inpatient","Pending peer review","","earliest event of Guillain Barre Syndrome during inpatient or ER stay","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374925","","",,,,,,235,235 +236,"[P] Idiopathic Peripheral Neuropathy",236,"cohortNameLong : Idiopathic Peripheral Neuropathy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of idiopathic peripheral neuropathy; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 375806, 4175154; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-25","rao@ohdsi.org","Idiopathic Peripheral Neuropathy",,"Idiopathic Peripheral Neuropathy","Pending peer review","","all events of idiopathic peripheral neuropathy","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","375806, 4175154","","",,,,,,236,236 +237,"[P] Kawasaki disease",237,"cohortNameLong : Kawasaki disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of Kawasaki's disease; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314381; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-25","rao@ohdsi.org","Kawasaki disease",,"Kawasaki disease","Pending peer review","","events of Kawasaki's disease","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314381","","",,,,,,237,237 +238,"[P][R] Optic neuritis ",238,"cohortNameLong : Optic neuritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Optic neuritis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374954; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Optic neuritis",,"Optic neuritis","Pending peer review","","all events of Optic neuritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374954","","",,,,,,238,238 +239,"[P] Narcolepsy events",239,"cohortNameLong : Narcolepsy events; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Narcolepsy (includes cataplexy with narcolepsy) with no such events in prior clean window period (365 days). Persons should not be diagnosed with hypersomnia. Persons exit the cohort on end_date + 90 days as persons are assumed to have the condition for at least 90 days; +hashTag : #AESI; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436100; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-narcolepsy/17784; +replaces : ; +","2022-11-12","2023-09-21","rao@ohdsi.org","Narcolepsy events",,"Narcolepsy events","Pending peer review","","All events of Narcolepsy (includes cataplexy with narcolepsy) with no such events in prior clean window period (365 days). Persons should not be diagnosed with hypersomnia. Persons exit the cohort on end_date + 90 days as persons are assumed to have the condition for at least 90 days","#AESI","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436100","https//forums.ohdsi.org/t/phenotype-submission-narcolepsy/17784","",,,,,,239,239 +240,"[P] Muscle weakness or monoplegia",240,"cohortNameLong : Muscle weakness or monoplegia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of muscle weakness or monoplegia with no events in prior 365 days clean window; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 79908; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-25","rao@ohdsi.org","Muscle weakness or monoplegia",,"Muscle weakness or monoplegia","Pending peer review","","events of muscle weakness or monoplegia with no events in prior 365 days clean window","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","79908","","",,,,,,240,240 +241,"[P][R] Urticaria ",241,"cohortNameLong : Urticaria; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Urticaria. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 139900; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Urticaria",,"Urticaria","Pending peer review","","all events of Urticaria. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139900","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,241,241 +243,"[P] Tinnitus",243,"cohortNameLong : Tinnitus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of tinnitus; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377575; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2022-11-12","2023-09-25","rao@ohdsi.org","Tinnitus",,"Tinnitus","Pending peer review","","events of tinnitus","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377575","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,243,243 +244,"[P] Dizziness or giddiness including motion sickness and vertigo",244,"cohortNameLong : Dizziness or giddiness including motion sickness and vertigo; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of dizziness; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433316, 4223938; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2022-11-12","2023-09-25","rao@ohdsi.org","Dizziness or giddiness including motion sickness and vertigo",,"Dizziness or giddiness including motion sickness and vertigo","Pending peer review","","events of dizziness","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433316, 4223938","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,244,244 +245,"[P] Hepatic Thrombosis",245,"cohortNameLong : Hepatic Thrombosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : first event of hepatic thrombosis; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 196715; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Hepatic Thrombosis",,"Hepatic Thrombosis","Pending peer review","","first event of hepatic thrombosis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196715","","",,,,,,245,245 +246,"[P] Portal vein thrombosis",246,"cohortNameLong : Portal vein thrombosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : first event of portal vein thrombosis; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 199837; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Portal vein thrombosis",,"Portal vein thrombosis","Pending peer review","","first event of portal vein thrombosis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","199837","","",,,,,,246,246 +247,"[P] Deep Vein Thrombosis DVT",247,"cohortNameLong : Deep Vein Thrombosis DVT; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : first event of non obstetric Deep Vein Thrombosis; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4133004, 43531681; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; +replaces : ; +","2022-11-12","2023-09-19","rao@ohdsi.org","Deep Vein Thrombosis DVT",,"Deep Vein Thrombosis DVT","Pending peer review","","first event of non obstetric Deep Vein Thrombosis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4133004, 43531681","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,247,247 +248,"[P] Disseminated intravascular coagulation DIC in inpatient visit",248,"cohortNameLong : Disseminated intravascular coagulation DIC in inpatient visit; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of Disseminated Intravascular Coagulation in an inpatient or ER setting with no events in prior 365 day window; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436093; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-25","rao@ohdsi.org","Disseminated intravascular coagulation DIC in inpatient visit",,"Disseminated intravascular coagulation DIC in inpatient visit","Pending peer review","","events of Disseminated Intravascular Coagulation in an inpatient or ER setting with no events in prior 365 day window","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436093","","",,,,,,248,248 +249,"[P] Ischemic (Non-hemorrhagic) Stroke In Inpatient",249,"cohortNameLong : Ischemic (Non-hemorrhagic) Stroke In Inpatient; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of cerebral infarction while in an inpatient or ER setting; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 443454; +ohdsiForumPost : ; +replaces : ; +","2022-11-12","2023-09-25","rao@ohdsi.org","Ischemic (Non-hemorrhagic) Stroke In Inpatient",,"Ischemic (Non-hemorrhagic) Stroke In Inpatient","Pending peer review","","events of cerebral infarction while in an inpatient or ER setting","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443454","","",,,,,,249,249 +251,"[P] Acute pancreatitis",251,"cohortNameLong : Acute pancreatitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of acute pancreatitis in an inpatient or emergency setting and no history of chronic pancreatitis or hereditary or congenital pancreatitis; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4192640, 199074; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848; +replaces : ; +","2022-11-15","2023-09-25","rao@ohdsi.org","Acute pancreatitis",,"Acute pancreatitis","Pending peer review","","events of acute pancreatitis in an inpatient or emergency setting and no history of chronic pancreatitis or hereditary or congenital pancreatitis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4192640, 199074","https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848","",,,,,,251,251 +253,"[P] Drug Induced Acute pancreatitis",253,"cohortNameLong : Drug Induced Acute pancreatitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of acute pancreatitis in an inpatient or emergency setting with no events in prior washout window of 365 days, and no history of chronic pancreatitis or hereditary or congenital pancreatitis. Events with other explanations for acute pancreatitis such as alcoholic pancreatitis, severe alcoholism, recent alcohol intoxication, cholangitis or cholecystitits, biliary tract disease, endoscopic retrograde cholangiopancreatography, intestinal ischemia or obstruction or not eligible; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4192640, 199074, 4340961; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848; +replaces : ; +","2022-11-15","2023-09-25","rao@ohdsi.org","Drug Induced Acute pancreatitis",,"Drug Induced Acute pancreatitis","Pending peer review","","events of acute pancreatitis in an inpatient or emergency setting with no events in prior washout window of 365 days, and no history of chronic pancreatitis or hereditary or congenital pancreatitis. Events with other explanations for acute pancreatitis such as alcoholic pancreatitis, severe alcoholism, recent alcohol intoxication, cholangitis or cholecystitits, biliary tract disease, endoscopic retrograde cholangiopancreatography, intestinal ischemia or obstruction or not eligible","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4192640, 199074, 4340961","https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848","",,,,,,253,253 +254,"[P] Drug Resistant Epilepsy",254,"cohortNameLong : Drug Resistant Epilepsy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : first occurrence of epilepsy in inpatient, of subsequent epilepsy in an outpatient setting after another outpatient epilepsy visit more than 30 days before, or anti-epileptic drug on or after a diagnosis of epilepsy. Limit to persons with at least two different anti epilepsy drug or diagnosis of intractable epilepsy on or after index date; +hashTag : ; +contributors : Mathew Spotnitz; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377091, 380378, 4029498; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-drug-resistant-epilepsy/17569; +replaces : ; +","2022-11-17","2023-09-19","rao@ohdsi.org","Drug Resistant Epilepsy",,"Drug Resistant Epilepsy","Pending peer review","","first occurrence of epilepsy in inpatient, of subsequent epilepsy in an outpatient setting after another outpatient epilepsy visit more than 30 days before, or anti-epileptic drug on or after a diagnosis of epilepsy. Limit to persons with at least two different anti epilepsy drug or diagnosis of intractable epilepsy on or after index date","","Mathew Spotnitz","","","","","377091, 380378, 4029498","https//forums.ohdsi.org/t/phenotype-submission-drug-resistant-epilepsy/17569","",,,,,,254,254 +255,"[P] Alzheimer's disease (based on Imfeld, 2013)",255,"cohortNameLong : Alzheimer's disease (based on Imfeld, 2013); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : this is an approximation of algorithm published by Imfeld et.al 2013; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 378419, 4182210; +ohdsiForumPost : ; +replaces : ; +","2022-11-18","2023-09-19","rao@ohdsi.org","Alzheimer's disease (based on Imfeld, 2013)",,"Alzheimer's disease (based on Imfeld, 2013)","Pending peer review","","this is an approximation of algorithm published by Imfeld et.al 2013","","","","","","","378419, 4182210","","",,,,,,255,255 +256,"[P] Facial Palsy lower motor neuron including Bells Palsy",256,"cohortNameLong : Facial Palsy lower motor neuron including Bells Palsy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of facial palsy with 183 days washout period. Remove persons with congenital facial palsy. Remove events with upper motor neuron disease suggestive of stroke; +hashTag : #AESI; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374923, 4091559; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-facial-palsy-lmn-including-bells-palsy-thats-not-umn/17788; +replaces : ; +","2022-11-22","2023-09-21","rao@ohdsi.org","Facial Palsy lower motor neuron including Bells Palsy",,"Facial Palsy lower motor neuron including Bells Palsy","Pending peer review","","events of facial palsy with 183 days washout period. Remove persons with congenital facial palsy. Remove events with upper motor neuron disease suggestive of stroke","#AESI","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 4091559","https//forums.ohdsi.org/t/phenotype-submission-facial-palsy-lmn-including-bells-palsy-thats-not-umn/17788","",,,,,,256,256 +257,"[P] Emergency room visits or code",257,"cohortNameLong : Emergency room visits or code; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Emergency Room visits or code; +hashTag : #Visits; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2022-11-22","2023-09-19","rao@ohdsi.org","Emergency room visits or code",,"Emergency room visits or code","Pending peer review","","All events of Emergency Room visits or code","#Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,257,257 +258,"[P] Anaphylaxis or Anaphylactic shock events",258,"cohortNameLong : Anaphylaxis or Anaphylactic shock events; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of anaphylaxis or anaphylaxis shock due to serum with no events in prior clean window; +hashTag : ; +contributors : Erica Voss; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441202; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-24-anaphylaxis/16033; +replaces : ; +","2022-11-28","2023-09-19","rao@ohdsi.org","Anaphylaxis or Anaphylactic shock events",,"Anaphylaxis or Anaphylactic shock events","Pending peer review","","all events of anaphylaxis or anaphylaxis shock due to serum with no events in prior clean window","","Erica Voss","","","","","441202","https//forums.ohdsi.org/t/phenotype-phebruary-day-24-anaphylaxis/16033","",,,,,,258,258 +259,"[P] Anaphylaxis all cause",259,"cohortNameLong : Anaphylaxis all cause; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of anaphylaxis; +hashTag : ; +contributors : Gowtham A. Rao, Andrea Noel; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441202; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebrurary-2023-p2-anaphylaxis/18193; +replaces : ; +","2022-11-28","2023-09-25","rao@ohdsi.org","Anaphylaxis all cause",,"Anaphylaxis all cause","Pending peer review","","all events of anaphylaxis","","Gowtham A. Rao, Andrea Noel","'0000-0002-4949-7236'","'OHDSI'","","","441202","https//forums.ohdsi.org/t/phenotype-phebrurary-2023-p2-anaphylaxis/18193","",,,,,,259,259 +260,"[P] ST elevated myocardial infarction with inpatient admission",260,"cohortNameLong : ST elevated myocardial infarction with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of ST segment acute myocardial infarction in an inpatient or ER visit; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314666, 4296653, 4329847; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; +replaces : ; +","2022-11-29","2023-09-25","rao@ohdsi.org","ST elevated myocardial infarction with inpatient admission",,"ST elevated myocardial infarction with inpatient admission","Pending peer review","","all events of ST segment acute myocardial infarction in an inpatient or ER visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4296653, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,260,260 +261,"[P] Non ST elevated myocardial infarction with inpatient admission",261,"cohortNameLong : Non ST elevated myocardial infarction with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Non ST segment acute myocardial infarction in an inpatient or ER visit; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314666, 4329847; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; +replaces : ; +","2022-11-29","2023-09-25","rao@ohdsi.org","Non ST elevated myocardial infarction with inpatient admission",,"Non ST elevated myocardial infarction with inpatient admission","Pending peer review","","all events of Non ST segment acute myocardial infarction in an inpatient or ER visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,261,261 +262,"[P] Unstable Angina with inpatient admission",262,"cohortNameLong : Unstable Angina with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Unstable Angina in an inpatient or ER visit; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 315296; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; +replaces : ; +","2022-11-29","2023-09-19","rao@ohdsi.org","Unstable Angina with inpatient admission",,"Unstable Angina with inpatient admission","Pending peer review","","all events of Unstable Angina in an inpatient or ER visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","315296","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,262,262 +263,"[P] Unstable Angina OR NSTEMI with inpatient admission",263,"cohortNameLong : Unstable Angina OR NSTEMI with inpatient admission; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Unstable Angina or NSTEMI in an inpatient or ER visit; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314666, 4329847; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; +replaces : ; +","2022-11-29","2023-09-19","rao@ohdsi.org","Unstable Angina OR NSTEMI with inpatient admission",,"Unstable Angina OR NSTEMI with inpatient admission","Pending peer review","","all events of Unstable Angina or NSTEMI in an inpatient or ER visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,263,263 +264,"[P] Acute Hepatic Failure in persons with liver disease",264,"cohortNameLong : Acute Hepatic Failure in persons with liver disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Events of Hepatic Failure. Persons should have prior liver disease; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2022-11-29","2023-09-19","rao@ohdsi.org","Acute Hepatic Failure in persons with liver disease",,"Acute Hepatic Failure in persons with liver disease","Pending peer review","","Events of Hepatic Failure. Persons should have prior liver disease","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","",,,,,,264,264 +265,"[P] Drug Induced Acute Hepatic Failure",265,"cohortNameLong : Drug Induced Acute Hepatic Failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : first occurrence of Hepatic Failure and no other liver problems in past; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2022-11-29","2023-09-19","rao@ohdsi.org","Drug Induced Acute Hepatic Failure",,"Drug Induced Acute Hepatic Failure","Pending peer review","","first occurrence of Hepatic Failure and no other liver problems in past","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","",,,,,,265,265 +267,"[P] Acute Kidney Injury AKI, in persons with chronic kidney disease",267,"cohortNameLong : Acute Kidney Injury AKI, in persons with chronic kidney disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute Kidney Injury with washout period of 30 days. Persons should have chronic kidney disease that is is not ESKD, and should be not on chronic dialysis or had kidney transplant. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index; +hashTag : #DME; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197320; +ohdsiForumPost : ; +replaces : ; +","2022-11-29","2023-09-19","rao@ohdsi.org","Acute Kidney Injury AKI, in persons with chronic kidney disease",,"Acute Kidney Injury AKI, in persons with chronic kidney disease","Pending peer review","","all events of Acute Kidney Injury with washout period of 30 days. Persons should have chronic kidney disease that is is not ESKD, and should be not on chronic dialysis or had kidney transplant. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","#DME","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","","",,,,,,267,267 +268,"[P] Acute Kidney Injury AKI, in persons with NO chronic kidney disease",268,"cohortNameLong : Acute Kidney Injury AKI, in persons with NO chronic kidney disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute Kidney Injury with washout period of 30 days. Persons should have chronic kidney disease that is is not ESKD, and should be not on chronic dialysis or had kidney transplant. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197320; +ohdsiForumPost : ; +replaces : ; +","2022-11-29","2023-09-19","rao@ohdsi.org","Acute Kidney Injury AKI, in persons with NO chronic kidney disease",,"Acute Kidney Injury AKI, in persons with NO chronic kidney disease","Pending peer review","","all events of Acute Kidney Injury with washout period of 30 days. Persons should have chronic kidney disease that is is not ESKD, and should be not on chronic dialysis or had kidney transplant. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","","",,,,,,268,268 +269,"[D] Acute Kidney Injury AKI",269,"cohortNameLong : Acute Kidney Injury AKI; +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.8.0; +logicDescription : This accepted cohort was Deprecated because the rule to exclude no chronic dialysis was incorrect. This definition was replaced by 362. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index; +hashTag : #PhenotypePhebruary, #2022; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197320; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-29-acute-kidney-injury/16067; +replaces : ; +","2022-11-29","2023-09-19","rao@ohdsi.org","Acute Kidney Injury AKI",,"Acute Kidney Injury AKI","Accepted","3.8.0","This accepted cohort was Deprecated because the rule to exclude no chronic dialysis was incorrect. This definition was replaced by 362. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","#PhenotypePhebruary, #2022","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","https//forums.ohdsi.org/t/phenotype-phebruary-day-29-acute-kidney-injury/16067","",,,,,,269,269 +270,"[P] Hemolytic Anemia",270,"cohortNameLong : Hemolytic Anemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of hemolytic anemia, indexed on anemia or hemolysis; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435503, 439777, 441269; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; +replaces : ; +","2022-11-30","2023-09-19","rao@ohdsi.org","Hemolytic Anemia",,"Hemolytic Anemia","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,270,270 +271,"[P] Hemolytic Anemia Intra corpuscular",271,"cohortNameLong : Hemolytic Anemia Intra corpuscular; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, enzyme or RBC structure; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435503, 439777, 441269; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; +replaces : ; +","2022-11-30","2023-09-19","rao@ohdsi.org","Hemolytic Anemia Intra corpuscular",,"Hemolytic Anemia Intra corpuscular","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, enzyme or RBC structure","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,271,271 +273,"[P] Pathological Ventricular Tachycardia",273,"cohortNameLong : Pathological Ventricular Tachycardia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of ventricular tachycardia with hospitalization. note - the use of ventricular tachycardia is thought to imply pathological tachycardia vs. simple tachycardia; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 437579, 4103295; +ohdsiForumPost : ; +replaces : ; +","2022-12-06","2023-09-19","rao@ohdsi.org","Pathological Ventricular Tachycardia",,"Pathological Ventricular Tachycardia","Pending peer review","","all events of ventricular tachycardia with hospitalization. note - the use of ventricular tachycardia is thought to imply pathological tachycardia vs. simple tachycardia","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437579, 4103295","","",,,,,,273,273 +274,"[P] Cardiac arrest or Pathological Ventricular tachycardia",274,"cohortNameLong : Cardiac arrest or Pathological Ventricular tachycardia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Cardiac arrest or Pathological Ventricular tachycardia with inpatient stay; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 321042, 437579, 4103295; +ohdsiForumPost : ; +replaces : ; +","2022-12-06","2023-09-19","rao@ohdsi.org","Cardiac arrest or Pathological Ventricular tachycardia",,"Cardiac arrest or Pathological Ventricular tachycardia","Pending peer review","","Cardiac arrest or Pathological Ventricular tachycardia with inpatient stay","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321042, 437579, 4103295","","",,,,,,274,274 +275,"[P] Polymorphic Ventricular Tachycardia or Torsades de Pointes",275,"cohortNameLong : Polymorphic Ventricular Tachycardia or Torsades de Pointes; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Polymorphic Ventricular Tachycardia or Torsades de Pointes; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4088349, 4135823; +ohdsiForumPost : ; +replaces : ; +","2022-12-06","2024-09-11","rao@ohdsi.org","Polymorphic Ventricular Tachycardia or Torsades de Pointes",,"Polymorphic Ventricular Tachycardia or Torsades de Pointes","Pending peer review","","Polymorphic Ventricular Tachycardia or Torsades de Pointes","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","4088349, 4135823","","",,,,,,275,275 +276,"[P] Sudden Vision Loss",276,"cohortNameLong : Sudden Vision Loss; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Vision Loss, indexed on diagnosis of Vision Loss. With 1. no such events in prior washout window of 365 days 2. and no history of other pathological eye disease such as glaucoma, infections and others in 365 days to 1 day prior index. cohort exits is 90 days after cohort end date.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377556; +ohdsiForumPost : ; +replaces : ; +","2022-12-08","2024-09-11","rao@ohdsi.org","Sudden Vision Loss",,"Sudden Vision Loss","Pending peer review","","all events of Vision Loss, indexed on diagnosis of Vision Loss. With 1. no such events in prior washout window of 365 days 2. and no history of other pathological eye disease such as glaucoma, infections and others in 365 days to 1 day prior index. cohort exits is 90 days after cohort end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","377556","","",,,,,,276,276 +277,"[P] Sudden Hearing Loss",277,"cohortNameLong : Sudden Hearing Loss; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Sudden Hearing Loss or hearing loss that is managed by corticosteroids, imaging of head or multiple hearing exams after among persons without congenital, middle or inner ear disease and no past hearing tests; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374053, 377889; +ohdsiForumPost : ; +replaces : ; +","2022-12-08","2023-09-19","rao@ohdsi.org","Sudden Hearing Loss",,"Sudden Hearing Loss","Pending peer review","","all events of Sudden Hearing Loss or hearing loss that is managed by corticosteroids, imaging of head or multiple hearing exams after among persons without congenital, middle or inner ear disease and no past hearing tests","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","374053, 377889","","",,,,,,277,277 +278,"[P] Pain or ache that is Non Chronic",278,"cohortNameLong : Pain or ache that is Non Chronic; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of non chronic non generalized or diffuse pain; +hashTag : #Symptoms, #Pain; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 138525, 194133; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-01-04","2023-09-25","rao@ohdsi.org","Pain or ache that is Non Chronic",,"Pain or ache that is Non Chronic","Pending peer review","","all events of non chronic non generalized or diffuse pain","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138525, 194133","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,278,278 +279,"[P] Low Back Pain or injury",279,"cohortNameLong : Low Back Pain or injury; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of low back pain; +hashTag : #Symptoms, #Pain; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 134736, 194133; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-01-04","2023-09-25","rao@ohdsi.org","Low Back Pain or injury",,"Low Back Pain or injury","Pending peer review","","all events of low back pain","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134736, 194133","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,279,279 +280,"[P] Abdominal Pain or acute abdomen",280,"cohortNameLong : Abdominal Pain or acute abdomen; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of abdominal pain; +hashTag : #Symptoms, #Pain; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 200219; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-01-04","2023-09-25","rao@ohdsi.org","Abdominal Pain or acute abdomen",,"Abdominal Pain or acute abdomen","Pending peer review","","all events of abdominal pain","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200219","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,280,280 +281,"[P] Epigastric Pain",281,"cohortNameLong : Epigastric Pain; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of epigastric pain; +hashTag : #Symptoms, #Pain; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197381, 4306292; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-01-04","2023-09-25","rao@ohdsi.org","Epigastric Pain",,"Epigastric Pain","Pending peer review","","all events of epigastric pain","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197381, 4306292","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,281,281 +282,"[P] Joint Pain",282,"cohortNameLong : Joint Pain; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of joint pain; +hashTag : #Symptoms, #Pain; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 78232, 80180; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-01-04","2023-09-25","rao@ohdsi.org","Joint Pain",,"Joint Pain","Pending peer review","","all events of joint pain","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","78232, 80180","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,282,282 +283,"[P] Prostatitis",283,"cohortNameLong : Prostatitis; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : All events of prostatits that is either a first occurrence of chronic prostatitis, or did not have an event of prostatitis in past 1 year, with no testicular lesions, bladder neoplasm or abdominal or inguinal hernia in prior 1 year. cohort end 180 days post cohort end date; +hashTag : #Submitted; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194997; +ohdsiForumPost : ; +replaces : ; +","2023-01-13","2023-09-19","rao@ohdsi.org","Prostatitis",,"Prostatitis","Pending","","All events of prostatits that is either a first occurrence of chronic prostatitis, or did not have an event of prostatitis in past 1 year, with no testicular lesions, bladder neoplasm or abdominal or inguinal hernia in prior 1 year. cohort end 180 days post cohort end date","#Submitted","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194997","","",,,,,,283,283 +284,"[P] Myocarditis or Pericarditis",284,"cohortNameLong : Myocarditis or Pericarditis; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : All events of Myocarditis or Pericarditis; +hashTag : #Submitted; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 320116, 4138837; +ohdsiForumPost : ; +replaces : ; +","2023-01-14","2023-09-19","rao@ohdsi.org","Myocarditis or Pericarditis",,"Myocarditis or Pericarditis","Pending","","All events of Myocarditis or Pericarditis","#Submitted","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320116, 4138837","","",,,,,,284,284 +285,"[P] Myocarditis or Pericarditis Not due to infections",285,"cohortNameLong : Myocarditis or Pericarditis Not due to infections; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : All events of Myocarditis or Pericarditis without events that are due to Infectious Etiology; +hashTag : #Submitted; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 320116, 4138837; +ohdsiForumPost : ; +replaces : ; +","2023-01-14","2023-09-19","rao@ohdsi.org","Myocarditis or Pericarditis Not due to infections",,"Myocarditis or Pericarditis Not due to infections","Pending","","All events of Myocarditis or Pericarditis without events that are due to Infectious Etiology","#Submitted","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320116, 4138837","","",,,,,,285,285 +287,"[P] Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica",287,"cohortNameLong : Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, OR related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days OR events of myelitis unspecified with weakness or asthenia, neuromyelitis optica with weakness or asthenia. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia; +hashTag : #Sensitivity; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : Evan Minty; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 79908, 138965, 139803, 380995, 443904; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; +replaces : ; +","2023-01-17","2023-09-19","rao@ohdsi.org","Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica",,"Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica","Pending","","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, OR related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days OR events of myelitis unspecified with weakness or asthenia, neuromyelitis optica with weakness or asthenia. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Sensitivity","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 138965, 139803, 380995, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,287,287 +288,"[P] Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results",288,"cohortNameLong : Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest event of Type 2 Diabetes Mellitus (DM), indexed on diagnosis or Blood glucose lowering drugs excluding insulin or high Hemoglobin A1c (limited to treatments or measurement that are followed with Type 2 DM diagnosis within 365 days) excluding persons with Type 1 DM or secondary diabetes mellitus in the all time prior including index date; +hashTag : #Disease; +contributors : Patrick Ryan, Jill Hardin; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201820, 201826; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-1-type-2-diabetes-mellitus/15764; +replaces : ; +","2023-01-25","2023-09-20","rao@ohdsi.org","Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results",,"Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results","Pending","","Earliest event of Type 2 Diabetes Mellitus (DM), indexed on diagnosis or Blood glucose lowering drugs excluding insulin or high Hemoglobin A1c (limited to treatments or measurement that are followed with Type 2 DM diagnosis within 365 days) excluding persons with Type 1 DM or secondary diabetes mellitus in the all time prior including index date","#Disease","Patrick Ryan, Jill Hardin","","","","","201820, 201826","https//forums.ohdsi.org/t/phenotype-phebruary-day-1-type-2-diabetes-mellitus/15764","",,,,,,288,288 +289,"[P] Presence Of Cardiac Arrhythmia",289,"cohortNameLong : Presence Of Cardiac Arrhythmia; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : All events of Cardiac arrythmia or treatments for cardiac arrythmia; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313217, 44784217; +ohdsiForumPost : ; +replaces : ; +","2023-01-26","2023-09-25","rao@ohdsi.org","Presence Of Cardiac Arrhythmia",,"Presence Of Cardiac Arrhythmia","Pending","","All events of Cardiac arrythmia or treatments for cardiac arrythmia","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 44784217","","",,,,,,289,289 +290,"[P] Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment",290,"cohortNameLong : Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of thyroiditis, indexed on an occurrence of Thyroiditis (including hypo and hyperthyroidism) condition or exposure to levothyroxine (limited to drug exposure that occurred within 365 days prior to an occurrence of Thyroiditis condition). Limited to events that had zero condition occurrence of Hypothyroidism other than Hashimoto's Disease (ie excluding alternative causes of hypothyroidism) all time prior and including index; +hashTag : #Disease; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 138384, 140673; +ohdsiForumPost : ; +replaces : ; +","2023-01-26","2023-09-25","rao@ohdsi.org","Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment",,"Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment","Pending peer review","","All events of thyroiditis, indexed on an occurrence of Thyroiditis (including hypo and hyperthyroidism) condition or exposure to levothyroxine (limited to drug exposure that occurred within 365 days prior to an occurrence of Thyroiditis condition). Limited to events that had zero condition occurrence of Hypothyroidism other than Hashimoto's Disease (ie excluding alternative causes of hypothyroidism) all time prior and including index","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138384, 140673","","",,,,,,290,290 +291,"[P] Gynecomastia, indexed on diagnosis, procedure or symptoms",291,"cohortNameLong : Gynecomastia, indexed on diagnosis, procedure or symptoms; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : All events of Gynecomastia diagnosis, indexed on a diagnosis of Gynecomastia or a procedure of Mastectomy for gynecomastia or a presentation/symptoms of Gynecomastia (breast lump or pain). Events indexed on a procedures or symptoms are required to be followed by a diagnosis within a year; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 78474, 80767, 137809; +ohdsiForumPost : ; +replaces : ; +","2023-01-26","2023-09-25","rao@ohdsi.org","Gynecomastia, indexed on diagnosis, procedure or symptoms",,"Gynecomastia, indexed on diagnosis, procedure or symptoms","Pending","","All events of Gynecomastia diagnosis, indexed on a diagnosis of Gynecomastia or a procedure of Mastectomy for gynecomastia or a presentation/symptoms of Gynecomastia (breast lump or pain). Events indexed on a procedures or symptoms are required to be followed by a diagnosis within a year","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","78474, 80767, 137809","","",,,,,,291,291 +292,"[P] Acute Hepatic Failure in persons without chronic hepatic failure",292,"cohortNameLong : Hepatic Failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of acute hepatic failure. no chronic hepatic failure; +hashTag : #Disease; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2023-01-26","2023-09-25","rao@ohdsi.org","Acute Hepatic Failure in persons without chronic hepatic failure",,"Hepatic Failure","Pending peer review","","all events of acute hepatic failure. no chronic hepatic failure","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","",,,,,,292,292 +293,"[P] Acute Hepatic Injury or inpatient jaundice",293,"cohortNameLong : Acute Hepatic Injury with no chronic hepatic failure; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, with no chronic hepatic failure. Sequela of chronic liver disease maps to codes that historically were used for acute liver injury; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194990; +ohdsiForumPost : ; +replaces : ; +","2023-01-26","2023-09-25","rao@ohdsi.org","Acute Hepatic Injury or inpatient jaundice",,"Acute Hepatic Injury with no chronic hepatic failure","Pending","","All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, with no chronic hepatic failure. Sequela of chronic liver disease maps to codes that historically were used for acute liver injury","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194990","","",,,,,,293,293 +294,"[P] Acute Hepatic Injury with no pre-existing liver disease",294,"cohortNameLong : Acute Hepatic Injury with no pre-existing liver disease; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest event of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury. Patients are excluded if they have a diagnosis of chronic hepatic failure any time in the past or on the same day. Also excluded patients who have other prior liver disease such as viral hepatitis, Liver Cirrhosis, liver fibrosis, alcoholic and others anytime prior including index; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194990; +ohdsiForumPost : ; +replaces : ; +","2023-01-26","2023-09-25","rao@ohdsi.org","Acute Hepatic Injury with no pre-existing liver disease",,"Acute Hepatic Injury with no pre-existing liver disease","Pending","","Earliest event of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury. Patients are excluded if they have a diagnosis of chronic hepatic failure any time in the past or on the same day. Also excluded patients who have other prior liver disease such as viral hepatitis, Liver Cirrhosis, liver fibrosis, alcoholic and others anytime prior including index","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194990","","",,,,,,294,294 +295,"[P] Acute Hepatic Failure in persons with no pre-existing liver disease",295,"cohortNameLong : Acute Hepatic Failure in persons with no pre-existing liver disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Event of hepatic Failure, indexed on the diagnosis of Hepatic Failure. Patients are excluded if they have a diagnosis of chronic hepatic failure any time in the past or on the same day. Also excluded patients who have other prior liver disease such as viral hepatitis, Liver Cirrhosis, liver fibrosis, alcoholic and others anytime prior including index; +hashTag : #Submitted; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2023-01-26","2023-09-19","rao@ohdsi.org","Acute Hepatic Failure in persons with no pre-existing liver disease",,"Acute Hepatic Failure in persons with no pre-existing liver disease","Pending peer review","","Event of hepatic Failure, indexed on the diagnosis of Hepatic Failure. Patients are excluded if they have a diagnosis of chronic hepatic failure any time in the past or on the same day. Also excluded patients who have other prior liver disease such as viral hepatitis, Liver Cirrhosis, liver fibrosis, alcoholic and others anytime prior including index","#Submitted","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","",,,,,,295,295 +296,"Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era)",296,"cohortNameLong : Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era); +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.9.0; +logicDescription : events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia; +hashTag : #Accepted, #Level2; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : Evan Minty; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 79908, 139803, 443904; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; +replaces : ; +","2023-01-26","2023-09-19","rao@ohdsi.org","Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era)",,"Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era)","Accepted","3.9.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 139803, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,296,296 +298,"[P] Urinary bleed events in persons without renal glomerular disease",298,"cohortNameLong : Urinary bleed events in persons without renal glomerular disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of urinary bleeds in persons with no recent kidney biopsy, no chronic kidney disease or recent renal glomerular disease; +hashTag : #Symptoms, #urinary; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 79864, 437038; +ohdsiForumPost : ; +replaces : ; +","2023-02-02","2023-09-25","rao@ohdsi.org","Urinary bleed events in persons without renal glomerular disease",,"Urinary bleed events in persons without renal glomerular disease","Pending peer review","","all events of urinary bleeds in persons with no recent kidney biopsy, no chronic kidney disease or recent renal glomerular disease","#Symptoms, #urinary","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","79864, 437038","","",,,,,,298,298 +299,"[P] Acute gastrointestinal bleeding or perforation events",299,"cohortNameLong : Acute gastrointestinal bleeding or perforation events; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of gastrointestinal bleed or perforation; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192671; +ohdsiForumPost : ; +replaces : ; +","2023-02-02","2023-09-25","rao@ohdsi.org","Acute gastrointestinal bleeding or perforation events",,"Acute gastrointestinal bleeding or perforation events","Pending peer review","","all events of gastrointestinal bleed or perforation","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671","","",,,,,,299,299 +300,"[P] Heavy menstrual bleeding (menorrhagia) events",300,"cohortNameLong : Heavy menstrual bleeding (menorrhagia) events; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197607, 4302555; +ohdsiForumPost : ; +replaces : ; +","2023-02-02","2023-09-25","rao@ohdsi.org","Heavy menstrual bleeding (menorrhagia) events",,"Heavy menstrual bleeding (menorrhagia) events","Pending peer review","","","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197607, 4302555","","",,,,,,300,300 +304,"Neurofibromatosis type 1 (FP)",304,"cohortNameLong : Neurofibromatosis type 1 (FP); +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.12.0; +logicDescription : ; +hashTag : #PhenotypePhebruary, #2023, #Neurofibromatosis; +contributors : Maxim Moinat; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377252; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; +replaces : ; +","2023-02-07","2023-09-19","rao@ohdsi.org","Neurofibromatosis type 1 (FP)",,"Neurofibromatosis type 1 (FP)","Accepted","3.12.0","","#PhenotypePhebruary, #2023, #Neurofibromatosis","Maxim Moinat","","","","","377252","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,304,304 +305,"Neurofibromatosis type 1 without Type 2 (FP)",305,"cohortNameLong : Neurofibromatosis type 1 without Type 2 (FP); +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.12.0; +logicDescription : Persons with Neurofibromatosis without a diagnosis of NF2, vestibular schwannoma or hearing problems. Not all data sources capture NF subtype (e.g. when using ICD10), so to select NF1 we exclude diagnoses that give a suspicion of NF2 (affecting auditory system); +hashTag : #PhenotypePhebruary, #2023, #Neurofibromatosis; +contributors : Maxim Moinat; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 376938; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; +replaces : ; +","2023-02-07","2023-09-19","rao@ohdsi.org","Neurofibromatosis type 1 without Type 2 (FP)",,"Neurofibromatosis type 1 without Type 2 (FP)","Accepted","3.12.0","Persons with Neurofibromatosis without a diagnosis of NF2, vestibular schwannoma or hearing problems. Not all data sources capture NF subtype (e.g. when using ICD10), so to select NF1 we exclude diagnoses that give a suspicion of NF2 (affecting auditory system)","#PhenotypePhebruary, #2023, #Neurofibromatosis","Maxim Moinat","","","","","376938","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,305,305 +306,"Optical pathway glioma and neurofibromatosis (FP)",306,"cohortNameLong : Optical pathway glioma and neurofibromatosis (FP); +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.12.0; +logicDescription : Persons with an optic nerve glioma and diagnosis of neurofibromatosis anytime in persons history. This would be the preferred code for an OPG; +hashTag : #PhenotypePhebruary, #2023, #Neurofibromatosis; +contributors : Maxim Moinat; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4112970; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; +replaces : ; +","2023-02-07","2023-09-19","rao@ohdsi.org","Optical pathway glioma and neurofibromatosis (FP)",,"Optical pathway glioma and neurofibromatosis (FP)","Accepted","3.12.0","Persons with an optic nerve glioma and diagnosis of neurofibromatosis anytime in persons history. This would be the preferred code for an OPG","#PhenotypePhebruary, #2023, #Neurofibromatosis","Maxim Moinat","","","","","4112970","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,306,306 +307,"Optical pathway glioma or non mal neoplasm of optic nerve w nf",307,"cohortNameLong : Optical pathway glioma or non malignant neoplasm of optic nerve w neurofibromatosis; +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.12.0; +logicDescription : Persons with an optic nerve glioma OR neoplasm of optic nerve, and a diagnosis of neurofibromatosis anytime in persons history; +hashTag : #PhenotypePhebruary, #2023, #Neurofibromatosis; +contributors : Maxim Moinat; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4216000, 4246137; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; +replaces : ; +","2023-02-07","2023-09-19","rao@ohdsi.org","Optical pathway glioma or non mal neoplasm of optic nerve w nf",,"Optical pathway glioma or non malignant neoplasm of optic nerve w neurofibromatosis","Accepted","3.12.0","Persons with an optic nerve glioma OR neoplasm of optic nerve, and a diagnosis of neurofibromatosis anytime in persons history","#PhenotypePhebruary, #2023, #Neurofibromatosis","Maxim Moinat","","","","","4216000, 4246137","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,307,307 +308,"Optical pathway glioma with MRI imaging and ophth visits NF",308,"cohortNameLong : Optical pathway glioma with MRI imaging and ophthalmology visits Neurofibromatosis; +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.12.0; +logicDescription : Persons with neurofibromatosis, that also had one MRI of the brain AND at least 3 ophthalmology visits within one year (anytime in persons history). In some centers, an OPG might be coded as general NF and needs to be inferred from follow-up care after diagnosis; +hashTag : #PhenotypePhebruary, #2023, #Neurofibromatosis; +contributors : Maxim Moinat; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 376938; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; +replaces : ; +","2023-02-07","2023-09-19","rao@ohdsi.org","Optical pathway glioma with MRI imaging and ophth visits NF",,"Optical pathway glioma with MRI imaging and ophthalmology visits Neurofibromatosis","Accepted","3.12.0","Persons with neurofibromatosis, that also had one MRI of the brain AND at least 3 ophthalmology visits within one year (anytime in persons history). In some centers, an OPG might be coded as general NF and needs to be inferred from follow-up care after diagnosis","#PhenotypePhebruary, #2023, #Neurofibromatosis","Maxim Moinat","","","","","376938","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,308,308 +311,"[P] Parasomnia",311,"cohortNameLong : Parasomnia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Parasomnia that may be expected to persist for atleast 30 days with events collapse 1 day after; +hashTag : ; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440087; +ohdsiForumPost : ; +replaces : ; +","2023-02-10","2023-09-23","rao@ohdsi.org","Parasomnia",,"Parasomnia","Pending peer review","","All events of Parasomnia that may be expected to persist for atleast 30 days with events collapse 1 day after","","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","","","","440087","","",,,,,,311,311 +318,"[P] Acute Hepatic Failure in persons without chronic hepatic failure on same day",318,"cohortNameLong : Acute Hepatic Failure in persons without chronic hepatic failure on same day; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of acute hepatic failure. If the persons also has chronic hepatic failure coded on the same day, they are excluded; +hashTag : #Disease; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2023-02-11","2023-09-19","rao@ohdsi.org","Acute Hepatic Failure in persons without chronic hepatic failure on same day",,"Acute Hepatic Failure in persons without chronic hepatic failure on same day","Pending peer review","","all events of acute hepatic failure. If the persons also has chronic hepatic failure coded on the same day, they are excluded","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","",,,,,,318,318 +324,"[P] Pain",324,"cohortNameLong : Pain; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of pain; +hashTag : #Symptoms, #Pain; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 138525, 194133; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-02-12","2023-09-25","rao@ohdsi.org","Pain",,"Pain","Pending peer review","","all events of pain","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138525, 194133","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,324,324 +325,"[P] Inpatient Hospitalization By Site of care or type of service",325,"cohortNameLong : Inpatient Hospitalization By Site of care or type of service; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : All events of Inpatient visit defined by site of care (visit domain) or type of service (procedure or observation codes) within any of the main visit categories; +hashTag : #Visits; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-02-12","2023-09-19","rao@ohdsi.org","Inpatient Hospitalization By Site of care or type of service",,"Inpatient Hospitalization By Site of care or type of service","Pending","","All events of Inpatient visit defined by site of care (visit domain) or type of service (procedure or observation codes) within any of the main visit categories","#Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,325,325 +327,"[P][R] Pharyngitis ",327,"cohortNameLong : Pharyngitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pharyngitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 25297, 4226263; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-02-12","2023-09-19","rao@ohdsi.org","Pharyngitis",,"Pharyngitis","Pending peer review","","all events of Pharyngitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","25297, 4226263","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,327,327 +328,"[P] Wheezing",328,"cohortNameLong : Wheezing; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of wheezing; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314754; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-02-12","2023-09-25","rao@ohdsi.org","Wheezing",,"Wheezing","Pending peer review","","All events of wheezing","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314754","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,328,328 +330,"[P][R] Abdominal bloating ",330,"cohortNameLong : Abdominal bloating; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Abdominal bloating. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4023572; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-02-12","2023-09-19","rao@ohdsi.org","Abdominal bloating",,"Abdominal bloating","Pending peer review","","all events of Abdominal bloating. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4023572","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,330,330 +331,"[P] Encephalopathy",331,"cohortNameLong : Encephalopathy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events Encephalopathy; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 372892, 43021132; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-02-12","2023-09-25","rao@ohdsi.org","Encephalopathy",,"Encephalopathy","Pending peer review","","events Encephalopathy","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372892, 43021132","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,331,331 +332,"[P] Pain or ache that is Chronic",332,"cohortNameLong : Pain or ache that is Chronic; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of non chronic non generalized or diffuse pain; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 138525, 194133; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-02-12","2023-09-25","rao@ohdsi.org","Pain or ache that is Chronic",,"Pain or ache that is Chronic","Pending peer review","","all events of non chronic non generalized or diffuse pain","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138525, 194133","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,332,332 +333,"[P] Alcohol Use Disorder",333,"cohortNameLong : Alcohol Use Disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of abdominal pain; +hashTag : #Symptoms, #Drug; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435243, 36714559; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-02-12","2023-09-25","rao@ohdsi.org","Alcohol Use Disorder",,"Alcohol Use Disorder","Pending peer review","","all events of abdominal pain","#Symptoms, #Drug","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435243, 36714559","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,333,333 +334,"[P] Asthma",334,"cohortNameLong : Asthma; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of asthma diagnosis or therapy for asthma with a history of another asthma therapy more than 180 days before, or asthma diagnosis; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 317009; +ohdsiForumPost : ; +replaces : ; +","2023-02-12","2023-09-25","rao@ohdsi.org","Asthma",,"Asthma","Pending peer review","","All events of asthma diagnosis or therapy for asthma with a history of another asthma therapy more than 180 days before, or asthma diagnosis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317009","","",,,,,,334,334 +335,"[P] Anxiety or Fear",335,"cohortNameLong : Anxiety or Fear; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Events of Anxiety or Fear; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441542, 442077; +ohdsiForumPost : ; +replaces : ; +","2023-02-12","2023-09-19","rao@ohdsi.org","Anxiety or Fear",,"Anxiety or Fear","Pending peer review","","Events of Anxiety or Fear","","","","","","","441542, 442077","","",,,,,,335,335 +339,"[P][R] Low blood pressure ",339,"cohortNameLong : Low blood pressure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Low blood pressure. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 317002; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-14","2023-09-19","rao@ohdsi.org","Low blood pressure",,"Low blood pressure","Pending peer review","","all events of Low blood pressure. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317002","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,339,339 +340,"[P] Hives, Erythema, Eruption, Urticaria",340,"cohortNameLong : Hives, Erythema, Eruption, Urticaria; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Hives, Erythema, Eruption, Urticaria; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 134438, 45766714; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-14","2023-09-25","rao@ohdsi.org","Hives, Erythema, Eruption, Urticaria",,"Hives, Erythema, Eruption, Urticaria","Pending peer review","","All events of Hives, Erythema, Eruption, Urticaria","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134438, 45766714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,340,340 +341,"[P] Loss of mentation including comma, syncope, altered consciousness",341,"cohortNameLong : Loss of mentation including comma, syncope, altered consciousness; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Disturbance of consciousness, loss of mentation including comma, syncope, altered consciousness; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 376961, 4206148; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-14","2023-09-25","rao@ohdsi.org","Loss of mentation including comma, syncope, altered consciousness",,"Loss of mentation including comma, syncope, altered consciousness","Pending peer review","","All events of Disturbance of consciousness, loss of mentation including comma, syncope, altered consciousness","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376961, 4206148","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,341,341 +342,"[P][R] Urinary incontinence",342,"cohortNameLong : Urinary incontinence; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Urinary incontinence. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197672; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-14","2023-09-25","rao@ohdsi.org","Urinary incontinence",,"Urinary incontinence","Pending peer review","","all events of Urinary incontinence. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197672","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,342,342 +343,"[P] Fecal Incontinence",343,"cohortNameLong : Fecal Incontinence; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Fecal Incontinence; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197675, 4101350; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-14","2023-09-25","rao@ohdsi.org","Fecal Incontinence",,"Fecal Incontinence","Pending peer review","","All events of Fecal Incontinence","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197675, 4101350","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,343,343 +344,"[P] Doctors office or clinic visit without other overlapping visits",344,"cohortNameLong : Doctors office or clinic visit without other overlapping visits; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Doctors office or clinic visit that does not overlap with inpatient, urgent care or emergency visit; +hashTag : #Visits; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-03-14","2023-09-25","rao@ohdsi.org","Doctors office or clinic visit without other overlapping visits",,"Doctors office or clinic visit without other overlapping visits","Pending peer review","","All events of Doctors office or clinic visit that does not overlap with inpatient, urgent care or emergency visit","#Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,344,344 +346,"[P] Non urgent outpatient visit without overlapping inpatient or emergency visit",346,"cohortNameLong : Non urgent outpatient visit without overlapping inpatient or emergency visit; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Doctors office or clinic visit that does not overlap with inpatient, urgent care or emergency visit. If a person has visits on consecutive days, they are collapsed into a spans of days; +hashTag : #Visits; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-03-14","2023-10-22","rao@ohdsi.org","Non urgent outpatient visit without overlapping inpatient or emergency visit",,"Non urgent outpatient visit without overlapping inpatient or emergency visit","Pending peer review","","All events of Doctors office or clinic visit that does not overlap with inpatient, urgent care or emergency visit. If a person has visits on consecutive days, they are collapsed into a spans of days","#Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,346,346 +347,"[P] Ambulance utilization",347,"cohortNameLong : Ambulance utilization; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Ambulance use; +hashTag : #Visits; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-03-14","2023-09-25","rao@ohdsi.org","Ambulance utilization",,"Ambulance utilization","Pending peer review","","All events of Ambulance use","#Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,347,347 +348,"[P][R] Blood in urine ",348,"cohortNameLong : Blood in urine; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Blood in urine. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 79864, 437038; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-15","2023-09-19","rao@ohdsi.org","Blood in urine",,"Blood in urine","Pending peer review","","all events of Blood in urine. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","79864, 437038","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,348,348 +349,"[P] Lower gastrointestinal bleeding events",349,"cohortNameLong : Lower gastrointestinal bleeding events; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of lower gastrointestinal bleed; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197925, 4245614; +ohdsiForumPost : ; +replaces : ; +","2023-03-15","2023-09-25","rao@ohdsi.org","Lower gastrointestinal bleeding events",,"Lower gastrointestinal bleeding events","Pending peer review","","all events of lower gastrointestinal bleed","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197925, 4245614","","",,,,,,349,349 +350,"[P][R] Hemoptysis",350,"cohortNameLong : Hemoptysis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hemoptysis. Persons exit on cohort end date; +hashTag : #Referent, #Condition, #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 261687; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-15","2023-09-28","rao@ohdsi.org","Hemoptysis",,"Hemoptysis","Pending peer review","","all events of Hemoptysis. Persons exit on cohort end date","#Referent, #Condition, #respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","261687","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,350,350 +351,"[P] Nasal Polyp present",351,"cohortNameLong : Nasal Polyp present; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of nasal polyp; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4209223, 4285898, 42537251; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-15","2023-09-25","rao@ohdsi.org","Nasal Polyp present",,"Nasal Polyp present","Pending peer review","","all events of nasal polyp","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4209223, 4285898, 42537251","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,351,351 +352,"[P][R] Inflamed tonsils ",352,"cohortNameLong : Inflamed tonsils; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Inflamed tonsils. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 24660, 4083666; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-15","2023-09-19","rao@ohdsi.org","Inflamed tonsils",,"Inflamed tonsils","Pending peer review","","all events of Inflamed tonsils. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24660, 4083666","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,352,352 +353,"[P][R] Conjunctivitis ",353,"cohortNameLong : Conjunctivitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Conjunctivitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 379019; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-15","2023-09-19","rao@ohdsi.org","Conjunctivitis",,"Conjunctivitis","Pending peer review","","all events of Conjunctivitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","379019","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,353,353 +354,"[P] Nasal Congestion or Rhinitis or Common Cold",354,"cohortNameLong : Nasal Congestion or Rhinitis or Common Cold; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Nasal Congestion or Rhinitis or Common Cold; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257007, 4320791; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-15","2023-09-25","rao@ohdsi.org","Nasal Congestion or Rhinitis or Common Cold",,"Nasal Congestion or Rhinitis or Common Cold","Pending peer review","","all events of Nasal Congestion or Rhinitis or Common Cold","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 4320791","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,354,354 +355,"[P] Laryngitis",355,"cohortNameLong : Laryngitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Laryngitis; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 24969, 260134; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-15","2023-09-25","rao@ohdsi.org","Laryngitis",,"Laryngitis","Pending peer review","","all events of Laryngitis","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24969, 260134","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,355,355 +356,"[P] Epistaxis",356,"cohortNameLong : Epistaxis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Epistaxis; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4096682; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-15","2023-09-25","rao@ohdsi.org","Epistaxis",,"Epistaxis","Pending peer review","","all events of Epistaxis","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4096682","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,356,356 +357,"[P][R] Pulmonary edema ",357,"cohortNameLong : Pulmonary edema; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pulmonary edema. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 261600, 4078925; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-15","2023-09-19","rao@ohdsi.org","Pulmonary edema",,"Pulmonary edema","Pending peer review","","all events of Pulmonary edema. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","261600, 4078925","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,357,357 +358,"[P] Acute Respiratory Failure among persons with no chronic respiratory failure",358,"cohortNameLong : Acute Respiratory Failure among persons with no chronic respiratory failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Acute Respiratory Failure among persons with no evidence of chronic respiratory failure in past 365 days; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 319049, 4256228; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-15","2023-09-25","rao@ohdsi.org","Acute Respiratory Failure among persons with no chronic respiratory failure",,"Acute Respiratory Failure among persons with no chronic respiratory failure","Pending peer review","","All events of Acute Respiratory Failure among persons with no evidence of chronic respiratory failure in past 365 days","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049, 4256228","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,358,358 +359,"[P] Acute Respiratory Failure",359,"cohortNameLong : Acute Respiratory Failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Acute Respiratory Failure; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 319049, 4256228; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-15","2023-09-25","rao@ohdsi.org","Acute Respiratory Failure",,"Acute Respiratory Failure","Pending peer review","","All events of Acute Respiratory Failure","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049, 4256228","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,359,359 +360,"[P] Pleural Effusion",360,"cohortNameLong : Pleural Effusion; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Pleural Effusion; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 254061; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-03-15","2023-09-25","rao@ohdsi.org","Pleural Effusion",,"Pleural Effusion","Pending peer review","","All events of Pleural Effusion","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254061","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,360,360 +361,"[P][R] Restless legs ",361,"cohortNameLong : Restless legs; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Restless legs. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 73754; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; +replaces : ; +","2023-04-25","2023-09-19","rao@ohdsi.org","Restless legs",,"Restless legs","Pending peer review","","all events of Restless legs. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","73754","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,361,361 +362,"Acute Kidney Injury AKI",362,"cohortNameLong : Acute Kidney Injury AKI; +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.8.0; +logicDescription : Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index; +hashTag : #PhenotypePhebruary, #2022, #DME; +contributors : Marcela V Rivera David Vizcaya; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197320; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-29-acute-kidney-injury/16067; +replaces : ; +","2023-04-25","2023-09-19","rao@ohdsi.org","Acute Kidney Injury AKI",,"Acute Kidney Injury AKI","Accepted","3.8.0","Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","#PhenotypePhebruary, #2022, #DME","Marcela V Rivera David Vizcaya","","","","","197320","https//forums.ohdsi.org/t/phenotype-phebruary-day-29-acute-kidney-injury/16067","",,,,,,362,362 +363,"[P][R] Joint stiffness ",363,"cohortNameLong : Joint stiffness; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Joint stiffness. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 72404, 72711; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-30","2023-09-19","rao@ohdsi.org","Joint stiffness",,"Joint stiffness","Pending peer review","","all events of Joint stiffness. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","72404, 72711","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,363,363 +364,"[P][R] Sleep disorder ",364,"cohortNameLong : Sleep disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Sleep disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435524, 442588; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-30","2023-09-19","rao@ohdsi.org","Sleep disorder",,"Sleep disorder","Pending peer review","","all events of Sleep disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435524, 442588","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,364,364 +365,"[P] Dysuria",365,"cohortNameLong : Dysuria; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Dysuria; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197684, 4021780; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-30","2023-09-25","rao@ohdsi.org","Dysuria",,"Dysuria","Pending peer review","","all events of Dysuria","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197684, 4021780","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,365,365 +366,"[P] Streptococcal throat infection",366,"cohortNameLong : Streptococcal throat infection; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Streptococcal throat infection; +hashTag : #respiratory; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 25297, 28060, 4226263; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Streptococcal throat infection",,"Streptococcal throat infection","Pending peer review","","All events of Streptococcal throat infection","#respiratory","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","25297, 28060, 4226263","","",,,,,,366,366 +367,"[P] Allergic Rhinitis",367,"cohortNameLong : Allergic Rhinitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Allergic rhinitis; +hashTag : #respiratory; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257007, 4320791; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Allergic Rhinitis",,"Allergic Rhinitis","Pending peer review","","All events of Allergic rhinitis","#respiratory","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 4320791","","",,,,,,367,367 +368,"[P][R] Sinusitis ",368,"cohortNameLong : Sinusitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Sinusitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 260123, 4283893; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Sinusitis",,"Sinusitis","Pending peer review","","all events of Sinusitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","260123, 4283893","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,368,368 +369,"[P][R] Allergic condition ",369,"cohortNameLong : Allergic condition; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Allergic condition. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257007, 43021227; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Allergic condition",,"Allergic condition","Pending peer review","","all events of Allergic condition. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 43021227","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,369,369 +370,"[P] Allergic disorder",370,"cohortNameLong : Allergic disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Allergic Disorder; +hashTag : #symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257007, 43021227; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Allergic disorder",,"Allergic disorder","Pending peer review","","All events of Allergic Disorder","#symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 43021227","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,370,370 +371,"[P] Claudication Pain",371,"cohortNameLong : Claudication Pain; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of claudication pain; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 195834, 317309, 442774; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Claudication Pain",,"Claudication Pain","Pending peer review","","all events of claudication pain","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","195834, 317309, 442774","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,371,371 +372,"[P] Otitis media",372,"cohortNameLong : Otitis media; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Otitis media; +hashTag : #respiratory; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 372328; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Otitis media",,"Otitis media","Pending peer review","","All events of Otitis media","#respiratory","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372328","","",,,,,,372,372 +373,"[P] Iron deficiency Anemia",373,"cohortNameLong : Iron deficiency Anemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of iron deficiency anemia; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439777; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Iron deficiency Anemia",,"Iron deficiency Anemia","Pending peer review","","all events of iron deficiency anemia","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439777","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,373,373 +374,"[P][R] Drug dependence ",374,"cohortNameLong : Drug dependence; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Drug dependence. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 437264, 440069; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Drug dependence",,"Drug dependence","Pending peer review","","all events of Drug dependence. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437264, 440069","","",,,,,,374,374 +375,"[P] Gall stone disorder",375,"cohortNameLong : Gall stone disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Gall stone; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 444367, 4145627; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Gall stone disorder",,"Gall stone disorder","Pending peer review","","all events of Gall stone","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","444367, 4145627","","",,,,,,375,375 +376,"[P][R] Bleeding skin ",376,"cohortNameLong : Bleeding skin; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Bleeding skin. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441259, 4177600; +ohdsiForumPost : Pending; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Bleeding skin",,"Bleeding skin","Pending peer review","","all events of Bleeding skin. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441259, 4177600","Pending","",,,,,,376,376 +377,"[P][R] Petechiae ",377,"cohortNameLong : Petechiae; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Petechiae. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4155911; +ohdsiForumPost : Pending; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Petechiae",,"Petechiae","Pending peer review","","all events of Petechiae. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4155911","Pending","",,,,,,377,377 +378,"[P][R] Purpuric disorder ",378,"cohortNameLong : Purpuric disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Purpuric disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441259, 4307580; +ohdsiForumPost : Pending; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Purpuric disorder",,"Purpuric disorder","Pending peer review","","all events of Purpuric disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441259, 4307580","Pending","",,,,,,378,378 +379,"[P] Ecchymosis",379,"cohortNameLong : Ecchymosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Ecchymosis anywhere; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 438252, 4118793; +ohdsiForumPost : Pending; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Ecchymosis",,"Ecchymosis","Pending peer review","","all events of Ecchymosis anywhere","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438252, 4118793","Pending","",,,,,,379,379 +380,"[P][R] Jaundice ",380,"cohortNameLong : Jaundice; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Jaundice. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137977, 435656; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Jaundice",,"Jaundice","Pending peer review","","all events of Jaundice. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137977, 435656","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,380,380 +381,"[P] Skin Itching",381,"cohortNameLong : Skin Itching; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of skin itching; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 133834, 133835, 135618, 4169287; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Skin Itching",,"Skin Itching","Pending peer review","","events of skin itching","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133834, 133835, 135618, 4169287","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,381,381 +382,"[P] Prurititc Rash",382,"cohortNameLong : Prurititc Rash; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : events of pruritic rash; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 135618, 4169287; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Prurititc Rash",,"Prurititc Rash","Pending peer review","","events of pruritic rash","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","135618, 4169287","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,382,382 +383,"[P] Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis",383,"cohortNameLong : Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #skin; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 133834, 133835, 45766714; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis",,"Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis","Pending peer review","","","#skin","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133834, 133835, 45766714","","",,,,,,383,383 +384,"[P][R] Contact dermatitis ",384,"cohortNameLong : Contact dermatitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Contact dermatitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 134438; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Contact dermatitis",,"Contact dermatitis","Pending peer review","","all events of Contact dermatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134438","","",,,,,,384,384 +385,"[P][R] Intertrigo ",385,"cohortNameLong : Intertrigo; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Intertrigo. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4242574; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Intertrigo",,"Intertrigo","Pending peer review","","all events of Intertrigo. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4242574","","",,,,,,385,385 +386,"[P][R] Seborrheic dermatitis ",386,"cohortNameLong : Seborrheic dermatitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Seborrheic dermatitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137053; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Seborrheic dermatitis",,"Seborrheic dermatitis","Pending peer review","","all events of Seborrheic dermatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137053","","",,,,,,386,386 +387,"[P][R] Photodermatitis ",387,"cohortNameLong : Photodermatitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Photodermatitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4203600, 4239682, 4331304; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Photodermatitis",,"Photodermatitis","Pending peer review","","all events of Photodermatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4203600, 4239682, 4331304","","",,,,,,387,387 +388,"[P][R] Peripheral neuritis ",388,"cohortNameLong : Peripheral neuritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Peripheral neuritis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4027396; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Peripheral neuritis",,"Peripheral neuritis","Pending peer review","","all events of Peripheral neuritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4027396","","",,,,,,388,388 +389,"[P] Peripheral Neuropathy or Neuritits",389,"cohortNameLong : Peripheral Neuropathy or Neuritits; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : first occurrence of peripheral neuritis or neuropathy; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4027396, 4117779; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Peripheral Neuropathy or Neuritits",,"Peripheral Neuropathy or Neuritits","Pending peer review","","first occurrence of peripheral neuritis or neuropathy","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4027396, 4117779","","",,,,,,389,389 +391,"[P] Hearing Loss",391,"cohortNameLong : Hearing Loss; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hearing Loss; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377889; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Hearing Loss",,"Hearing Loss","Pending peer review","","all events of Hearing Loss","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377889","","",,,,,,391,391 +392,"[P] Otalgia or Otitis",392,"cohortNameLong : Otalgia or Otitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Otitis or Otalgia; +hashTag : #symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 372328, 4183452; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Otalgia or Otitis",,"Otalgia or Otitis","Pending peer review","","All events of Otitis or Otalgia","#symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372328, 4183452","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,392,392 +393,"[P] Low Back Pain or Injury",393,"cohortNameLong : Low Back Pain or Injury; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of low back pain or injury; +hashTag : #Symptoms, #Pain; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 312998, 4020345; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Low Back Pain or Injury",,"Low Back Pain or Injury","Pending peer review","","all events of low back pain or injury","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312998, 4020345","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,393,393 +394,"[P] Gastroesophageal reflux disease",394,"cohortNameLong : Gastroesophageal reflux disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Gastroesophageal reflux disease; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 23325, 318800, 4091509; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Gastroesophageal reflux disease",,"Gastroesophageal reflux disease","Pending peer review","","all events of Gastroesophageal reflux disease","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","23325, 318800, 4091509","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,394,394 +395,"[P] Dysmenorrhea",395,"cohortNameLong : Dysmenorrhea; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Dysmenorrhea; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 443431; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Dysmenorrhea",,"Dysmenorrhea","Pending peer review","","all events of Dysmenorrhea","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443431","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,395,395 +396,"[P][R] Osteoarthritis ",396,"cohortNameLong : Osteoarthritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Osteoarthritis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 80180, 4079750; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Osteoarthritis",,"Osteoarthritis","Pending peer review","","all events of Osteoarthritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80180, 4079750","","",,,,,,396,396 +397,"[P][R] Hyperplasia of prostate ",397,"cohortNameLong : Hyperplasia of prostate; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hyperplasia of prostate. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197032, 443211; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Hyperplasia of prostate",,"Hyperplasia of prostate","Pending peer review","","all events of Hyperplasia of prostate. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197032, 443211","","",,,,,,397,397 +398,"[P] Bladder Outflow Obstruction",398,"cohortNameLong : Bladder Outflow Obstruction; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Bladder Outflow Obstruction; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194406, 443211; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Bladder Outflow Obstruction",,"Bladder Outflow Obstruction","Pending peer review","","All events of Bladder Outflow Obstruction","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194406, 443211","","",,,,,,398,398 +399,"[P][R] Urolithiasis ",399,"cohortNameLong : Urolithiasis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Urolithiasis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201620, 4319447; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Urolithiasis",,"Urolithiasis","Pending peer review","","all events of Urolithiasis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201620, 4319447","","",,,,,,399,399 +400,"[P][R] Malignant tumor of prostate ",400,"cohortNameLong : Malignant tumor of prostate; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant tumor of prostate. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 200962, 4163261; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Malignant tumor of prostate",,"Malignant tumor of prostate","Pending peer review","","all events of Malignant tumor of prostate. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200962, 4163261","","",,,,,,400,400 +401,"[P] Uterine Fibroids or benign uterine tumors",401,"cohortNameLong : Uterine Fibroids or benign uterine tumors; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Uterine Fibroids; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197236, 201817; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Uterine Fibroids or benign uterine tumors",,"Uterine Fibroids or benign uterine tumors","Pending peer review","","Uterine Fibroids","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197236, 201817","","",,,,,,401,401 +402,"[P] Ventilatory assist for respiratory findings with Acute Respiratory Failure",402,"cohortNameLong : Ventilatory assist for respiratory findings with Acute Respiratory Failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of acute respiratory symptoms commonly seen in acute respiratory failure with procedures for ventilatory assist among persons with respiratory failure; +hashTag : #CriticalCare; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 255573, 4027553; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Ventilatory assist for respiratory findings with Acute Respiratory Failure",,"Ventilatory assist for respiratory findings with Acute Respiratory Failure","Pending peer review","","all events of acute respiratory symptoms commonly seen in acute respiratory failure with procedures for ventilatory assist among persons with respiratory failure","#CriticalCare","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","255573, 4027553","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,402,402 +403,"[P] Acute Respiratory Failure in inpatient or Emergency room",403,"cohortNameLong : Acute Respiratory Failure in inpatient or Emergency room; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute Respiratory Failure in inpatient or Emergency room; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 319049; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Acute Respiratory Failure in inpatient or Emergency room",,"Acute Respiratory Failure in inpatient or Emergency room","Pending peer review","","all events of Acute Respiratory Failure in inpatient or Emergency room","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,403,403 +404,"[P] Ventricular Tachycardia, in an Inpatient or Emergency room setting",404,"cohortNameLong : Ventricular Tachycardia, in an Inpatient or Emergency room setting; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Ventricular tachycardia with inpatient stay; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 437579, 4103295; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Ventricular Tachycardia, in an Inpatient or Emergency room setting",,"Ventricular Tachycardia, in an Inpatient or Emergency room setting","Pending peer review","","Ventricular tachycardia with inpatient stay","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437579, 4103295","","",,,,,,404,404 +405,"[P] Atrial Fibrillation or Flutter",405,"cohortNameLong : Atrial Fibrillation or Flutter; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Atrial Fibrillation or Flutter; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313217; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-25","rao@ohdsi.org","Atrial Fibrillation or Flutter",,"Atrial Fibrillation or Flutter","Pending peer review","","All events of Atrial Fibrillation or Flutter","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217","","",,,,,,405,405 +406,"[P][R] Intellectual disability ",406,"cohortNameLong : Intellectual disability; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Intellectual disability. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 40277917; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Intellectual disability",,"Intellectual disability","Pending peer review","","all events of Intellectual disability. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40277917","","",,,,,,406,406 +407,"[P][R] Hemorrhoids ",407,"cohortNameLong : Hemorrhoids; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hemorrhoids. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 195562; +ohdsiForumPost : ; +replaces : ; +","2023-05-31","2023-09-19","rao@ohdsi.org","Hemorrhoids",,"Hemorrhoids","Pending peer review","","all events of Hemorrhoids. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","195562","","",,,,,,407,407 +410,"[P] Acute Urinary tract infections UTI",410,"cohortNameLong : Acute Urinary tract infections UTI; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Symptoms; +contributors : Stephen H. Fortin; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 81902; +ohdsiForumPost : ; +replaces : ; +","2023-06-01","2023-09-19","rao@ohdsi.org","Acute Urinary tract infections UTI",,"Acute Urinary tract infections UTI","Pending peer review","","","#Symptoms","Stephen H. Fortin","","","","","81902","","",,,,,,410,410 +411,"[P] Sepsis or Septic Shock",411,"cohortNameLong : Sepsis or Septic Shock; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Sepsis or Septic Shock; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 132797; +ohdsiForumPost : ; +replaces : ; +","2023-06-01","2023-09-25","rao@ohdsi.org","Sepsis or Septic Shock",,"Sepsis or Septic Shock","Pending peer review","","All events of Sepsis or Septic Shock","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132797","","",,,,,,411,411 +412,"Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W)",412,"cohortNameLong : Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W); +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.7.0; +logicDescription : events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia; +hashTag : #Accepted, #Level2; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : Evan Minty; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 139803, 443904; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; +replaces : ; +","2023-06-02","2023-09-19","rao@ohdsi.org","Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W)",,"Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W)","Accepted","3.7.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","139803, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,412,412 +414,"[P] Acute Skin Eruption symptoms",414,"cohortNameLong : Acute Skin Eruption symptoms; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of certain skin eruption symptoms; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 134438, 45766714; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-06-02","2023-09-25","rao@ohdsi.org","Acute Skin Eruption symptoms",,"Acute Skin Eruption symptoms","Pending peer review","","All events of certain skin eruption symptoms","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134438, 45766714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,414,414 +415,"[P][R] Erythema of skin ",415,"cohortNameLong : Erythema of skin; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Erythema of skin. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4300442, 40481101; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-06-02","2023-09-19","rao@ohdsi.org","Erythema of skin",,"Erythema of skin","Pending peer review","","all events of Erythema of skin. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4300442, 40481101","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,415,415 +416,"[P] Skin Rash",416,"cohortNameLong : Skin Rash; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Skin Erythema; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 135618; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-06-02","2023-09-25","rao@ohdsi.org","Skin Rash",,"Skin Rash","Pending peer review","","All events of Skin Erythema","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","135618","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,416,416 +417,"[P] Acute gastrointestinal bleeding events",417,"cohortNameLong : Acute gastrointestinal bleeding events; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of gastrointestinal bleed; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192671; +ohdsiForumPost : ; +replaces : ; +","2023-06-02","2023-09-25","rao@ohdsi.org","Acute gastrointestinal bleeding events",,"Acute gastrointestinal bleeding events","Pending peer review","","all events of gastrointestinal bleed","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671","","",,,,,,417,417 +444,"[P][R] Neck pain",444,"cohortNameLong : Neck pain; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Neck pain. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 24134; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Neck pain",,"Neck pain","Pending peer review","","all events of Neck pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24134","","",,,,,,444,444 +445,"[P][R] Hypoglycemia",445,"cohortNameLong : Hypoglycemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hypoglycemia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 24609; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Hypoglycemia",,"Hypoglycemia","Pending peer review","","all events of Hypoglycemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24609","","",,,,,,445,445 +446,"[P][R] Eosinophilic esophagitis",446,"cohortNameLong : Eosinophilic esophagitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Eosinophilic esophagitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 27918; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Eosinophilic esophagitis",,"Eosinophilic esophagitis","Pending peer review","","all events of Eosinophilic esophagitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27918","","",,,,,,446,446 +447,"[P][R] Esophagitis",447,"cohortNameLong : Esophagitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Esophagitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 30437, 30753; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Esophagitis",,"Esophagitis","Pending peer review","","all events of Esophagitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","30437, 30753","","",,,,,,447,447 +448,"[P][R] Dysphagia",448,"cohortNameLong : Dysphagia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Dysphagia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 31317; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Dysphagia",,"Dysphagia","Pending peer review","","all events of Dysphagia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","31317","","",,,,,,448,448 +449,"[P][R] Nausea",449,"cohortNameLong : Nausea; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Nausea. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 27674, 31967; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Nausea",,"Nausea","Pending peer review","","all events of Nausea. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27674, 31967","","",,,,,,449,449 +450,"[P][R] Constipation",450,"cohortNameLong : Constipation; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Constipation. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 75860; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Constipation",,"Constipation","Pending peer review","","all events of Constipation. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","75860","","",,,,,,450,450 +451,"[P][R] Myasthenia gravis",451,"cohortNameLong : Myasthenia gravis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Myasthenia gravis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 76685; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Myasthenia gravis",,"Myasthenia gravis","Pending peer review","","all events of Myasthenia gravis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","76685","","",,,,,,451,451 +452,"[P][R] Joint pain",452,"cohortNameLong : Joint pain; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Joint pain. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 77074, 78232; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Joint pain",,"Joint pain","Pending peer review","","all events of Joint pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","77074, 78232","","",,,,,,452,452 +453,"[P][R] Osteoarthritis",453,"cohortNameLong : Osteoarthritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Osteoarthritis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 80180, 4079750; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Osteoarthritis",,"Osteoarthritis","Pending peer review","","all events of Osteoarthritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80180, 4079750","","",,,,,,453,453 +454,"[P][R] Dermatomyositis",454,"cohortNameLong : Dermatomyositis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Dermatomyositis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 80182; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Dermatomyositis",,"Dermatomyositis","Pending peer review","","all events of Dermatomyositis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80182","","",,,,,,454,454 +455,"[P][R] Fetal growth restriction",455,"cohortNameLong : Fetal growth restriction; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Fetal growth restriction. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 74469, 80204, 4145947; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Fetal growth restriction",,"Fetal growth restriction","Pending peer review","","all events of Fetal growth restriction. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","74469, 80204, 4145947","","",,,,,,455,455 +456,"[P][R] Osteoporosis",456,"cohortNameLong : Osteoporosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Osteoporosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 80502; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Osteoporosis",,"Osteoporosis","Pending peer review","","all events of Osteoporosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80502","","",,,,,,456,456 +457,"[P][R] Rheumatoid arthritis",457,"cohortNameLong : Rheumatoid arthritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Rheumatoid arthritis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 80809; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Rheumatoid arthritis",,"Rheumatoid arthritis","Pending peer review","","all events of Rheumatoid arthritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80809","","",,,,,,457,457 +458,"[P][R] Ulcerative colitis",458,"cohortNameLong : Ulcerative colitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Ulcerative colitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 81893; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Ulcerative colitis",,"Ulcerative colitis","Pending peer review","","all events of Ulcerative colitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81893","","",,,,,,458,458 +459,"[P][R] Urinary tract infectious disease",459,"cohortNameLong : Urinary tract infectious disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Urinary tract infectious disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 81902; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Urinary tract infectious disease",,"Urinary tract infectious disease","Pending peer review","","all events of Urinary tract infectious disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81902","","",,,,,,459,459 +460,"[P][R] Psoriasis with arthropathy",460,"cohortNameLong : Psoriasis with arthropathy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Psoriasis with arthropathy. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 81931; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Psoriasis with arthropathy",,"Psoriasis with arthropathy","Pending peer review","","all events of Psoriasis with arthropathy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81931","","",,,,,,460,460 +461,"[P][R] Erythema multiforme",461,"cohortNameLong : Erythema multiforme; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Erythema multiforme. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 132702; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Erythema multiforme",,"Erythema multiforme","Pending peer review","","all events of Erythema multiforme. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132702","","",,,,,,461,461 +462,"[P][R] Lichen planus",462,"cohortNameLong : Lichen planus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Lichen planus. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 132703; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Lichen planus",,"Lichen planus","Pending peer review","","all events of Lichen planus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132703","","",,,,,,462,462 +463,"[P][R] Sepsis",463,"cohortNameLong : Sepsis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Sepsis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 132797; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Sepsis",,"Sepsis","Pending peer review","","all events of Sepsis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132797","","",,,,,,463,463 +464,"[P][R] Myelofibrosis",464,"cohortNameLong : Myelofibrosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Myelofibrosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 133169; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Myelofibrosis",,"Myelofibrosis","Pending peer review","","all events of Myelofibrosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133169","","",,,,,,464,464 +465,"[P][R] Thyroiditis",465,"cohortNameLong : Thyroiditis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Thyroiditis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 133444, 4281109; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Thyroiditis",,"Thyroiditis","Pending peer review","","all events of Thyroiditis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133444, 4281109","","",,,,,,465,465 +466,"[P][R] Atopic dermatitis",466,"cohortNameLong : Atopic dermatitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Atopic dermatitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 133834; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Atopic dermatitis",,"Atopic dermatitis","Pending peer review","","all events of Atopic dermatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133834","","",,,,,,466,466 +467,"[P][R] Systemic sclerosis",467,"cohortNameLong : Systemic sclerosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Systemic sclerosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 134442; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Systemic sclerosis",,"Systemic sclerosis","Pending peer review","","all events of Systemic sclerosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134442","","",,,,,,467,467 +468,"[P][R] Pityriasis rubra pilaris",468,"cohortNameLong : Pityriasis rubra pilaris; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pityriasis rubra pilaris. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 136774; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Pityriasis rubra pilaris",,"Pityriasis rubra pilaris","Pending peer review","","all events of Pityriasis rubra pilaris. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","136774","","",,,,,,468,468 +469,"[P][R] Jaundice",469,"cohortNameLong : Jaundice; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Jaundice. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137977, 435656; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Jaundice",,"Jaundice","Pending peer review","","all events of Jaundice. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137977, 435656","","",,,,,,469,469 +470,"[P][R] Chronic lymphoid leukemia, disease",470,"cohortNameLong : Chronic lymphoid leukemia, disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Chronic lymphoid leukemia, disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 138379; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Chronic lymphoid leukemia, disease",,"Chronic lymphoid leukemia, disease","Pending peer review","","all events of Chronic lymphoid leukemia, disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138379","","",,,,,,470,470 +471,"[P][R] Vitiligo",471,"cohortNameLong : Vitiligo; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Vitiligo. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 138502; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Vitiligo",,"Vitiligo","Pending peer review","","all events of Vitiligo. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138502","","",,,,,,471,471 +472,"[P][R] Myelodysplastic syndrome (clinical)",472,"cohortNameLong : Myelodysplastic syndrome (clinical); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Myelodysplastic syndrome (clinical). Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 138994; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Myelodysplastic syndrome (clinical)",,"Myelodysplastic syndrome (clinical)","Pending peer review","","all events of Myelodysplastic syndrome (clinical). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138994","","",,,,,,472,472 +473,"[P][R] Acute transverse myelitis",473,"cohortNameLong : Acute transverse myelitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute transverse myelitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 139803; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Acute transverse myelitis",,"Acute transverse myelitis","Pending peer review","","all events of Acute transverse myelitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139803","","",,,,,,473,473 +474,"[P][R] Pemphigoid",474,"cohortNameLong : Pemphigoid; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pemphigoid. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 139899; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Pemphigoid",,"Pemphigoid","Pending peer review","","all events of Pemphigoid. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139899","","",,,,,,474,474 +475,"[P][R] Psoriasis",475,"cohortNameLong : Psoriasis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Psoriasis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 140168; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Psoriasis",,"Psoriasis","Pending peer review","","all events of Psoriasis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140168","","",,,,,,475,475 +476,"[P][R] Acute myeloid leukemia, disease",476,"cohortNameLong : Acute myeloid leukemia, disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute myeloid leukemia, disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 140352; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Acute myeloid leukemia, disease",,"Acute myeloid leukemia, disease","Pending peer review","","all events of Acute myeloid leukemia, disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140352","","",,,,,,476,476 +477,"[P][R] Hypothyroidism",477,"cohortNameLong : Hypothyroidism; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hypothyroidism. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 138384, 140673; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Hypothyroidism",,"Hypothyroidism","Pending peer review","","all events of Hypothyroidism. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138384, 140673","","",,,,,,477,477 +478,"[P][R] Malignant melanoma of skin",478,"cohortNameLong : Malignant melanoma of skin; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant melanoma of skin. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 141232; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant melanoma of skin",,"Malignant melanoma of skin","Pending peer review","","all events of Malignant melanoma of skin. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141232","","",,,,,,478,478 +479,"[P][R] Chilblains",479,"cohortNameLong : Chilblains; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Chilblains. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 141456; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Chilblains",,"Chilblains","Pending peer review","","all events of Chilblains. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141456","","",,,,,,479,479 +480,"[P][R] Alopecia areata",480,"cohortNameLong : Alopecia areata; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Alopecia areata. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 141933; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Alopecia areata",,"Alopecia areata","Pending peer review","","all events of Alopecia areata. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141933","","",,,,,,480,480 +481,"[P][R] Renal failure syndrome",481,"cohortNameLong : Renal failure syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Renal failure syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192359, 193782; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Renal failure syndrome",,"Renal failure syndrome","Pending peer review","","all events of Renal failure syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192359, 193782","","",,,,,,481,481 +482,"[P][R] Gastrointestinal hemorrhage",482,"cohortNameLong : Gastrointestinal hemorrhage; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Gastrointestinal hemorrhage. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192671; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Gastrointestinal hemorrhage",,"Gastrointestinal hemorrhage","Pending peer review","","all events of Gastrointestinal hemorrhage. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671","","",,,,,,482,482 +483,"[P][R] Biliary cirrhosis",483,"cohortNameLong : Biliary cirrhosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Biliary cirrhosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192675; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Biliary cirrhosis",,"Biliary cirrhosis","Pending peer review","","all events of Biliary cirrhosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192675","","",,,,,,483,483 +484,"[P][R] End-stage renal disease",484,"cohortNameLong : End-stage renal disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of End-stage renal disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 193782; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","End-stage renal disease",,"End-stage renal disease","Pending peer review","","all events of End-stage renal disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","193782","","",,,,,,484,484 +485,"[P][R] Low back pain",485,"cohortNameLong : Low back pain; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Low back pain. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194133; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Low back pain",,"Low back pain","Pending peer review","","all events of Low back pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194133","","",,,,,,485,485 +486,"[P][R] Premature rupture of membranes",486,"cohortNameLong : Premature rupture of membranes; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Premature rupture of membranes. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194702, 200160; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Premature rupture of membranes",,"Premature rupture of membranes","Pending peer review","","all events of Premature rupture of membranes. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194702, 200160","","",,,,,,486,486 +487,"[P][R] Celiac disease",487,"cohortNameLong : Celiac disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Celiac disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194992; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Celiac disease",,"Celiac disease","Pending peer review","","all events of Celiac disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194992","","",,,,,,487,487 +488,"[P][R] Diarrhea",488,"cohortNameLong : Diarrhea; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Diarrhea. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 196523; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Diarrhea",,"Diarrhea","Pending peer review","","all events of Diarrhea. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196523","","",,,,,,488,488 +489,"[P][R] Acute renal failure syndrome",489,"cohortNameLong : Acute renal failure syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute renal failure syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197320; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Acute renal failure syndrome",,"Acute renal failure syndrome","Pending peer review","","all events of Acute renal failure syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","","",,,,,,489,489 +490,"[P][R] Viral hepatitis C",490,"cohortNameLong : Viral hepatitis C; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Viral hepatitis C. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197494, 198964; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Viral hepatitis C",,"Viral hepatitis C","Pending peer review","","all events of Viral hepatitis C. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197494, 198964","","",,,,,,490,490 +491,"[P][R] Malignant tumor of urinary bladder",491,"cohortNameLong : Malignant tumor of urinary bladder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant tumor of urinary bladder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 196360, 197508; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of urinary bladder",,"Malignant tumor of urinary bladder","Pending peer review","","all events of Malignant tumor of urinary bladder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196360, 197508","","",,,,,,491,491 +492,"[P][R] Cardiogenic shock",492,"cohortNameLong : Cardiogenic shock; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Cardiogenic shock. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 198571; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Cardiogenic shock",,"Cardiogenic shock","Pending peer review","","all events of Cardiogenic shock. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198571","","",,,,,,492,492 +493,"[P][R] Malignant tumor of cervix",493,"cohortNameLong : Malignant tumor of cervix; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant tumor of cervix. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 196359, 198984; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of cervix",,"Malignant tumor of cervix","Pending peer review","","all events of Malignant tumor of cervix. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196359, 198984","","",,,,,,493,493 +494,"[P][R] Primary malignant neoplasm of kidney",494,"cohortNameLong : Primary malignant neoplasm of kidney; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Primary malignant neoplasm of kidney. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 198985; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Primary malignant neoplasm of kidney",,"Primary malignant neoplasm of kidney","Pending peer review","","all events of Primary malignant neoplasm of kidney. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198985","","",,,,,,494,494 +495,"[P][R] Acute pancreatitis",495,"cohortNameLong : Acute pancreatitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute pancreatitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 199074; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Acute pancreatitis",,"Acute pancreatitis","Pending peer review","","all events of Acute pancreatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","199074","","",,,,,,495,495 +496,"[P][R] Abdominal pain",496,"cohortNameLong : Abdominal pain; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Abdominal pain. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 200219; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Abdominal pain",,"Abdominal pain","Pending peer review","","all events of Abdominal pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200219","","",,,,,,496,496 +497,"[P][R] Autoimmune hepatitis",497,"cohortNameLong : Autoimmune hepatitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Autoimmune hepatitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 200762; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Autoimmune hepatitis",,"Autoimmune hepatitis","Pending peer review","","all events of Autoimmune hepatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200762","","",,,,,,497,497 +498,"[P][R] Toxic shock syndrome",498,"cohortNameLong : Toxic shock syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Toxic shock syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201214; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Toxic shock syndrome",,"Toxic shock syndrome","Pending peer review","","all events of Toxic shock syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201214","","",,,,,,498,498 +499,"[P][R] Type 1 diabetes mellitus",499,"cohortNameLong : Type 1 diabetes mellitus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Type 1 diabetes mellitus. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201254; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Type 1 diabetes mellitus",,"Type 1 diabetes mellitus","Pending peer review","","all events of Type 1 diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201254","","",,,,,,499,499 +500,"[P][R] Gastritis",500,"cohortNameLong : Gastritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Gastritis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201340; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Gastritis",,"Gastritis","Pending peer review","","all events of Gastritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201340","","",,,,,,500,500 +501,"[P][R] Crohn's disease",501,"cohortNameLong : Crohn's disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Crohn's disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201606; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Crohn's disease",,"Crohn's disease","Pending peer review","","all events of Crohn's disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201606","","",,,,,,501,501 +502,"[P][R] Kidney stone",502,"cohortNameLong : Kidney stone; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Kidney stone. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201620; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Kidney stone",,"Kidney stone","Pending peer review","","all events of Kidney stone. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201620","","",,,,,,502,502 +503,"[P][R] Type 2 diabetes mellitus",503,"cohortNameLong : Type 2 diabetes mellitus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Type 2 diabetes mellitus. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201826; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Type 2 diabetes mellitus",,"Type 2 diabetes mellitus","Pending peer review","","all events of Type 2 diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201826","","",,,,,,503,503 +504,"[P][R] Sjögren's syndrome",504,"cohortNameLong : Sjögren's syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Sjögren's syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 254443; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Sjögren's syndrome",,"Sjögren's syndrome","Pending peer review","","all events of Sjögren's syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254443","","",,,,,,504,504 +505,"[P][R] Cough",505,"cohortNameLong : Cough; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Cough. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 254761; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Cough",,"Cough","Pending peer review","","all events of Cough. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254761","","",,,,,,505,505 +506,"[P][R] Chronic obstructive lung disease",506,"cohortNameLong : Chronic obstructive lung disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Chronic obstructive lung disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 255573; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Chronic obstructive lung disease",,"Chronic obstructive lung disease","Pending peer review","","all events of Chronic obstructive lung disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","255573","","",,,,,,506,506 +507,"[P][R] Pneumonia",507,"cohortNameLong : Pneumonia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pneumonia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 255848; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Pneumonia",,"Pneumonia","Pending peer review","","all events of Pneumonia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","255848","","",,,,,,507,507 +508,"[P][R] Allergic rhinitis",508,"cohortNameLong : Allergic rhinitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Allergic rhinitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257007; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Allergic rhinitis",,"Allergic rhinitis","Pending peer review","","all events of Allergic rhinitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007","","",,,,,,508,508 +509,"[P][R] Systemic lupus erythematosus",509,"cohortNameLong : Systemic lupus erythematosus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Systemic lupus erythematosus. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257628; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Systemic lupus erythematosus",,"Systemic lupus erythematosus","Pending peer review","","all events of Systemic lupus erythematosus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257628","","",,,,,,509,509 +510,"[P][R] Acute myocardial infarction",510,"cohortNameLong : Acute myocardial infarction; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute myocardial infarction. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 312327, 444406; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Acute myocardial infarction",,"Acute myocardial infarction","Pending peer review","","all events of Acute myocardial infarction. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312327, 444406","","",,,,,,510,510 +511,"[P][R] Dyspnea",511,"cohortNameLong : Dyspnea; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Dyspnea. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 312437; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Dyspnea",,"Dyspnea","Pending peer review","","all events of Dyspnea. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312437","","",,,,,,511,511 +512,"[P][R] Thromboangiitis obliterans",512,"cohortNameLong : Thromboangiitis obliterans; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Thromboangiitis obliterans. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 312939; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Thromboangiitis obliterans",,"Thromboangiitis obliterans","Pending peer review","","all events of Thromboangiitis obliterans. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312939","","",,,,,,512,512 +513,"[P][R] Atrial fibrillation",513,"cohortNameLong : Atrial fibrillation; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Atrial fibrillation. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313217; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Atrial fibrillation",,"Atrial fibrillation","Pending peer review","","all events of Atrial fibrillation. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217","","",,,,,,513,513 +514,"[P][R] Granulomatosis with polyangiitis",514,"cohortNameLong : Granulomatosis with polyangiitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Granulomatosis with polyangiitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313223; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Granulomatosis with polyangiitis",,"Granulomatosis with polyangiitis","Pending peer review","","all events of Granulomatosis with polyangiitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313223","","",,,,,,514,514 +515,"[P][R] Sleep apnea",515,"cohortNameLong : Sleep apnea; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Sleep apnea. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313459, 442588; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Sleep apnea",,"Sleep apnea","Pending peer review","","all events of Sleep apnea. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313459, 442588","","",,,,,,515,515 +516,"[P][R] Thrombotic microangiopathy",516,"cohortNameLong : Thrombotic microangiopathy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Thrombotic microangiopathy. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313800; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Thrombotic microangiopathy",,"Thrombotic microangiopathy","Pending peer review","","all events of Thrombotic microangiopathy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313800","","",,,,,,516,516 +517,"[P][R] Acute febrile mucocutaneous lymph node syndrome",517,"cohortNameLong : Acute febrile mucocutaneous lymph node syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute febrile mucocutaneous lymph node syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314381; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Acute febrile mucocutaneous lymph node syndrome",,"Acute febrile mucocutaneous lymph node syndrome","Pending peer review","","all events of Acute febrile mucocutaneous lymph node syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314381","","",,,,,,517,517 +518,"[P][R] Myocarditis",518,"cohortNameLong : Myocarditis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Myocarditis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314383; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Myocarditis",,"Myocarditis","Pending peer review","","all events of Myocarditis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314383","","",,,,,,518,518 +519,"[P][R] Heart failure",519,"cohortNameLong : Heart failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Heart failure. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 316139, 319835; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Heart failure",,"Heart failure","Pending peer review","","all events of Heart failure. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","316139, 319835","","",,,,,,519,519 +520,"[P][R] Hypertensive disorder",520,"cohortNameLong : Hypertensive disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hypertensive disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 312648, 316866, 4028741; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Hypertensive disorder",,"Hypertensive disorder","Pending peer review","","all events of Hypertensive disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312648, 316866, 4028741","","",,,,,,520,520 +521,"[P][R] Asthma",521,"cohortNameLong : Asthma; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Asthma. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 317009; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Asthma",,"Asthma","Pending peer review","","all events of Asthma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317009","","",,,,,,521,521 +522,"[P][R] Coronary arteriosclerosis",522,"cohortNameLong : Coronary arteriosclerosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Coronary arteriosclerosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 317576, 764123; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Coronary arteriosclerosis",,"Coronary arteriosclerosis","Pending peer review","","all events of Coronary arteriosclerosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317576, 764123","","",,,,,,522,522 +523,"[P][R] Arteriosclerotic vascular disease",523,"cohortNameLong : Arteriosclerotic vascular disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Arteriosclerotic vascular disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 318443, 764123; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Arteriosclerotic vascular disease",,"Arteriosclerotic vascular disease","Pending peer review","","all events of Arteriosclerotic vascular disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318443, 764123","","",,,,,,523,523 +524,"[P][R] Migraine",524,"cohortNameLong : Migraine; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Migraine. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 318736; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Migraine",,"Migraine","Pending peer review","","all events of Migraine. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318736","","",,,,,,524,524 +525,"[P][R] Gastroesophageal reflux disease",525,"cohortNameLong : Gastroesophageal reflux disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Gastroesophageal reflux disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 318800; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Gastroesophageal reflux disease",,"Gastroesophageal reflux disease","Pending peer review","","all events of Gastroesophageal reflux disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318800","","",,,,,,525,525 +526,"[P][R] Orthostatic hypotension",526,"cohortNameLong : Orthostatic hypotension; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Orthostatic hypotension. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 319041; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Orthostatic hypotension",,"Orthostatic hypotension","Pending peer review","","all events of Orthostatic hypotension. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319041","","",,,,,,526,526 +527,"[P][R] Acute respiratory failure",527,"cohortNameLong : Acute respiratory failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute respiratory failure. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 319049; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Acute respiratory failure",,"Acute respiratory failure","Pending peer review","","all events of Acute respiratory failure. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049","","",,,,,,527,527 +528,"[P][R] Polyarteritis nodosa",528,"cohortNameLong : Polyarteritis nodosa; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Polyarteritis nodosa. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 320749; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Polyarteritis nodosa",,"Polyarteritis nodosa","Pending peer review","","all events of Polyarteritis nodosa. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320749","","",,,,,,528,528 +529,"[P][R] Cardiac arrest",529,"cohortNameLong : Cardiac arrest; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Cardiac arrest. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 321042; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Cardiac arrest",,"Cardiac arrest","Pending peer review","","all events of Cardiac arrest. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321042","","",,,,,,529,529 +530,"[P][R] Peripheral vascular disease",530,"cohortNameLong : Peripheral vascular disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Peripheral vascular disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 321052; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Peripheral vascular disease",,"Peripheral vascular disease","Pending peer review","","all events of Peripheral vascular disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321052","","",,,,,,530,530 +531,"[P][R] Angina pectoris",531,"cohortNameLong : Angina pectoris; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Angina pectoris. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 321318; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Angina pectoris",,"Angina pectoris","Pending peer review","","all events of Angina pectoris. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321318","","",,,,,,531,531 +532,"[P][R] Heart disease",532,"cohortNameLong : Heart disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Heart disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313217, 321588, 44784217; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Heart disease",,"Heart disease","Pending peer review","","all events of Heart disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 321588, 44784217","","",,,,,,532,532 +533,"[P][R] Otitis media",533,"cohortNameLong : Otitis media; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Otitis media. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 372328; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Otitis media",,"Otitis media","Pending peer review","","all events of Otitis media. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372328","","",,,,,,533,533 +534,"[P][R] Transient cerebral ischemia",534,"cohortNameLong : Transient cerebral ischemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Transient cerebral ischemia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 373503; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Transient cerebral ischemia",,"Transient cerebral ischemia","Pending peer review","","all events of Transient cerebral ischemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","373503","","",,,,,,534,534 +535,"[P][R] Acute disseminated encephalomyelitis",535,"cohortNameLong : Acute disseminated encephalomyelitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute disseminated encephalomyelitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374021; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Acute disseminated encephalomyelitis",,"Acute disseminated encephalomyelitis","Pending peer review","","all events of Acute disseminated encephalomyelitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374021","","",,,,,,535,535 +536,"[P][R] Age related macular degeneration",536,"cohortNameLong : Age related macular degeneration; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Age related macular degeneration. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374028, 376966; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Age related macular degeneration",,"Age related macular degeneration","Pending peer review","","all events of Age related macular degeneration. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374028, 376966","","",,,,,,536,536 +537,"[P][R] Sensorineural hearing loss",537,"cohortNameLong : Sensorineural hearing loss; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Sensorineural hearing loss. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374366, 4110815; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Sensorineural hearing loss",,"Sensorineural hearing loss","Pending peer review","","all events of Sensorineural hearing loss. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374366, 4110815","","",,,,,,537,537 +538,"[P][R] Paralytic syndrome",538,"cohortNameLong : Paralytic syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Paralytic syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374377, 4134120; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Paralytic syndrome",,"Paralytic syndrome","Pending peer review","","all events of Paralytic syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374377, 4134120","","",,,,,,538,538 +539,"[P][R] Multiple sclerosis",539,"cohortNameLong : Multiple sclerosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Multiple sclerosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374919; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Multiple sclerosis",,"Multiple sclerosis","Pending peer review","","all events of Multiple sclerosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374919","","",,,,,,539,539 +540,"[P][R] Optic neuritis",540,"cohortNameLong : Optic neuritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Optic neuritis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374954; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Optic neuritis",,"Optic neuritis","Pending peer review","","all events of Optic neuritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374954","","",,,,,,540,540 +541,"[P][R] Idiopathic peripheral neuropathy",541,"cohortNameLong : Idiopathic peripheral neuropathy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Idiopathic peripheral neuropathy. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 375806; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Idiopathic peripheral neuropathy",,"Idiopathic peripheral neuropathy","Pending peer review","","all events of Idiopathic peripheral neuropathy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","375806","","",,,,,,541,541 +542,"[P][R] Cerebral hemorrhage",542,"cohortNameLong : Cerebral hemorrhage; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Cerebral hemorrhage. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 376713; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Cerebral hemorrhage",,"Cerebral hemorrhage","Pending peer review","","all events of Cerebral hemorrhage. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376713","","",,,,,,542,542 +543,"[P][R] Seizure",543,"cohortNameLong : Seizure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Seizure. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377091; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Seizure",,"Seizure","Pending peer review","","all events of Seizure. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377091","","",,,,,,543,543 +544,"[P][R] Encephalitis",544,"cohortNameLong : Encephalitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Encephalitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 378143, 380941; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Encephalitis",,"Encephalitis","Pending peer review","","all events of Encephalitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378143, 380941","","",,,,,,544,544 +545,"[P][R] Headache",545,"cohortNameLong : Headache; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Headache. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 378253; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Headache",,"Headache","Pending peer review","","all events of Headache. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378253","","",,,,,,545,545 +546,"[P][R] Retinal detachment",546,"cohortNameLong : Retinal detachment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Retinal detachment. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 378414; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Retinal detachment",,"Retinal detachment","Pending peer review","","all events of Retinal detachment. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378414","","",,,,,,546,546 +547,"[P][R] Retinal disorder",547,"cohortNameLong : Retinal disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Retinal disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 376966, 378416, 4116208; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Retinal disorder",,"Retinal disorder","Pending peer review","","all events of Retinal disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376966, 378416, 4116208","","",,,,,,547,547 +549,"[P][R] Epilepsy",549,"cohortNameLong : Epilepsy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Epilepsy. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 380378; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Epilepsy",,"Epilepsy","Pending peer review","","all events of Epilepsy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","380378","","",,,,,,549,549 +550,"[P][R] Chronic inflammatory demyelinating polyradiculoneuropathy",550,"cohortNameLong : Chronic inflammatory demyelinating polyradiculoneuropathy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Chronic inflammatory demyelinating polyradiculoneuropathy. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 381009; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Chronic inflammatory demyelinating polyradiculoneuropathy",,"Chronic inflammatory demyelinating polyradiculoneuropathy","Pending peer review","","all events of Chronic inflammatory demyelinating polyradiculoneuropathy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381009","","",,,,,,550,550 +551,"[P][R] Microcephaly",551,"cohortNameLong : Microcephaly; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Microcephaly. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 381114,606878; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-22","rao@ohdsi.org","Microcephaly",,"Microcephaly","Pending peer review","","all events of Microcephaly. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381114,606878","","",,,,,,551,551 +552,"[P][R] Parkinson's disease",552,"cohortNameLong : Parkinson's disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Parkinson's disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 381270; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Parkinson's disease",,"Parkinson's disease","Pending peer review","","all events of Parkinson's disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381270","","",,,,,,552,552 +553,"[P][R] Cerebrovascular accident",553,"cohortNameLong : Cerebrovascular accident; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Cerebrovascular accident. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 381316; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Cerebrovascular accident",,"Cerebrovascular accident","Pending peer review","","all events of Cerebrovascular accident. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381316","","",,,,,,553,553 +554,"[P][R] Cerebrovascular disease",554,"cohortNameLong : Cerebrovascular disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Cerebrovascular disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 381591, 4288310; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Cerebrovascular disease",,"Cerebrovascular disease","Pending peer review","","all events of Cerebrovascular disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381591, 4288310","","",,,,,,554,554 +555,"[P][R] Blood coagulation disorder",555,"cohortNameLong : Blood coagulation disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Blood coagulation disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432585; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Blood coagulation disorder",,"Blood coagulation disorder","Pending peer review","","all events of Blood coagulation disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432585","","",,,,,,555,555 +556,"[P][R] Amyloidosis",556,"cohortNameLong : Amyloidosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Amyloidosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432595; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Amyloidosis",,"Amyloidosis","Pending peer review","","all events of Amyloidosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432595","","",,,,,,556,556 +557,"[P][R] Angioedema",557,"cohortNameLong : Angioedema; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Angioedema. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432791; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Angioedema",,"Angioedema","Pending peer review","","all events of Angioedema. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432791","","",,,,,,557,557 +558,"[P][R] Hyperlipidemia",558,"cohortNameLong : Hyperlipidemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hyperlipidemia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432867; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Hyperlipidemia",,"Hyperlipidemia","Pending peer review","","all events of Hyperlipidemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432867","","",,,,,,558,558 +559,"[P][R] Thrombocytopenic disorder",559,"cohortNameLong : Thrombocytopenic disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Thrombocytopenic disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432870; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Thrombocytopenic disorder",,"Thrombocytopenic disorder","Pending peer review","","all events of Thrombocytopenic disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432870","","",,,,,,559,559 +560,"[P][R] Pancytopenia",560,"cohortNameLong : Pancytopenia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pancytopenia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432881; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Pancytopenia",,"Pancytopenia","Pending peer review","","all events of Pancytopenia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432881","","",,,,,,560,560 +561,"[P][R] Myasthenic syndrome due to another disorder",561,"cohortNameLong : Myasthenic syndrome due to another disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Myasthenic syndrome due to another disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432893; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Myasthenic syndrome due to another disorder",,"Myasthenic syndrome due to another disorder","Pending peer review","","all events of Myasthenic syndrome due to another disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432893","","",,,,,,561,561 +562,"[P][R] Edema",562,"cohortNameLong : Edema; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Edema. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433595; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Edema",,"Edema","Pending peer review","","all events of Edema. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433595","","",,,,,,562,562 +563,"[P][R] Obesity",563,"cohortNameLong : Obesity; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Obesity. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433736; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Obesity",,"Obesity","Pending peer review","","all events of Obesity. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433736","","",,,,,,563,563 +564,"[P][R] Hidradenitis",564,"cohortNameLong : Hidradenitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hidradenitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 434119; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Hidradenitis",,"Hidradenitis","Pending peer review","","all events of Hidradenitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434119","","",,,,,,564,564 +565,"[P][R] Tuberculosis",565,"cohortNameLong : Tuberculosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Tuberculosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 253954, 434557; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Tuberculosis",,"Tuberculosis","Pending peer review","","all events of Tuberculosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","253954, 434557","","",,,,,,565,565 +566,"[P][R] Kaposi's sarcoma (clinical)",566,"cohortNameLong : Kaposi's sarcoma (clinical); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Kaposi's sarcoma (clinical). Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 434584; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Kaposi's sarcoma (clinical)",,"Kaposi's sarcoma (clinical)","Pending peer review","","all events of Kaposi's sarcoma (clinical). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434584","","",,,,,,566,566 +567,"[P][R] B-cell lymphoma (clinical)",567,"cohortNameLong : B-cell lymphoma (clinical); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of B-cell lymphoma (clinical). Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 434592, 4300704; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","B-cell lymphoma (clinical)",,"B-cell lymphoma (clinical)","Pending peer review","","all events of B-cell lymphoma (clinical). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434592, 4300704","","",,,,,,567,567 +568,"[P][R] Hyperkalemia",568,"cohortNameLong : Hyperkalemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hyperkalemia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 434610; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Hyperkalemia",,"Hyperkalemia","Pending peer review","","all events of Hyperkalemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434610","","",,,,,,568,568 +569,"[P][R] Systemic inflammatory response syndrome",569,"cohortNameLong : Systemic inflammatory response syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Systemic inflammatory response syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 434821; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Systemic inflammatory response syndrome",,"Systemic inflammatory response syndrome","Pending peer review","","all events of Systemic inflammatory response syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434821","","",,,,,,569,569 +570,"[P][R] Leukopenia",570,"cohortNameLong : Leukopenia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Leukopenia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432881, 435224; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Leukopenia",,"Leukopenia","Pending peer review","","all events of Leukopenia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432881, 435224","","",,,,,,570,570 +571,"[P][R] Schizophrenia",571,"cohortNameLong : Schizophrenia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Schizophrenia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435783; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Schizophrenia",,"Schizophrenia","Pending peer review","","all events of Schizophrenia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435783","","",,,,,,571,571 +572,"[P][R] Psychotic disorder",572,"cohortNameLong : Psychotic disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Psychotic disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435783, 436073; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Psychotic disorder",,"Psychotic disorder","Pending peer review","","all events of Psychotic disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435783, 436073","","",,,,,,572,572 +573,"[P][R] Chronic pain",573,"cohortNameLong : Chronic pain; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Chronic pain. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436096; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Chronic pain",,"Chronic pain","Pending peer review","","all events of Chronic pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436096","","",,,,,,573,573 +574,"[P][R] Narcolepsy",574,"cohortNameLong : Narcolepsy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Narcolepsy. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436100; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Narcolepsy",,"Narcolepsy","Pending peer review","","all events of Narcolepsy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436100","","",,,,,,574,574 +575,"[P][R] Behcet's syndrome",575,"cohortNameLong : Behcet's syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Behcet's syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436642; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Behcet's syndrome",,"Behcet's syndrome","Pending peer review","","all events of Behcet's syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436642","","",,,,,,575,575 +576,"[P][R] Bipolar disorder",576,"cohortNameLong : Bipolar disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Bipolar disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436665; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Bipolar disorder",,"Bipolar disorder","Pending peer review","","all events of Bipolar disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436665","","",,,,,,576,576 +577,"[P][R] Posttraumatic stress disorder",577,"cohortNameLong : Posttraumatic stress disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Posttraumatic stress disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436676; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Posttraumatic stress disorder",,"Posttraumatic stress disorder","Pending peer review","","all events of Posttraumatic stress disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436676","","",,,,,,577,577 +578,"[P][R] Insomnia",578,"cohortNameLong : Insomnia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Insomnia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436962; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Insomnia",,"Insomnia","Pending peer review","","all events of Insomnia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436962","","",,,,,,578,578 +579,"[P][R] Ankylosing spondylitis",579,"cohortNameLong : Ankylosing spondylitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Ankylosing spondylitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 437082; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Ankylosing spondylitis",,"Ankylosing spondylitis","Pending peer review","","all events of Ankylosing spondylitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437082","","",,,,,,579,579 +580,"[P][R] Respiratory syncytial virus infection",580,"cohortNameLong : Respiratory syncytial virus infection; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Respiratory syncytial virus infection. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 254058, 437222; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Respiratory syncytial virus infection",,"Respiratory syncytial virus infection","Pending peer review","","all events of Respiratory syncytial virus infection. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254058, 437222","","",,,,,,580,580 +581,"[P][R] Multiple myeloma",581,"cohortNameLong : Multiple myeloma; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Multiple myeloma. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 437233; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Multiple myeloma",,"Multiple myeloma","Pending peer review","","all events of Multiple myeloma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437233","","",,,,,,581,581 +582,"[P][R] Bleeding",582,"cohortNameLong : Bleeding; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Bleeding. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192671, 437312; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Bleeding",,"Bleeding","Pending peer review","","all events of Bleeding. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671, 437312","","",,,,,,582,582 +583,"[P][R] Glaucoma",583,"cohortNameLong : Glaucoma; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Glaucoma. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435262, 437541; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Glaucoma",,"Glaucoma","Pending peer review","","all events of Glaucoma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435262, 437541","","",,,,,,583,583 +584,"[P][R] Fever",584,"cohortNameLong : Fever; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Fever. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 437663; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Fever",,"Fever","Pending peer review","","all events of Fever. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437663","","",,,,,,584,584 +585,"[P][R] Hypokalemia",585,"cohortNameLong : Hypokalemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hypokalemia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 437833; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Hypokalemia",,"Hypokalemia","Pending peer review","","all events of Hypokalemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437833","","",,,,,,585,585 +586,"[P][R] Opioid dependence",586,"cohortNameLong : Opioid dependence; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Opioid dependence. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 438120; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Opioid dependence",,"Opioid dependence","Pending peer review","","all events of Opioid dependence. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438120","","",,,,,,586,586 +587,"[P][R] Opioid abuse",587,"cohortNameLong : Opioid abuse; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Opioid abuse. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 438130; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Opioid abuse",,"Opioid abuse","Pending peer review","","all events of Opioid abuse. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438130","","",,,,,,587,587 +588,"[P][R] Attention deficit hyperactivity disorder",588,"cohortNameLong : Attention deficit hyperactivity disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Attention deficit hyperactivity disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 438409; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Attention deficit hyperactivity disorder",,"Attention deficit hyperactivity disorder","Pending peer review","","all events of Attention deficit hyperactivity disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438409","","",,,,,,588,588 +589,"[P][R] Pre-eclampsia",589,"cohortNameLong : Pre-eclampsia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pre-eclampsia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439393; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Pre-eclampsia",,"Pre-eclampsia","Pending peer review","","all events of Pre-eclampsia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439393","","",,,,,,589,589 +590,"[P][R] Human immunodeficiency virus infection",590,"cohortNameLong : Human immunodeficiency virus infection; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Human immunodeficiency virus infection. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439727; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Human immunodeficiency virus infection",,"Human immunodeficiency virus infection","Pending peer review","","all events of Human immunodeficiency virus infection. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439727","","",,,,,,590,590 +591,"[P][R] Autism spectrum disorder",591,"cohortNameLong : Autism spectrum disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Autism spectrum disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439776, 439780; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Autism spectrum disorder",,"Autism spectrum disorder","Pending peer review","","all events of Autism spectrum disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439776, 439780","","",,,,,,591,591 +592,"[P][R] Anemia",592,"cohortNameLong : Anemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Anemia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439777; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Anemia",,"Anemia","Pending peer review","","all events of Anemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439777","","",,,,,,592,592 +593,"[P][R] Paralysis",593,"cohortNameLong : Paralysis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Paralysis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374923, 440377; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Paralysis",,"Paralysis","Pending peer review","","all events of Paralysis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 440377","","",,,,,,593,593 +594,"[P][R] Depressive disorder",594,"cohortNameLong : Depressive disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Depressive disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440383; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Depressive disorder",,"Depressive disorder","Pending peer review","","all events of Depressive disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440383","","",,,,,,594,594 +595,"[P][R] Pulmonary embolism",595,"cohortNameLong : Pulmonary embolism; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pulmonary embolism. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440417, 43530605; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Pulmonary embolism",,"Pulmonary embolism","Pending peer review","","all events of Pulmonary embolism. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440417, 43530605","","",,,,,,595,595 +596,"[P][R] Gout",596,"cohortNameLong : Gout; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Gout. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440674; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Gout",,"Gout","Pending peer review","","all events of Gout. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440674","","",,,,,,596,596 +597,"[P][R] Takayasu's disease",597,"cohortNameLong : Takayasu's disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Takayasu's disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440740; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Takayasu's disease",,"Takayasu's disease","Pending peer review","","all events of Takayasu's disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440740","","",,,,,,597,597 +598,"[P][R] Methicillin resistant Staphylococcus aureus infection",598,"cohortNameLong : Methicillin resistant Staphylococcus aureus infection; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Methicillin resistant Staphylococcus aureus infection. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440940; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Methicillin resistant Staphylococcus aureus infection",,"Methicillin resistant Staphylococcus aureus infection","Pending peer review","","all events of Methicillin resistant Staphylococcus aureus infection. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440940","","",,,,,,598,598 +599,"[P][R] Anaphylaxis",599,"cohortNameLong : Anaphylaxis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Anaphylaxis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441202; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Anaphylaxis",,"Anaphylaxis","Pending peer review","","all events of Anaphylaxis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441202","","",,,,,,599,599 +600,"[P][R] Open-angle glaucoma",600,"cohortNameLong : Open-angle glaucoma; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Open-angle glaucoma. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435262, 441284; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Open-angle glaucoma",,"Open-angle glaucoma","Pending peer review","","all events of Open-angle glaucoma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435262, 441284","","",,,,,,600,600 +601,"[P][R] Vomiting",601,"cohortNameLong : Vomiting; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Vomiting. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 27674, 441408; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Vomiting",,"Vomiting","Pending peer review","","all events of Vomiting. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27674, 441408","","",,,,,,601,601 +602,"[P][R] Anxiety",602,"cohortNameLong : Anxiety; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Anxiety. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441542, 442077; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Anxiety",,"Anxiety","Pending peer review","","all events of Anxiety. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441542, 442077","","",,,,,,602,602 +603,"[P][R] Human papilloma virus infection",603,"cohortNameLong : Human papilloma virus infection; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Human papilloma virus infection. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 140641, 441788; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Human papilloma virus infection",,"Human papilloma virus infection","Pending peer review","","all events of Human papilloma virus infection. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140641, 441788","","",,,,,,603,603 +604,"[P][R] Cranial nerve disorder",604,"cohortNameLong : Cranial nerve disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Cranial nerve disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374923, 441848; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Cranial nerve disorder",,"Cranial nerve disorder","Pending peer review","","all events of Cranial nerve disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 441848","","",,,,,,604,604 +605,"[P][R] Muscle pain",605,"cohortNameLong : Muscle pain; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Muscle pain. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 442752; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Muscle pain",,"Muscle pain","Pending peer review","","all events of Muscle pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442752","","",,,,,,605,605 +606,"[P][R] Stillbirth",606,"cohortNameLong : Stillbirth; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Stillbirth. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 443213, 4014454; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Stillbirth",,"Stillbirth","Pending peer review","","all events of Stillbirth. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443213, 4014454","","",,,,,,606,606 +607,"[P][R] Malignant tumor of stomach",607,"cohortNameLong : Malignant tumor of stomach; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant tumor of stomach. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 196044, 443387; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of stomach",,"Malignant tumor of stomach","Pending peer review","","all events of Malignant tumor of stomach. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196044, 443387","","",,,,,,607,607 +608,"[P][R] Malignant neoplastic disease",608,"cohortNameLong : Malignant neoplastic disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant neoplastic disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137809, 443392; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant neoplastic disease",,"Malignant neoplastic disease","Pending peer review","","all events of Malignant neoplastic disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137809, 443392","","",,,,,,608,608 +609,"[P][R] Cerebral infarction",609,"cohortNameLong : Cerebral infarction; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Cerebral infarction. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 443454; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Cerebral infarction",,"Cerebral infarction","Pending peer review","","all events of Cerebral infarction. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443454","","",,,,,,609,609 +610,"[P][R] Eclampsia",610,"cohortNameLong : Eclampsia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Eclampsia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 443700, 4116344; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Eclampsia",,"Eclampsia","Pending peer review","","all events of Eclampsia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443700, 4116344","","",,,,,,610,610 +611,"[P][R] Diabetic ketoacidosis",611,"cohortNameLong : Diabetic ketoacidosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Diabetic ketoacidosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 443727, 4009303; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Diabetic ketoacidosis",,"Diabetic ketoacidosis","Pending peer review","","all events of Diabetic ketoacidosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443727, 4009303","","",,,,,,611,611 +612,"[P][R] Acute tubular necrosis",612,"cohortNameLong : Acute tubular necrosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute tubular necrosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 444044; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Acute tubular necrosis",,"Acute tubular necrosis","Pending peer review","","all events of Acute tubular necrosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","444044","","",,,,,,612,612 +613,"[P][R] Tachycardia",613,"cohortNameLong : Tachycardia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Tachycardia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313217, 444070; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Tachycardia",,"Tachycardia","Pending peer review","","all events of Tachycardia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 444070","","",,,,,,613,613 +614,"[P][R] Venous thrombosis",614,"cohortNameLong : Venous thrombosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Venous thrombosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 444247, 43531681; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Venous thrombosis",,"Venous thrombosis","Pending peer review","","all events of Venous thrombosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","444247, 43531681","","",,,,,,614,614 +615,"[P][R] Herpes simplex",615,"cohortNameLong : Herpes simplex; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Herpes simplex. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440021, 444429; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Herpes simplex",,"Herpes simplex","Pending peer review","","all events of Herpes simplex. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440021, 444429","","",,,,,,615,615 +616,"[P][R] Acute arthritis",616,"cohortNameLong : Acute arthritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Acute arthritis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433000, 4000634; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Acute arthritis",,"Acute arthritis","Pending peer review","","all events of Acute arthritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433000, 4000634","","",,,,,,616,616 +617,"[P][R] Monoclonal gammopathy (clinical)",617,"cohortNameLong : Monoclonal gammopathy (clinical); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Monoclonal gammopathy (clinical). Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4002359; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Monoclonal gammopathy (clinical)",,"Monoclonal gammopathy (clinical)","Pending peer review","","all events of Monoclonal gammopathy (clinical). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4002359","","",,,,,,617,617 +618,"[P][R] Pulmonary arterial hypertension",618,"cohortNameLong : Pulmonary arterial hypertension; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pulmonary arterial hypertension. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4013643, 44783618; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Pulmonary arterial hypertension",,"Pulmonary arterial hypertension","Pending peer review","","all events of Pulmonary arterial hypertension. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4013643, 44783618","","",,,,,,618,618 +619,"[P][R] Gestational diabetes mellitus",619,"cohortNameLong : Gestational diabetes mellitus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Gestational diabetes mellitus. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4024659; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Gestational diabetes mellitus",,"Gestational diabetes mellitus","Pending peer review","","all events of Gestational diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4024659","","",,,,,,619,619 +620,"[P][R] Uveitis",620,"cohortNameLong : Uveitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Uveitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 434926, 4028363; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Uveitis",,"Uveitis","Pending peer review","","all events of Uveitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434926, 4028363","","",,,,,,620,620 +621,"[P][R] Renal impairment",621,"cohortNameLong : Renal impairment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Renal impairment. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 193782, 4030518; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Renal impairment",,"Renal impairment","Pending peer review","","all events of Renal impairment. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","193782, 4030518","","",,,,,,621,621 +622,"[P][R] Non-Hodgkin's lymphoma (clinical)",622,"cohortNameLong : Non-Hodgkin's lymphoma (clinical); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Non-Hodgkin's lymphoma (clinical). Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4038838, 4300704; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Non-Hodgkin's lymphoma (clinical)",,"Non-Hodgkin's lymphoma (clinical)","Pending peer review","","all events of Non-Hodgkin's lymphoma (clinical). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4038838, 4300704","","",,,,,,622,622 +623,"[P][R] Motor neuropathy with multiple conduction block",623,"cohortNameLong : Motor neuropathy with multiple conduction block; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Motor neuropathy with multiple conduction block. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4046338; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Motor neuropathy with multiple conduction block",,"Motor neuropathy with multiple conduction block","Pending peer review","","all events of Motor neuropathy with multiple conduction block. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4046338","","",,,,,,623,623 +624,"[P][R] Primary sclerosing cholangitis",624,"cohortNameLong : Primary sclerosing cholangitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Primary sclerosing cholangitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4058821; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Primary sclerosing cholangitis",,"Primary sclerosing cholangitis","Pending peer review","","all events of Primary sclerosing cholangitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4058821","","",,,,,,624,624 +625,"[P][R] Pustular psoriasis",625,"cohortNameLong : Pustular psoriasis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pustular psoriasis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4063434, 4100184; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Pustular psoriasis",,"Pustular psoriasis","Pending peer review","","all events of Pustular psoriasis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4063434, 4100184","","",,,,,,625,625 +626,"[P][R] Cirrhosis of liver",626,"cohortNameLong : Cirrhosis of liver; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Cirrhosis of liver. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194692, 4064161; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Cirrhosis of liver",,"Cirrhosis of liver","Pending peer review","","all events of Cirrhosis of liver. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194692, 4064161","","",,,,,,626,626 +627,"[P][R] Miscarriage",627,"cohortNameLong : Miscarriage; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Miscarriage. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 76482, 4067106; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Miscarriage",,"Miscarriage","Pending peer review","","all events of Miscarriage. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","76482, 4067106","","",,,,,,627,627 +628,"[P][R] Fisher's syndrome",628,"cohortNameLong : Fisher's syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Fisher's syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4070552; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Fisher's syndrome",,"Fisher's syndrome","Pending peer review","","all events of Fisher's syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4070552","","",,,,,,628,628 +629,"[P][R] Inflammatory bowel disease",629,"cohortNameLong : Inflammatory bowel disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Inflammatory bowel disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 195585, 4074815; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Inflammatory bowel disease",,"Inflammatory bowel disease","Pending peer review","","all events of Inflammatory bowel disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","195585, 4074815","","",,,,,,629,629 +630,"[P][R] Facial palsy",630,"cohortNameLong : Facial palsy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Facial palsy. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374923, 4091559; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Facial palsy",,"Facial palsy","Pending peer review","","all events of Facial palsy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 4091559","","",,,,,,630,630 +631,"[P][R] Livebirth",631,"cohortNameLong : Livebirth; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Livebirth. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4014295, 4092289; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Livebirth",,"Livebirth","Pending peer review","","all events of Livebirth. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4014295, 4092289","","",,,,,,631,631 +632,"[P][R] Antiphospholipid syndrome",632,"cohortNameLong : Antiphospholipid syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Antiphospholipid syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4098292; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Antiphospholipid syndrome",,"Antiphospholipid syndrome","Pending peer review","","all events of Antiphospholipid syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4098292","","",,,,,,632,632 +633,"[P][R] Waldenström macroglobulinemia",633,"cohortNameLong : Waldenström macroglobulinemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Waldenström macroglobulinemia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4098597; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Waldenström macroglobulinemia",,"Waldenström macroglobulinemia","Pending peer review","","all events of Waldenström macroglobulinemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4098597","","",,,,,,633,633 +634,"[P][R] Immunoglobulin A vasculitis",634,"cohortNameLong : Immunoglobulin A vasculitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Immunoglobulin A vasculitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4101602; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Immunoglobulin A vasculitis",,"Immunoglobulin A vasculitis","Pending peer review","","all events of Immunoglobulin A vasculitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4101602","","",,,,,,634,634 +635,"[P][R] Ventricular tachycardia",635,"cohortNameLong : Ventricular tachycardia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Ventricular tachycardia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 437579, 4103295; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Ventricular tachycardia",,"Ventricular tachycardia","Pending peer review","","all events of Ventricular tachycardia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437579, 4103295","","",,,,,,635,635 +636,"[P][R] Malignant tumor of breast",636,"cohortNameLong : Malignant tumor of breast; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant tumor of breast. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137809, 4112853; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of breast",,"Malignant tumor of breast","Pending peer review","","all events of Malignant tumor of breast. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137809, 4112853","","",,,,,,636,636 +637,"[P][R] Peripheral ischemia",637,"cohortNameLong : Peripheral ischemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Peripheral ischemia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4124836, 4291464; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Peripheral ischemia",,"Peripheral ischemia","Pending peer review","","all events of Peripheral ischemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4124836, 4291464","","",,,,,,637,637 +638,"[P][R] Neoplasm of thyroid gland",638,"cohortNameLong : Neoplasm of thyroid gland; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Neoplasm of thyroid gland. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 133424, 4131909; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Neoplasm of thyroid gland",,"Neoplasm of thyroid gland","Pending peer review","","all events of Neoplasm of thyroid gland. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133424, 4131909","","",,,,,,638,638 +639,"[P][R] Deep venous thrombosis",639,"cohortNameLong : Deep venous thrombosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Deep venous thrombosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4133004, 43531681; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Deep venous thrombosis",,"Deep venous thrombosis","Pending peer review","","all events of Deep venous thrombosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4133004, 43531681","","",,,,,,639,639 +640,"[P][R] Vasculitis",640,"cohortNameLong : Vasculitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Vasculitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 199856, 4137275; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Vasculitis",,"Vasculitis","Pending peer review","","all events of Vasculitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","199856, 4137275","","",,,,,,640,640 +641,"[P][R] Pericarditis",641,"cohortNameLong : Pericarditis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pericarditis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 320116, 4138837; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Pericarditis",,"Pericarditis","Pending peer review","","all events of Pericarditis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320116, 4138837","","",,,,,,641,641 +642,"[P][R] Immune reconstitution syndrome",642,"cohortNameLong : Immune reconstitution syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Immune reconstitution syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4139034; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Immune reconstitution syndrome",,"Immune reconstitution syndrome","Pending peer review","","all events of Immune reconstitution syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4139034","","",,,,,,642,642 +643,"[P][R] Follicular non-Hodgkin's lymphoma",643,"cohortNameLong : Follicular non-Hodgkin's lymphoma; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Follicular non-Hodgkin's lymphoma. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4147411; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Follicular non-Hodgkin's lymphoma",,"Follicular non-Hodgkin's lymphoma","Pending peer review","","all events of Follicular non-Hodgkin's lymphoma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4147411","","",,,,,,643,643 +644,"[P][R] Malignant tumor of prostate",644,"cohortNameLong : Malignant tumor of prostate; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant tumor of prostate. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 200962, 4163261; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of prostate",,"Malignant tumor of prostate","Pending peer review","","all events of Malignant tumor of prostate. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200962, 4163261","","",,,,,,644,644 +645,"[P][R] Guillain-Barré syndrome",645,"cohortNameLong : Guillain-Barré syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Guillain-Barré syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4164770; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Guillain-Barré syndrome",,"Guillain-Barré syndrome","Pending peer review","","all events of Guillain-Barré syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4164770","","",,,,,,645,645 +646,"[P][R] Bradycardia",646,"cohortNameLong : Bradycardia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Bradycardia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4169095; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Bradycardia",,"Bradycardia","Pending peer review","","all events of Bradycardia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4169095","","",,,,,,646,646 +647,"[P][R] Retinopathy due to diabetes mellitus",647,"cohortNameLong : Retinopathy due to diabetes mellitus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Retinopathy due to diabetes mellitus. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 376683, 4174977; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Retinopathy due to diabetes mellitus",,"Retinopathy due to diabetes mellitus","Pending peer review","","all events of Retinopathy due to diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376683, 4174977","","",,,,,,647,647 +648,"[P][R] Malignant tumor of colon",648,"cohortNameLong : Malignant tumor of colon; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant tumor of colon. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197500, 4180790; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of colon",,"Malignant tumor of colon","Pending peer review","","all events of Malignant tumor of colon. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197500, 4180790","","",,,,,,648,648 +649,"[P][R] Malignant tumor of esophagus",649,"cohortNameLong : Malignant tumor of esophagus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant tumor of esophagus. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 26638, 4181343; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of esophagus",,"Malignant tumor of esophagus","Pending peer review","","all events of Malignant tumor of esophagus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","26638, 4181343","","",,,,,,649,649 +650,"[P][R] Malignant tumor of ovary",650,"cohortNameLong : Malignant tumor of ovary; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant tumor of ovary. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 200051, 4181351; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of ovary",,"Malignant tumor of ovary","Pending peer review","","all events of Malignant tumor of ovary. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200051, 4181351","","",,,,,,650,650 +651,"[P][R] Dementia",651,"cohortNameLong : Dementia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Dementia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4182210; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Dementia",,"Dementia","Pending peer review","","all events of Dementia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4182210","","",,,,,,651,651 +652,"[P][R] Vasculitis of the skin",652,"cohortNameLong : Vasculitis of the skin; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Vasculitis of the skin. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4182711; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Vasculitis of the skin",,"Vasculitis of the skin","Pending peer review","","all events of Vasculitis of the skin. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4182711","","",,,,,,652,652 +653,"[P][R] Loss of sense of smell",653,"cohortNameLong : Loss of sense of smell; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Loss of sense of smell. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4185711; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Loss of sense of smell",,"Loss of sense of smell","Pending peer review","","all events of Loss of sense of smell. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4185711","","",,,,,,653,653 +654,"[P][R] Ischemic heart disease",654,"cohortNameLong : Ischemic heart disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Ischemic heart disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 321318, 4185932; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Ischemic heart disease",,"Ischemic heart disease","Pending peer review","","all events of Ischemic heart disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321318, 4185932","","",,,,,,654,654 +655,"[P][R] Aseptic meningitis",655,"cohortNameLong : Aseptic meningitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Aseptic meningitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 434869, 4201096; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Aseptic meningitis",,"Aseptic meningitis","Pending peer review","","all events of Aseptic meningitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434869, 4201096","","",,,,,,655,655 +656,"[P][R] Fatigue",656,"cohortNameLong : Fatigue; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Fatigue. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 437113, 4223659; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Fatigue",,"Fatigue","Pending peer review","","all events of Fatigue. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437113, 4223659","","",,,,,,656,656 +657,"[P][R] Paresthesia",657,"cohortNameLong : Paresthesia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Paresthesia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4236484; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Paresthesia",,"Paresthesia","Pending peer review","","all events of Paresthesia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4236484","","",,,,,,657,657 +658,"[P][R] Hepatic failure",658,"cohortNameLong : Hepatic failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hepatic failure. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Hepatic failure",,"Hepatic failure","Pending peer review","","all events of Hepatic failure. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","",,,,,,658,658 +659,"[P][R] Malignant neoplasm of liver",659,"cohortNameLong : Malignant neoplasm of liver; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant neoplasm of liver. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 198700, 4246127; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant neoplasm of liver",,"Malignant neoplasm of liver","Pending peer review","","all events of Malignant neoplasm of liver. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198700, 4246127","","",,,,,,659,659 +660,"[P][R] Juvenile rheumatoid arthritis",660,"cohortNameLong : Juvenile rheumatoid arthritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Juvenile rheumatoid arthritis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 72714, 4253901; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Juvenile rheumatoid arthritis",,"Juvenile rheumatoid arthritis","Pending peer review","","all events of Juvenile rheumatoid arthritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","72714, 4253901","","",,,,,,660,660 +661,"[P][R] Respiratory failure",661,"cohortNameLong : Respiratory failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Respiratory failure. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 319049, 4256228; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Respiratory failure",,"Respiratory failure","Pending peer review","","all events of Respiratory failure. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049, 4256228","","",,,,,,661,661 +662,"[P][R] Diverticulitis of large intestine",662,"cohortNameLong : Diverticulitis of large intestine; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Diverticulitis of large intestine. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 77025, 4260535; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Diverticulitis of large intestine",,"Diverticulitis of large intestine","Pending peer review","","all events of Diverticulitis of large intestine. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","77025, 4260535","","",,,,,,662,662 +663,"[P][R] Influenza",663,"cohortNameLong : Influenza; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Influenza. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4183609, 4266367; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Influenza",,"Influenza","Pending peer review","","all events of Influenza. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4183609, 4266367","","",,,,,,663,663 +664,"[P][R] Malaise",664,"cohortNameLong : Malaise; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malaise. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439926, 4272240; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malaise",,"Malaise","Pending peer review","","all events of Malaise. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439926, 4272240","","",,,,,,664,664 +665,"[P][R] Suicidal thoughts",665,"cohortNameLong : Suicidal thoughts; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Suicidal thoughts. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4273391; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Suicidal thoughts",,"Suicidal thoughts","Pending peer review","","all events of Suicidal thoughts. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4273391","","",,,,,,665,665 +666,"[P][R] Type B viral hepatitis",666,"cohortNameLong : Type B viral hepatitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Type B viral hepatitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439674, 4281232; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Type B viral hepatitis",,"Type B viral hepatitis","Pending peer review","","all events of Type B viral hepatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439674, 4281232","","",,,,,,666,666 +667,"[P][R] Guttate psoriasis",667,"cohortNameLong : Guttate psoriasis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Guttate psoriasis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4284492; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Guttate psoriasis",,"Guttate psoriasis","Pending peer review","","all events of Guttate psoriasis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4284492","","",,,,,,667,667 +668,"[P][R] SLE glomerulonephritis syndrome",668,"cohortNameLong : SLE glomerulonephritis syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of SLE glomerulonephritis syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4285717; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","SLE glomerulonephritis syndrome",,"SLE glomerulonephritis syndrome","Pending peer review","","all events of SLE glomerulonephritis syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4285717","","",,,,,,668,668 +669,"[P][R] Schizoaffective disorder",669,"cohortNameLong : Schizoaffective disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Schizoaffective disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4286201; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Schizoaffective disorder",,"Schizoaffective disorder","Pending peer review","","all events of Schizoaffective disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4286201","","",,,,,,669,669 +670,"[P][R] Temporal arteritis",670,"cohortNameLong : Temporal arteritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Temporal arteritis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4290976, 4343935; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Temporal arteritis",,"Temporal arteritis","Pending peer review","","all events of Temporal arteritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4290976, 4343935","","",,,,,,670,670 +671,"[P][R] Pregnant",671,"cohortNameLong : Pregnant; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pregnant. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4299535; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Pregnant",,"Pregnant","Pending peer review","","all events of Pregnant. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4299535","","",,,,,,671,671 +672,"[P][R] Sense of smell impaired",672,"cohortNameLong : Sense of smell impaired; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Sense of smell impaired. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4307095; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Sense of smell impaired",,"Sense of smell impaired","Pending peer review","","all events of Sense of smell impaired. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4307095","","",,,,,,672,672 +673,"[P][R] Primary malignant neoplasm of respiratory tract",673,"cohortNameLong : Primary malignant neoplasm of respiratory tract; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Primary malignant neoplasm of respiratory tract. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4311499; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Primary malignant neoplasm of respiratory tract",,"Primary malignant neoplasm of respiratory tract","Pending peer review","","all events of Primary malignant neoplasm of respiratory tract. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4311499","","",,,,,,673,673 +674,"[P][R] Degeneration of retina",674,"cohortNameLong : Degeneration of retina; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Degeneration of retina. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 376966, 4318985; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Degeneration of retina",,"Degeneration of retina","Pending peer review","","all events of Degeneration of retina. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376966, 4318985","","",,,,,,674,674 +675,"[P][R] Pulmonary hypertension",675,"cohortNameLong : Pulmonary hypertension; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Pulmonary hypertension. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4322024, 4339214; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Pulmonary hypertension",,"Pulmonary hypertension","Pending peer review","","all events of Pulmonary hypertension. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4322024, 4339214","","",,,,,,675,675 +676,"[P][R] Necrosis of artery",676,"cohortNameLong : Necrosis of artery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Necrosis of artery. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4344489,320749,319047; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-22","rao@ohdsi.org","Necrosis of artery",,"Necrosis of artery","Pending peer review","","all events of Necrosis of artery. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4344489,320749,319047","","",,,,,,676,676 +677,"[P][R] Preterm labor with preterm delivery",677,"cohortNameLong : Preterm labor with preterm delivery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Preterm labor with preterm delivery. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 36712702, 45757176; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Preterm labor with preterm delivery",,"Preterm labor with preterm delivery","Pending peer review","","all events of Preterm labor with preterm delivery. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","36712702, 45757176","","",,,,,,677,677 +678,"[P][R] COVID-19",678,"cohortNameLong : COVID-19; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of COVID-19. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 37311061; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","COVID-19",,"COVID-19","Pending peer review","","all events of COVID-19. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37311061","","",,,,,,678,678 +679,"[P][R] Takotsubo cardiomyopathy",679,"cohortNameLong : Takotsubo cardiomyopathy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Takotsubo cardiomyopathy. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 40479589; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Takotsubo cardiomyopathy",,"Takotsubo cardiomyopathy","Pending peer review","","all events of Takotsubo cardiomyopathy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40479589","","",,,,,,679,679 +680,"[P][R] Mantle cell lymphoma",680,"cohortNameLong : Mantle cell lymphoma; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Mantle cell lymphoma. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 40481901; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Mantle cell lymphoma",,"Mantle cell lymphoma","Pending peer review","","all events of Mantle cell lymphoma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40481901","","",,,,,,680,680 +681,"[P][R] Malignant neoplasm of anorectum",681,"cohortNameLong : Malignant neoplasm of anorectum; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Malignant neoplasm of anorectum. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 74582, 40481902; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant neoplasm of anorectum",,"Malignant neoplasm of anorectum","Pending peer review","","all events of Malignant neoplasm of anorectum. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","74582, 40481902","","",,,,,,681,681 +682,"[P][R] Marginal zone lymphoma",682,"cohortNameLong : Marginal zone lymphoma; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Marginal zone lymphoma. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 40490918; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Marginal zone lymphoma",,"Marginal zone lymphoma","Pending peer review","","all events of Marginal zone lymphoma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40490918","","",,,,,,682,682 +683,"[P][R] Antineutrophil cytoplasmic antibody positive vasculitis",683,"cohortNameLong : Antineutrophil cytoplasmic antibody positive vasculitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Antineutrophil cytoplasmic antibody positive vasculitis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313223, 42535714; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Antineutrophil cytoplasmic antibody positive vasculitis",,"Antineutrophil cytoplasmic antibody positive vasculitis","Pending peer review","","all events of Antineutrophil cytoplasmic antibody positive vasculitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313223, 42535714","","",,,,,,683,683 +684,"[P][R] Sensory disorder of smell and/or taste",684,"cohortNameLong : Sensory disorder of smell and/or taste; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Sensory disorder of smell and/or taste. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 43530714; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Sensory disorder of smell and/or taste",,"Sensory disorder of smell and/or taste","Pending peer review","","all events of Sensory disorder of smell and/or taste. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","43530714","","",,,,,,684,684 +685,"[P][R] Cardiac arrhythmia",685,"cohortNameLong : Cardiac arrhythmia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Cardiac arrhythmia. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313217, 44784217; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Cardiac arrhythmia",,"Cardiac arrhythmia","Pending peer review","","all events of Cardiac arrhythmia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 44784217","","",,,,,,685,685 +686,"[P][R] Fracture of bone of hip region",686,"cohortNameLong : Fracture of bone of hip region; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Fracture of bone of hip region. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 434500, 45763653; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Fracture of bone of hip region",,"Fracture of bone of hip region","Pending peer review","","all events of Fracture of bone of hip region. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434500, 45763653","","",,,,,,686,686 +687,"[P][R] Chronic kidney disease",687,"cohortNameLong : Chronic kidney disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Chronic kidney disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 193782, 46271022; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Chronic kidney disease",,"Chronic kidney disease","Pending peer review","","all events of Chronic kidney disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","193782, 46271022","","",,,,,,687,687 +688,"[P][R] Death",688,"cohortNameLong : Death; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Suicide. Persons exit on cohort end date; +hashTag : #Referent, #Observation; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440925; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-20","rao@ohdsi.org","Death",,"Death","Pending peer review","","all events of Suicide. Persons exit on cohort end date","#Referent, #Observation","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440925","","",,,,,,688,688 +689,"[P][R] Newborn death",689,"cohortNameLong : Newborn death; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Newborn death. Persons exit on cohort end date; +hashTag : #Referent, #Observation; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4079843; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Newborn death",,"Newborn death","Pending peer review","","all events of Newborn death. Persons exit on cohort end date","#Referent, #Observation","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4079843","","",,,,,,689,689 +690,"[P][R] Suicide",690,"cohortNameLong : Suicide; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Death. Persons exit on cohort end date; +hashTag : #Referent, #Observation; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4306655; +ohdsiForumPost : ; +replaces : ; +","2023-06-25","2023-09-19","rao@ohdsi.org","Suicide",,"Suicide","Pending peer review","","all events of Death. Persons exit on cohort end date","#Referent, #Observation","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4306655","","",,,,,,690,690 +691,"Transverse myelitis or symptoms indexed on symptoms or diagnosis",691,"cohortNameLong : Transverse myelitis or symptoms indexed on symptoms or diagnosis; +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.9.0; +logicDescription : events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia; +hashTag : #Accepted, #Level2; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : Evan Minty; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 79908, 139803, 443904; +ohdsiForumPost : ; +replaces : ; +","2023-06-26","2023-09-19","rao@ohdsi.org","Transverse myelitis or symptoms indexed on symptoms or diagnosis",,"Transverse myelitis or symptoms indexed on symptoms or diagnosis","Accepted","3.9.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 139803, 443904","","",,,,,,691,691 +692,"Transverse myelitis indexed on diagnosis",692,"cohortNameLong : Transverse myelitis indexed on diagnosis; +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.7.0; +logicDescription : events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia; +hashTag : #Accepted, #Level2; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : Evan Minty; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 139803, 443904; +ohdsiForumPost : ; +replaces : ; +","2023-06-26","2023-09-19","rao@ohdsi.org","Transverse myelitis indexed on diagnosis",,"Transverse myelitis indexed on diagnosis","Accepted","3.7.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","139803, 443904","","",,,,,,692,692 +693,"Acquired Neutropenia or unspecified leukopenia",693,"cohortNameLong : Acquired Neutropenia or unspecified leukopenia; +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.11.0; +logicDescription : all events of neutropenia indexed on diagnosis or lab results with no congenital or genetic neutropenia; +hashTag : #PhenotypePhebruary, #2023, #Neutropenia; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : Anna Ostropolets; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435224; +ohdsiForumPost : ; +replaces : ; +","2023-06-26","2023-09-19","rao@ohdsi.org","Acquired Neutropenia or unspecified leukopenia",,"Acquired Neutropenia or unspecified leukopenia","Accepted","3.11.0","all events of neutropenia indexed on diagnosis or lab results with no congenital or genetic neutropenia","#PhenotypePhebruary, #2023, #Neutropenia","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Anna Ostropolets","","435224","","",,,,,,693,693 +694,"Appendicitis during Inpatient visit",694,"cohortNameLong : Appendicitis during Inpatient visit; +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.11.0; +logicDescription : events of appendicitis with an inpatient or ER visit with no events in 365 days clean window; +hashTag : #PhenotypePhebruary, #2023; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : Azza Shoaibi; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440448, 441604; +ohdsiForumPost : ; +replaces : ; +","2023-06-26","2023-09-19","rao@ohdsi.org","Appendicitis during Inpatient visit",,"Appendicitis during Inpatient visit","Accepted","3.11.0","events of appendicitis with an inpatient or ER visit with no events in 365 days clean window","#PhenotypePhebruary, #2023","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Azza Shoaibi","","440448, 441604","","",,,,,,694,694 +695,"[P][R] Optic nerve glioma",695,"cohortNameLong : Optic nerve glioma; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Optic nerve glioma. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4112970; +ohdsiForumPost : ; +replaces : ; +","2023-06-26","2023-09-19","rao@ohdsi.org","Optic nerve glioma",,"Optic nerve glioma","Pending peer review","","all events of Optic nerve glioma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4112970","","",,,,,,695,695 +696,"[P][R] Neurofibromatosis type 2",696,"cohortNameLong : Neurofibromatosis type 2; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Neurofibromatosis type 2. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 380975; +ohdsiForumPost : ; +replaces : ; +","2023-06-26","2023-09-19","rao@ohdsi.org","Neurofibromatosis type 2",,"Neurofibromatosis type 2","Pending peer review","","all events of Neurofibromatosis type 2. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","380975","","",,,,,,696,696 +697,"[P][R] Neurofibromatosis type 1",697,"cohortNameLong : Neurofibromatosis type 1; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Neurofibromatosis type 1. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377252; +ohdsiForumPost : ; +replaces : ; +","2023-06-26","2023-09-19","rao@ohdsi.org","Neurofibromatosis type 1",,"Neurofibromatosis type 1","Pending peer review","","all events of Neurofibromatosis type 1. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377252","","",,,,,,697,697 +698,"[P][R] Neurofibromatosis syndrome",698,"cohortNameLong : Neurofibromatosis syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Neurofibromatosis syndrome. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 376938; +ohdsiForumPost : ; +replaces : ; +","2023-06-26","2023-09-19","rao@ohdsi.org","Neurofibromatosis syndrome",,"Neurofibromatosis syndrome","Pending peer review","","all events of Neurofibromatosis syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376938","","",,,,,,698,698 +699,"[P][R] Major Depressive Disorder",699,"cohortNameLong : Major Depressive Disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Major Depressive Disorder. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4152280, 4282096; +ohdsiForumPost : ; +replaces : ; +","2023-06-26","2023-09-19","rao@ohdsi.org","Major Depressive Disorder",,"Major Depressive Disorder","Pending peer review","","all events of Major Depressive Disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4152280, 4282096","","",,,,,,699,699 +701,"[P][R] Ascites",701,"cohortNameLong : Ascites; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Ascites. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 200528; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-07-09","2023-09-19","rao@ohdsi.org","Ascites",,"Ascites","Pending peer review","","all events of Ascites. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200528","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,701,701 +702,"[P] Alanine aminotransferase (ALT) elevated",702,"cohortNameLong : Alanine aminotransferase (ALT) elevated; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Alanine aminotransferase (ALT) elevated; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4146380; +ohdsiForumPost : ; +replaces : ; +","2023-07-11","2023-09-25","rao@ohdsi.org","Alanine aminotransferase (ALT) elevated",,"Alanine aminotransferase (ALT) elevated","Pending peer review","","All events of Alanine aminotransferase (ALT) elevated","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4146380","","",,,,,,702,702 +703,"[P] Aspartate aminotransferase (AST) elevated",703,"cohortNameLong : Aspartate aminotransferase (AST) elevated; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Aspartate aminotransferase (ALT) elevated; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4263457; +ohdsiForumPost : ; +replaces : ; +","2023-07-11","2023-09-25","rao@ohdsi.org","Aspartate aminotransferase (AST) elevated",,"Aspartate aminotransferase (AST) elevated","Pending peer review","","All events of Aspartate aminotransferase (ALT) elevated","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4263457","","",,,,,,703,703 +705,"[P] Total Bilirubin elevated",705,"cohortNameLong : Total Bilirubin elevated; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Total Bilirubin elevated; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4230543; +ohdsiForumPost : ; +replaces : ; +","2023-07-11","2023-09-25","rao@ohdsi.org","Total Bilirubin elevated",,"Total Bilirubin elevated","Pending peer review","","Total Bilirubin elevated","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4230543","","",,,,,,705,705 +706,"[P] Prothrombin time (PT) elevated",706,"cohortNameLong : Prothrombin time (PT) elevated; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Prothrombin time (PT) elevated; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4055672; +ohdsiForumPost : ; +replaces : ; +","2023-07-11","2023-09-25","rao@ohdsi.org","Prothrombin time (PT) elevated",,"Prothrombin time (PT) elevated","Pending peer review","","Prothrombin time (PT) elevated","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4055672","","",,,,,,706,706 +707,"Inpatient Hospitalization (0Pe, 1Era)",707,"cohortNameLong : Inpatient Hospitalization (0Pe, 1Era); +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.4.0; +logicDescription : All events of Inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process; +hashTag : #standard, #Visits; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : 23; +","2023-07-12","2023-09-19","rao@ohdsi.org","Inpatient Hospitalization (0Pe, 1Era)",,"Inpatient Hospitalization (0Pe, 1Era)","Accepted","3.4.0","All events of Inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","23",,,,,,707,707 +708,"[P] International normalized ratio (INR) elevated",708,"cohortNameLong : International normalized ratio (INR); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : International normalized ratio (INR); +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4306239; +ohdsiForumPost : ; +replaces : ; +","2023-07-14","2023-09-25","rao@ohdsi.org","International normalized ratio (INR) elevated",,"International normalized ratio (INR)","Pending peer review","","International normalized ratio (INR)","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4306239","","",,,,,,708,708 +709,"[P][R] Chronic liver disease",709,"cohortNameLong : Chronic liver disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Chronic liver disease. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4212540; +ohdsiForumPost : ; +replaces : ; +","2023-07-14","2023-09-19","rao@ohdsi.org","Chronic liver disease",,"Chronic liver disease","Pending peer review","","all events of Chronic liver disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4212540","","",,,,,,709,709 +710,"[P] Cirrhosis of liver or its sequela",710,"cohortNameLong : Cirrhosis of liver or its sequela; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Cirrhosis of liver or its sequela. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4064161; +ohdsiForumPost : ; +replaces : ; +","2023-07-19","2023-09-25","rao@ohdsi.org","Cirrhosis of liver or its sequela",,"Cirrhosis of liver or its sequela","Pending peer review","","all events of Cirrhosis of liver or its sequela. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4064161","","",,,,,,710,710 +711,"[P][R] Transplanted liver present",711,"cohortNameLong : Transplanted liver present; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Transplanted liver present. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 42537742; +ohdsiForumPost : ; +replaces : ; +","2023-07-19","2023-09-19","rao@ohdsi.org","Transplanted liver present",,"Transplanted liver present","Pending peer review","","all events of Transplanted liver present. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","42537742","","",,,,,,711,711 +712,"[P] Viral hepatitis including history of",712,"cohortNameLong : Viral hepatitis including history of; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Viral hepatitis including history of; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4291005; +ohdsiForumPost : ; +replaces : ; +","2023-07-19","2023-09-25","rao@ohdsi.org","Viral hepatitis including history of",,"Viral hepatitis including history of","Pending peer review","","All events of Viral hepatitis including history of","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4291005","","",,,,,,712,712 +713,"[P] Alcoholic hepatitis or alcohol liver disorder",713,"cohortNameLong : Alcoholic hepatitis or alcohol liver disorder; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Alcoholic hepatitis or alcohol liver disorder; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4340383; +ohdsiForumPost : ; +replaces : ; +","2023-07-19","2023-09-25","rao@ohdsi.org","Alcoholic hepatitis or alcohol liver disorder",,"Alcoholic hepatitis or alcohol liver disorder","Pending peer review","","all events of Alcoholic hepatitis or alcohol liver disorder","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4340383","","",,,,,,713,713 +714,"[P][R] Endometriosis (clinical)",714,"cohortNameLong : Endometriosis (clinical); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Endometriosis (clinical). Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433527; +ohdsiForumPost : ; +replaces : ; +","2023-07-19","2023-09-19","rao@ohdsi.org","Endometriosis (clinical)",,"Endometriosis (clinical)","Pending peer review","","all events of Endometriosis (clinical). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433527","","",,,,,,714,714 +715,"[P] Hepatic fibrosis",715,"cohortNameLong : Hepatic fibrosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hepatic Fibrosis. Persons exit on cohort end date; +hashTag : #Referent, #Condition; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4064161,4267417; +ohdsiForumPost : ; +replaces : ; +","2023-07-19","2023-09-25","rao@ohdsi.org","Hepatic fibrosis",,"Hepatic fibrosis","Pending peer review","","all events of Hepatic Fibrosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4064161,4267417","","",,,,,,715,715 +716,"[P] Acute Hepatic Injury",716,"cohortNameLong : Acute Hepatic Injury; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Acute Hepatic Injury; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194990; +ohdsiForumPost : ; +replaces : ; +","2023-07-20","2023-09-25","rao@ohdsi.org","Acute Hepatic Injury",,"Acute Hepatic Injury","Pending","","Acute Hepatic Injury","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194990","","",,,,,,716,716 +717,"[P] Portal hypertension or esophageal varices",717,"cohortNameLong : Portal vein thrombosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all event of portal hypertension or esophageal varices; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192680; +ohdsiForumPost : ; +replaces : ; +","2023-07-20","2023-09-25","rao@ohdsi.org","Portal hypertension or esophageal varices",,"Portal vein thrombosis","Pending peer review","","all event of portal hypertension or esophageal varices","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192680","","",,,,,,717,717 +719,"[P] Acute Hepatic Injury or jaundice while inpatient with no cooccurring certain liver disease",719,"cohortNameLong : ; +librarian : rao@ohdsi.org; +status : ; +addedVersion : ; +logicDescription : ; +hashTag : ; +contributors : ; +contributorOrcIds : ; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-07-24","2023-09-19","rao@ohdsi.org","Acute Hepatic Injury or jaundice while inpatient with no cooccurring certain liver disease",,"","","","","","","","","","","","","",,,,,,719,719 +720,"[P] Aplastic Anemia",720,"cohortNameLong : Aplastic Anemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of aplastic anemia; +hashTag : #DME; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137829; +ohdsiForumPost : ; +replaces : ; +","2023-07-26","2024-09-11","rao@ohdsi.org","Aplastic Anemia",,"Aplastic Anemia","Pending peer review","","all events of aplastic anemia","#DME","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137829","","",,,,,,720,720 +721,"[P] Sudden New Onset Blindness",721,"cohortNameLong : Sudden New Onset Blindness; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Sudden New Onset Blindness; +hashTag : ; +contributors : Gowtham A. Rao, Azza Shoaibi; +contributorOrcIds : '0000-0002-4949-7236','0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377556; +ohdsiForumPost : ; +replaces : ; +","2023-07-27","2023-09-19","rao@ohdsi.org","Sudden New Onset Blindness",,"Sudden New Onset Blindness","Pending peer review","","all events of Sudden New Onset Blindness","","Gowtham A. Rao, Azza Shoaibi","'0000-0002-4949-7236','0000-0002-6976-2594'","'OHDSI'","","","377556","","",,,,,,721,721 +722,"[P] Endometriosis indexed on procedure with two or more diagnosis among females 15 to 49",722,"cohortNameLong : Endometriosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : An occurrence of procedure expected to be performed for persons with endometriosis with a diagnosis of endometriosis within 30 days of the procedure. Should have two more diagnosis in the future. Should be female. Should be between 15 to 49 years. A person is expected to be in the phenotype for the rest of their life (i.e. the disease never ends); +hashTag : ; +contributors : 'Molle McKillop', 'Noémie Elhadad'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433527; +ohdsiForumPost : ; +replaces : ; +","2023-08-22","2023-09-19","rao@ohdsi.org","Endometriosis indexed on procedure with two or more diagnosis among females 15 to 49",,"Endometriosis","Pending peer review","","An occurrence of procedure expected to be performed for persons with endometriosis with a diagnosis of endometriosis within 30 days of the procedure. Should have two more diagnosis in the future. Should be female. Should be between 15 to 49 years. A person is expected to be in the phenotype for the rest of their life (i.e. the disease never ends)","","'Molle McKillop', 'Noémie Elhadad'","","'OHDSI'","","","433527","","",,,,,,722,722 +723,"[P] First Acute Hepatic Failure with no known severe liver disease",723,"cohortNameLong : Earliest event of Acute Hepatic Failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : This definition, is modeling acute hepatic failure, assuming that acute hepatic failure by definition is severe liver injury with hepatic coma in the absence of known liver disease. This definition include hepatic coma that is potentially due to viral hepatis or alcohol use.; +hashTag : #Disease, #DME; +contributors : Azza Shoaibi; +contributorOrcIds : '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2023-08-22","2024-09-11","rao@ohdsi.org","First Acute Hepatic Failure with no known severe liver disease",,"Earliest event of Acute Hepatic Failure","Pending peer review","","This definition, is modeling acute hepatic failure, assuming that acute hepatic failure by definition is severe liver injury with hepatic coma in the absence of known liver disease. This definition include hepatic coma that is potentially due to viral hepatis or alcohol use.","#Disease, #DME","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","4245975","","",,,,,,723,723 +724,"[P] First Acute Hepatic Failure with no known liver disease",724,"cohortNameLong : Earliest event of Acute Hepatic Failure, NO viral hepatitis or alcoholic hepatic failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : This definition, is modeling acute hepatic failure, assuming that acute hepatic failure by definition is severe liver injury with hepatic coma in the absence of known liver disease. This definition excludes persons with viral hepatis or alcohol use.; +hashTag : #Disease, #DME; +contributors : Azza Shoaibi; +contributorOrcIds : '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2023-08-22","2024-09-11","rao@ohdsi.org","First Acute Hepatic Failure with no known liver disease",,"Earliest event of Acute Hepatic Failure, NO viral hepatitis or alcoholic hepatic failure","Pending peer review","","This definition, is modeling acute hepatic failure, assuming that acute hepatic failure by definition is severe liver injury with hepatic coma in the absence of known liver disease. This definition excludes persons with viral hepatis or alcohol use.","#Disease, #DME","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","4245975","","",,,,,,724,724 +725,"[P] All events of Acute Kidney Injury (AKI), with a washout period of 30 days",725,"cohortNameLong : All events of Acute Kidney Injury (AKI); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd,. Applying a washout period of 30 days between observed events excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior . patients exit the cohort 7 days post index..; +hashTag : #Disease, #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197320; +ohdsiForumPost : ; +replaces : ; +","2023-08-22","2024-09-11","rao@ohdsi.org","All events of Acute Kidney Injury (AKI), with a washout period of 30 days",,"All events of Acute Kidney Injury (AKI)","Pending peer review","","All events of Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd,. Applying a washout period of 30 days between observed events excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior . patients exit the cohort 7 days post index..","#Disease, #DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","197320","","",,,,,,725,725 +726,"[P] All events of Anaphylaxis, Mini-Sentinel",726," + cohortNameLong : All events of Anaphylaxis, Mini-Sentinel; + cohortNameAtlas : [P] All events of Anaphylaxis, Mini-Sentinel; + librarian : rao@ohdsi.org; + status : Pending peer review; + addedVersion : ; + logicDescription : All events of anaphylaxis in inpatient setting, or anaphylaxis in outpatient along with symptoms or treatment for anaphylaxis ; + hashTag : #Disease, #DME, #replication; + contributors : Azza Shoaibi; + contributorOrcIds : '0000-0002-6976-2594'; + contributorOrganizations : 'OHDSI'; + peerReviewers : ; + peerReviewerOrcIds : ; + recommendedEraPersistenceDurations : 1; + recommendedEraCollapseDurations : 0; + recommendSubsetOperators : ; + recommendedReferentConceptIds : 441202; + ohdsiForumPost : ;","2023-08-22","2024-09-11","rao@ohdsi.org","All events of Anaphylaxis, Mini-Sentinel",,"All events of Anaphylaxis, Mini-Sentinel","Pending peer review","","All events of anaphylaxis in inpatient setting, or anaphylaxis in outpatient along with symptoms or treatment for anaphylaxis","#Disease, #DME, #replication","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","441202","",,,"[P] All events of Anaphylaxis, Mini-Sentinel","1","0","",726,726 +727,"[P] All events of Angioedema, with a washout period of 180 days",727,"cohortNameLong : Angioedema; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of angioedema, indexed on a diagnosis of angioedema or urticaria followed by a diagnosis of angioedema within 3 days. With no diagnosis of angioedema in the last 180 days of washout period. Events are excluded if they have recent cardiac edema, cellulitis, erysipelas, dermatitis or eczema, lymphedema or insect bites 7 days before to and including index date. Cohort exist is 1 day post cohort end date; +hashTag : #Disease, #DME; +contributors : Azza Shoaibi; +contributorOrcIds : '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 139900; +ohdsiForumPost : ; +replaces : ; +","2023-08-22","2024-09-11","rao@ohdsi.org","All events of Angioedema, with a washout period of 180 days",,"Angioedema","Pending peer review","","All events of angioedema, indexed on a diagnosis of angioedema or urticaria followed by a diagnosis of angioedema within 3 days. With no diagnosis of angioedema in the last 180 days of washout period. Events are excluded if they have recent cardiac edema, cellulitis, erysipelas, dermatitis or eczema, lymphedema or insect bites 7 days before to and including index date. Cohort exist is 1 day post cohort end date","#Disease, #DME","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","139900","","",,,,,,727,727 +728,"[P] Autoimmune hemolytic anemia events not including evans syndrome",728,"cohortNameLong : Autoimmune hemolytic anemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Autoimmune hemolytic anemia events not including evans syndrome; +hashTag : #Disease, #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441269; +ohdsiForumPost : ; +replaces : ; +","2023-08-23","2024-09-11","rao@ohdsi.org","Autoimmune hemolytic anemia events not including evans syndrome",,"Autoimmune hemolytic anemia","Pending peer review","","All events of Autoimmune hemolytic anemia events not including evans syndrome","#Disease, #DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","441269","","",,,,,,728,728 +729,"[P] Autoimmune hepatitis, with a washout period of 365 days",729,"cohortNameLong : All events of Autoimmune hepatitis, with a washout period of 365 days; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of autoimmune hepatitis, indexed on diagnosis of autoimmune hepatitis, excluding event occurring in prior 365days washout period. Also excluded are events that have chronic liver diseases that may have similar presentation such as viral hepatitis, drug induced liver injury, alcoholic liver disease, and no systemic lupus erythematosus in past 365 and including index. Cohort exist is 1 day post end date.; +hashTag : #DME; +contributors : Azza Shoaibi; +contributorOrcIds : '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 200762; +ohdsiForumPost : ; +replaces : ; +","2023-08-23","2024-09-11","rao@ohdsi.org","Autoimmune hepatitis, with a washout period of 365 days",,"All events of Autoimmune hepatitis, with a washout period of 365 days","Pending peer review","","all events of autoimmune hepatitis, indexed on diagnosis of autoimmune hepatitis, excluding event occurring in prior 365days washout period. Also excluded are events that have chronic liver diseases that may have similar presentation such as viral hepatitis, drug induced liver injury, alcoholic liver disease, and no systemic lupus erythematosus in past 365 and including index. Cohort exist is 1 day post end date.","#DME","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","200762","","",,,,,,729,729 +730,"[P] Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis",730,"cohortNameLong : All events Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of acute pancreatitis, indexed on an inpatient or emergency or an out patient visit (restricted to overlapping with an Emergency room procedures) with a diagnosis of Acute pancreatitis. With 1. no such events in prior washout window of 365 days 2. and no history of chronic pancreatitis any time prior or hereditary pancreatitis any time pre or post index. Cohort exit is 7 days post index.; +hashTag : ; +contributors : Azza Shoaibi; +contributorOrcIds : '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4192640, 199074; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848; +replaces : ; +","2023-08-23","2024-09-11","rao@ohdsi.org","Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis",,"All events Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis","Pending peer review","","all events of acute pancreatitis, indexed on an inpatient or emergency or an out patient visit (restricted to overlapping with an Emergency room procedures) with a diagnosis of Acute pancreatitis. With 1. no such events in prior washout window of 365 days 2. and no history of chronic pancreatitis any time prior or hereditary pancreatitis any time pre or post index. Cohort exit is 7 days post index.","","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","4192640, 199074","https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848","",,,,,,730,730 +731,"[P] Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions",731,"cohortNameLong : All events of Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of sudden Hearing Loss, indexed on diagnosis of sudden hearing loss or a diagnosis or observation of any hearing loss that co-occurred with treatments or investigations within 1 day before to 21 days after index. Events much had 1. No hearing loss diagnosis or observation events in prior washout window of 365 days 2. No congenital anomaly of hearing any time 2. No history of middle or inner ear related diseases any time prior to 7 days before index. 3. Has not had audiometry 365 days before to 30 days prior index. exist cohort 30 days post end date.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374053, 377889; +ohdsiForumPost : ; +replaces : ; +","2023-08-23","2024-09-11","rao@ohdsi.org","Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions",,"All events of Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions","Pending peer review","","all events of sudden Hearing Loss, indexed on diagnosis of sudden hearing loss or a diagnosis or observation of any hearing loss that co-occurred with treatments or investigations within 1 day before to 21 days after index. Events much had 1. No hearing loss diagnosis or observation events in prior washout window of 365 days 2. No congenital anomaly of hearing any time 2. No history of middle or inner ear related diseases any time prior to 7 days before index. 3. Has not had audiometry 365 days before to 30 days prior index. exist cohort 30 days post end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","374053, 377889","","",,,,,,731,731 +732,"[P] Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS) with clean window",732,"cohortNameLong : All events of Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Severe Cutaneous Adverse Reaction SCAR, indexed on the diagnosis for Drug Rash With Eosinophilia, or Systemic Symptoms (DRESS) or Erythema Multiforme or Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis. Excluding events in prior 365 days washout period. cohort exist 3 days post end date.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 141651, 45765791; +ohdsiForumPost : ; +replaces : ; +","2023-08-23","2024-09-11","rao@ohdsi.org","Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS) with clean window",,"All events of Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS)","Pending peer review","","All events of Severe Cutaneous Adverse Reaction SCAR, indexed on the diagnosis for Drug Rash With Eosinophilia, or Systemic Symptoms (DRESS) or Erythema Multiforme or Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis. Excluding events in prior 365 days washout period. cohort exist 3 days post end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","141651, 45765791","","",,,,,,732,732 +733,"[P] Drug Rash with Eosinophilia and Systemic Symptoms (DRESS) with clean window",733,"cohortNameLong : All events Drug Rash with Eosinophilia and Systemic Symptoms (DRESS); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), index on diagnosis of (DRESS), excluding DRESS events in the last 365 day washout period. Cohort exist is 1 day after end date.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 45765791; +ohdsiForumPost : ; +replaces : ; +","2023-08-23","2024-09-11","rao@ohdsi.org","Drug Rash with Eosinophilia and Systemic Symptoms (DRESS) with clean window",,"All events Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), index on diagnosis of (DRESS), excluding DRESS events in the last 365 day washout period. Cohort exist is 1 day after end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","45765791","","",,,,,,733,733 +734,"[P] Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)",734,"cohortNameLong : All events Drug Rash with Eosinophilia and Systemic Symptoms (DRESS); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), index on diagnosis of (DRESS); +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 45765791; +ohdsiForumPost : ; +replaces : ; +","2023-08-23","2023-10-03","rao@ohdsi.org","Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)",,"All events Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), index on diagnosis of (DRESS)","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","45765791","","",,,,,,734,734 +735,"[P] Acute Liver Injury indexed on diagnosis or symptoms with no chronic hepatic failure",735,"cohortNameLong : All events of Acute Liver Injury; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, excluding events of Acute Liver Injury in prior 365 washout period. Excluding events with chronic hepatic failure on the same index date. patients exist cohort 90 days post end date.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194990; +ohdsiForumPost : ; +replaces : ; +","2023-08-23","2024-09-11","rao@ohdsi.org","Acute Liver Injury indexed on diagnosis or symptoms with no chronic hepatic failure",,"All events of Acute Liver Injury","Pending","","All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, excluding events of Acute Liver Injury in prior 365 washout period. Excluding events with chronic hepatic failure on the same index date. patients exist cohort 90 days post end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","194990","","",,,,,,735,735 +736,"[P] Acute Liver Injury NO viral, alcoholic, chronic hepatic failure",736,"cohortNameLong : All events of Acute Liver Injury, NO viral hepatitis or alcoholic hepatic failure; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, excluding events of Acute Liver Injury in prior 365 washout period. Excluding events with chronic hepatic failure on the same index date. patients exist cohort 90 days post end date.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194990; +ohdsiForumPost : ; +replaces : ; +","2023-08-23","2024-09-11","rao@ohdsi.org","Acute Liver Injury NO viral, alcoholic, chronic hepatic failure",,"All events of Acute Liver Injury, NO viral hepatitis or alcoholic hepatic failure","Pending","","All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, excluding events of Acute Liver Injury in prior 365 washout period. Excluding events with chronic hepatic failure on the same index date. patients exist cohort 90 days post end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","194990","","",,,,,,736,736 +737,"[P] Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era",737,"cohortNameLong : Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of febrile neutropenia, indexed on the diagnosis of febrile neutropenia or a fever (diagnosis or measurement) cooccurring with neutropenia (diagnosis or measurement) within 1 day , or a diagnosis of clinically significant infection cooccurring with neutropenia (diagnosis or measurement) within 1 day. Restricted to events overlapping with in an inpatient or emergency room visit and excluding events with a normal neutrophil count (ANC) on index. Cohort exit is 3 days after end date. Recurrent events will be combined into event eras if they are within 90 days of each other.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257011, 437663, 4170143, 4250734; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-febrile-neutropenia-or-neutropenic-fever/17876; +replaces : ; +","2023-08-23","2024-09-11","rao@ohdsi.org","Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era",,"Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era","Pending peer review","","All events of febrile neutropenia, indexed on the diagnosis of febrile neutropenia or a fever (diagnosis or measurement) cooccurring with neutropenia (diagnosis or measurement) within 1 day , or a diagnosis of clinically significant infection cooccurring with neutropenia (diagnosis or measurement) within 1 day. Restricted to events overlapping with in an inpatient or emergency room visit and excluding events with a normal neutrophil count (ANC) on index. Cohort exit is 3 days after end date. Recurrent events will be combined into event eras if they are within 90 days of each other.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","257011, 437663, 4170143, 4250734","https//forums.ohdsi.org/t/phenotype-submission-febrile-neutropenia-or-neutropenic-fever/17876","",,,,,,737,737 +738,"[P] Autoimmune hemolytic anemia",738,"cohortNameLong : Autoimmune hemolytic anemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Autoimmune hemolytic anemia events not including evans syndrome; +hashTag : #Disease, #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441269; +ohdsiForumPost : ; +replaces : ; +","2023-08-23","2023-10-03","rao@ohdsi.org","Autoimmune hemolytic anemia",,"Autoimmune hemolytic anemia","Pending peer review","","All events of Autoimmune hemolytic anemia events not including evans syndrome","#Disease, #DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","441269","","",,,,,,738,738 +739,"[P] All events of Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days",739,"cohortNameLong : Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Immune Thrombocytopenia (ITP), excluding such events in prior 365 days as washout period, also excluded are 1. events with a diagnosis of congenital or genetic thrombocytopenia all time prior to 7 days post index, 2. Events with a platelet count of >100 or a diagnosis of thrombocytosis on day of index 3. Events with co-occurring neutropenia, pancytopenia, bone marrow involvement, anemia 7 days within index. Persons exit after 180 days or when a normal platelet count measure is observed.; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433749, 4103532; +ohdsiForumPost : ; +replaces : ; +","2023-08-23","2024-09-11","rao@ohdsi.org","All events of Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days",,"Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days","Pending peer review","","all events of Immune Thrombocytopenia (ITP), excluding such events in prior 365 days as washout period, also excluded are 1. events with a diagnosis of congenital or genetic thrombocytopenia all time prior to 7 days post index, 2. Events with a platelet count of >100 or a diagnosis of thrombocytosis on day of index 3. Events with co-occurring neutropenia, pancytopenia, bone marrow involvement, anemia 7 days within index. Persons exit after 180 days or when a normal platelet count measure is observed.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433749, 4103532","","",,,,,,739,739 +740,"[W] Earliest event of Pulmonary arterial hypertension (PAH)",740,"cohortNameLong : Pulmonary arterial hypertension (PAH); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest occurrence of Pulmonary Arterial Hypertension (PAH) indexed on occurrence of PAH condition requiring right heart catheterization or echocardiogram 30 days before or 30 days after diagnosis/index. Cohort exit is the end of continuous observation.; +hashTag :; +contributors : 'Joel Swerdel'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4013643; +ohdsiForumPost : ; +replaces : ; +notes : duplicate of 747;","2023-08-23","2024-09-11","rao@ohdsi.org","Earliest event of Pulmonary arterial hypertension (PAH)",,"Pulmonary arterial hypertension (PAH)","Pending peer review","","Earliest occurrence of Pulmonary Arterial Hypertension (PAH) indexed on occurrence of PAH condition requiring right heart catheterization or echocardiogram 30 days before or 30 days after diagnosis/index. Cohort exit is the end of continuous observation.","","'Joel Swerdel'","","'OHDSI'","","","4013643","","","duplicate of 747",,,,,740,740 +741,"[P] Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)",741,"cohortNameLong : Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest events of Immune Thrombotic microangiopathy or microangiopathic hemolytic anemia indexed on the diagnosis or its treatment or investigation. Events with congenital or genetic thrombocytopenia all time prior to 7 days post index are excluded. Also excluded are patients with Platelet count > 150. cohort exit is 7 days post end date or an occurrence of a normal platelet measure .; +hashTag : #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313800, 4119134; +ohdsiForumPost : ; +replaces : ; +","2023-08-23","2024-09-11","rao@ohdsi.org","Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)",,"Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","Pending peer review","","Earliest events of Immune Thrombotic microangiopathy or microangiopathic hemolytic anemia indexed on the diagnosis or its treatment or investigation. Events with congenital or genetic thrombocytopenia all time prior to 7 days post index are excluded. Also excluded are patients with Platelet count > 150. cohort exit is 7 days post end date or an occurrence of a normal platelet measure .","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","313800, 4119134","","",,,,,,741,741 +742,"[P] Parasomnia or Sleep dysfunction with arousal disturbance",742,"cohortNameLong : Parasomnia or Sleep dysfunction with arousal disturbance; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of Parasomnia or Sleep dysfunction with arousal disturbance with events collapse 1 day after; +hashTag : ; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 254761; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-08","2023-09-21","rao@ohdsi.org","Parasomnia or Sleep dysfunction with arousal disturbance",,"Parasomnia or Sleep dysfunction with arousal disturbance","Pending peer review","","All events of Parasomnia or Sleep dysfunction with arousal disturbance with events collapse 1 day after","","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","254761","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,742,742 +743,"[P] Diabetic ketoacidosis IP-ER (SNOMED concept)",743,"cohortNameLong : Diabetic ketoacidosis identified during the inpatient or emergency room SNOMED concept; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All condition occurrences of DKA during an ER or IP visit, with 30-day event persistence (SNOMED code only); +hashTag : ; +contributors : 'James Weaver', 'Chris Knoll'; +contributorOrcIds : '0000-0003-0755-5191',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 196523; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-08","2023-09-20","rao@ohdsi.org","Diabetic ketoacidosis IP-ER (SNOMED concept)",,"Diabetic ketoacidosis identified during the inpatient or emergency room SNOMED concept","Pending peer review","","All condition occurrences of DKA during an ER or IP visit, with 30-day event persistence (SNOMED code only)","","'James Weaver', 'Chris Knoll'","'0000-0003-0755-5191',''","'OHDSI'","","","196523","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,743,743 +744,"[P] Pulmonary Hypertension",744,"cohortNameLong : Pulmonary Hypertension; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Pulmonary Hypertension; +hashTag : ; +contributors : 'Joel N. Swerdel'; +contributorOrcIds : '0000-0001-9491-2737'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 312437, 4041664; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-14","2023-09-20","rao@ohdsi.org","Pulmonary Hypertension",,"Pulmonary Hypertension","Pending peer review","","First occurrence of Pulmonary Hypertension","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","312437, 4041664","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,744,744 +745,"[W] Inflammatory Bowel Disease",745,"cohortNameLong : Inflammatory Bowel Disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Inflammatory Bowel Disease; +hashTag : ; +contributors : 'Joel N. Swerdel'; +contributorOrcIds : '0000-0001-9491-2737'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4074815, 81893, 201606; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-inflammatory-bowel-disease/19834; +replaces : ; +notes : duplicate of 775;","2023-09-14","2023-10-13","rao@ohdsi.org","Inflammatory Bowel Disease",,"Inflammatory Bowel Disease","Pending peer review","","First occurrence of Inflammatory Bowel Disease","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","4074815, 81893, 201606",,"","duplicate of 775",,,,,745,745 +746,"[P] Chronic Thromboembolic Pulmonary Hypertension",746,"cohortNameLong : Chronic Thromboembolic Pulmonary Hypertension; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Chronic Thromboembolic Pulmonary Hypertension; +hashTag : ; +contributors : 'Joel N. Swerdel'; +contributorOrcIds : '0000-0001-9491-2737'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 378253; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-14","2023-09-20","rao@ohdsi.org","Chronic Thromboembolic Pulmonary Hypertension",,"Chronic Thromboembolic Pulmonary Hypertension","Pending peer review","","First occurrence of Chronic Thromboembolic Pulmonary Hypertension","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","378253","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,746,746 +747,"[P] Pulmonary Arterial Hypertension",747,"cohortNameLong : Pulmonary Arterial Hypertension; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Pulmonary Arterial Hypertension; +hashTag : ; +contributors : 'Joel N. Swerdel'; +contributorOrcIds : '0000-0001-9491-2737'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 43530714; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-14","2024-09-11","rao@ohdsi.org","Pulmonary Arterial Hypertension",,"Pulmonary Arterial Hypertension","Pending peer review","","First occurrence of Pulmonary Arterial Hypertension","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","43530714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,747,747 +748,"[P] Psoriatic arthritis",748,"cohortNameLong : Psoriatic arthritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Psoriatic arthritis; +hashTag : ; +contributors : 'Joel N. Swerdel'; +contributorOrcIds : '0000-0001-9491-2737'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 25297, 4226263; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-14","2023-09-20","rao@ohdsi.org","Psoriatic arthritis",,"Psoriatic arthritis","Pending peer review","","First occurrence of Psoriatic arthritis","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","25297, 4226263","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,748,748 +749,"[P] Plaque Psoriasis",749,"cohortNameLong : Plaque Psoriasis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Plaque Psoriasis; +hashTag : ; +contributors : 'Joel N. Swerdel'; +contributorOrcIds : '0000-0001-9491-2737'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 27674, 4101344; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-15","2023-09-20","rao@ohdsi.org","Plaque Psoriasis",,"Plaque Psoriasis","Pending peer review","","First occurrence of Plaque Psoriasis","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","27674, 4101344","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,749,749 +750,"[P] Pulmonary hypertension associated with left heart disease (WHO Group 2)",750,"cohortNameLong : Pulmonary hypertension associated with left heart disease (WHO Group 2); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Pulmonary hypertension associated with left heart disease (WHO Group 2); +hashTag : ; +contributors : 'Joel N. Swerdel'; +contributorOrcIds : '0000-0001-9491-2737'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4322024; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-pulmonary-hypertension-associated-with-left-heart-disease-who-group-2/19832; +replaces : ; +","2023-09-15","2023-10-05","rao@ohdsi.org","Pulmonary hypertension associated with left heart disease (WHO Group 2)",,"Pulmonary hypertension associated with left heart disease (WHO Group 2)","Pending peer review","","First occurrence of Pulmonary hypertension associated with left heart disease (WHO Group 2)","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","4322024",,"",,,,,,750,750 +752,"[P] Firearm Accidents (FA)",752,"cohortNameLong : Firearm Accidents (FA); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Firearm accident with an emergency room or inpatient visit on index; +hashTag : ; +contributors : 'Jill Hardin'; +contributorOrcIds : '0000-0003-2682-2187'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-firearm-accidents-fa/19839; +replaces : ; +notes: updates to earliest event on Jill Hardin's request;","2023-09-15","2023-10-05","rao@ohdsi.org","Firearm Accidents (FA)",,"Firearm Accidents (FA)","Pending peer review","","Firearm accident with an emergency room or inpatient visit on index","","'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","",,"","updates to earliest event on Jill Hardin's request",,,,,752,752 +753,"[P] Motor Vehicle Accidents (MVA)",753,"cohortNameLong : Motor Vehicle Accidents (MVA); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All events of motor vehicle accidents with an emergency room or inpatient visit on index; +hashTag : ; +contributors : 'Jill Hardin'; +contributorOrcIds : '0000-0003-2682-2187'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 442752, 4150129; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-15","2023-09-20","rao@ohdsi.org","Motor Vehicle Accidents (MVA)",,"Motor Vehicle Accidents (MVA)","Pending peer review","","All events of motor vehicle accidents with an emergency room or inpatient visit on index","","'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","442752, 4150129","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,753,753 +754,"[P] Down Syndrome",754,"cohortNameLong : Down Syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Condition occurrence of Down Syndrome, starting between 0 days before and 0 days after cohort entry start date and ending between 0 days before and 0 days after cohort entry start date. Having at least 1 additional condition occurrence of ‘Down syndrome’, starting between 1 days after and 365 days after cohort entry start date having no condition eras of ‘Condition_Era Pregnancy Codes’, starting between 0 days before and 0 days after ‘Down syndrome’ start date and ending between 0 days after and 0 days after ‘Down syndrome’ start date; +hashTag : ; +contributors : 'Jill Hardin'; +contributorOrcIds : '0000-0003-2682-2187'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 37016200; +ohdsiForumPost : ; +replaces : ; + +notes: removed pregnancy logic as it is not generalizable. Discussed with Jill Hardin;","2023-09-15","2023-10-05","rao@ohdsi.org","Down Syndrome",,"Down Syndrome","Pending peer review","","Condition occurrence of Down Syndrome, starting between 0 days before and 0 days after cohort entry start date and ending between 0 days before and 0 days after cohort entry start date. Having at least 1 additional condition occurrence of ‘Down syndrome’, starting between 1 days after and 365 days after cohort entry start date having no condition eras of ‘Condition_Era Pregnancy Codes’, starting between 0 days before and 0 days after ‘Down syndrome’ start date and ending between 0 days after and 0 days after ‘Down syndrome’ start date","","'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","37016200","","","removed pregnancy logic as it is not generalizable. Discussed with Jill Hardin",,,,,754,754 +755,"[P] Non-infectious uveitis and iridocyclitis",755,"cohortNameLong : Non-infectious uveitis and iridocyclitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest diagnosis of non-infectious uveitis or iridocyclitis, indexed on the first ever event. This event must either be followed by a second event in the 31 to 365 days in the future or the event must occur at the time of an ophthalmology visit.; +hashTag : ; +contributors : 'James Weaver', 'Eria Voss Stanoch'; +contributorOrcIds : '0000-0003-0755-5191', '0000-0002-0651-0613'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-15","2023-10-06","rao@ohdsi.org","Non-infectious uveitis and iridocyclitis",,"Non-infectious uveitis and iridocyclitis","Pending peer review","","Earliest diagnosis of non-infectious uveitis or iridocyclitis, indexed on the first ever event. This event must either be followed by a second event in the 31 to 365 days in the future or the event must occur at the time of an ophthalmology visit.","","'James Weaver', 'Eria Voss Stanoch'","'0000-0003-0755-5191', '0000-0002-0651-0613'","","","","","","",,,,,,755,755 +756,"[P] Cystic Fibrosis",756,"cohortNameLong : Cystic Fibrosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : 1 code of cystic fibrosis and a second code within 1 to 365 days post index; +hashTag : ; +contributors : 'Jill Hardin'; +contributorOrcIds : '0000-0003-2682-2187'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441267; +ohdsiForumPost : ; +replaces : ; +","2023-09-15","2023-10-05","rao@ohdsi.org","Cystic Fibrosis",,"Cystic Fibrosis","Pending peer review","","1 code of cystic fibrosis and a second code within 1 to 365 days post index","","'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","441267","","",,,,,,756,756 +757,"[P] Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap",757,"cohortNameLong : Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 703578; +ohdsiForumPost : ; +replaces : ; +","2023-09-15","2023-09-20","rao@ohdsi.org","Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap",,"Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap","Pending peer review","","Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","703578","","",,,,,,757,757 +759,"[P] Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap",759,"cohortNameLong : Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 255848, 4318404; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Concomitant TNF - alpha Inhibitors and IL12 23 Inhibitors - GE 30D overlap",,"Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap","Pending peer review","","Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","255848, 4318404","","",,,,,,759,759 +760,"[P] Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap",760,"cohortNameLong : Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 256451, 260139; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Concomitant IL 23 Inhibitors and IL12 23 Inhibitors - GE 30D overlap",,"Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap","Pending peer review","","Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","256451, 260139","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,760,760 +761,"[P] Pulmonary arterial hypertension with Prior Left Heart or Vice Versa",761,"cohortNameLong : Pulmonary arterial hypertension with Prior Left Heart or Vice Versa; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Index date of either PAH or left heart disease whichever comes last; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 319049; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Pulmonary arterial hypertension with Prior Left Heart or Vice Versa",,"Pulmonary arterial hypertension with Prior Left Heart or Vice Versa","Pending peer review","","Index date of either PAH or left heart disease whichever comes last","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","319049","","",,,,,,761,761 +762,"[P] Endothelin receptor antagonists",762,"cohortNameLong : Endothelin receptor antagonists; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First exposure of Endothelin receptor antagonists; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; + +notes : joel reporte he made an error in cohort. used condition domain for drug;","2023-09-16","2023-10-09","rao@ohdsi.org","Endothelin receptor antagonists",,"Endothelin receptor antagonists","Pending peer review","","First exposure of Endothelin receptor antagonists","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","","","","joel reporte he made an error in cohort. used condition domain for drug",,,,,762,762 +763,"[P] Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators",763,"cohortNameLong : Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First exposure of Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators",,"Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators","Pending peer review","","First exposure of Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","","","",,,,,,763,763 +764,"[P] Prostacyclin analogues and prostacyclin receptor agonists",764,"cohortNameLong : Prostacyclin analogues and prostacyclin receptor agonists; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First exposure of Prostacyclin analogues and prostacyclin receptor agonists; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Prostacyclin analogues and prostacyclin receptor agonists",,"Prostacyclin analogues and prostacyclin receptor agonists","Pending peer review","","First exposure of Prostacyclin analogues and prostacyclin receptor agonists","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","","","",,,,,,764,764 +765,"[P] Earliest event of Left Heart Failure",765,"cohortNameLong : Left Heart Failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Left Heart Failure; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Earliest event of Left Heart Failure",,"Left Heart Failure","Pending peer review","","First occurrence of Left Heart Failure","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","","","",,,,,,765,765 +766,"[P] Earliest event of Right Heart Failure",766,"cohortNameLong : Right Heart Failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Right Heart Failure; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 255573, 317009; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Earliest event of Right Heart Failure",,"Right Heart Failure","Pending peer review","","First occurrence of Right Heart Failure","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","255573, 317009","","",,,,,,766,766 +767,"[P] Earliest event of Sarcoidosis",767,"cohortNameLong : Sarcoidosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Sarcoidosis; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 317009; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Earliest event of Sarcoidosis",,"Sarcoidosis","Pending peer review","","First occurrence of Sarcoidosis","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","317009","","",,,,,,767,767 +768,"[P] Earliest event of Sickle Cell Anemia",768,"cohortNameLong : Sickle Cell Anemia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Sickle Cell Anemia; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4213628; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-10-19","rao@ohdsi.org","Earliest event of Sickle Cell Anemia",,"Sickle Cell Anemia","Pending peer review","","First occurrence of Sickle Cell Anemia","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","4213628","","",,,,,,768,768 +769,"[P] Scleroderma, first occurrence",769,"cohortNameLong : Scleroderma; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Scleroderma; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 76685, 80809, 81893, 81931, 134442, 134618, 135215, 140168, 194992, 199856, 201254, 201606, 254443, 257628, 374919, 432295, 438688, 443394, 4137275, 4232076; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Scleroderma, first occurrence",,"Scleroderma","Pending peer review","","First occurrence of Scleroderma","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","76685, 80809, 81893, 81931, 134442, 134618, 135215, 140168, 194992, 199856, 201254, 201606, 254443, 257628, 374919, 432295, 438688, 443394, 4137275, 4232076","","",,,,,,769,769 +770,"[P] Essential Hypertension, first occurrence",770,"cohortNameLong : Essential Hypertension; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Essential Hypertension; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 253954, 434557; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Essential Hypertension, first occurrence",,"Essential Hypertension","Pending peer review","","First occurrence of Essential Hypertension","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","253954, 434557","","",,,,,,770,770 +771,"[W] Pulmonary Hypertension (Group 2 Left heart disease, encompassing)",771,"cohortNameLong : Pulmonary hypertension associated with left heart disease (WHO Group 2); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Pulmonary hypertension associated with left heart disease (WHO Group 2); +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137809, 443392; +ohdsiForumPost : ; +replaces : ; + +notes : duplicate of 750;","2023-09-16","2023-10-09","rao@ohdsi.org","Pulmonary Hypertension (Group 2 Left heart disease, encompassing)",,"Pulmonary hypertension associated with left heart disease (WHO Group 2)","Pending peer review","","First occurrence of Pulmonary hypertension associated with left heart disease (WHO Group 2)","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","137809, 443392","","","duplicate of 750",,,,,771,771 +772,"[W] Pulmonary Hypertension (Group 3 Chronic lung disease, encompassing)",772,"cohortNameLong : Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3); +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433736; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; + +notes : replaced by 751. removed prefix and santized.;","2023-09-16","2023-10-09","rao@ohdsi.org","Pulmonary Hypertension (Group 3 Chronic lung disease, encompassing)",,"Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3)","Pending peer review","","First occurrence of Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3)","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","433736","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","","replaced by 751. removed prefix and santized.",,,,,772,772 +773,"[P] Congenital Heart Disease",773,"cohortNameLong : Congenital Heart Disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Congenital Heart Disease; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4182210; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Congenital Heart Disease",,"Congenital Heart Disease","Pending peer review","","First occurrence of Congenital Heart Disease","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","4182210","","",,,,,,773,773 +774,"[P] Portal Hypertension, first occurrence",774,"cohortNameLong : Portal Hypertension; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Portal Hypertension; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 312648, 4028741; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Portal Hypertension, first occurrence",,"Portal Hypertension","Pending peer review","","First occurrence of Portal Hypertension","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","312648, 4028741","","",,,,,,774,774 +775,"[P] First Inflammatory Bowel Disease",775,"cohortNameLong : Inflammatory Bowel Disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Inflammatory Bowel Disease; +hashTag : ; +contributors : 'Joel N. Swerdel'; +contributorOrcIds : '0000-0001-9491-2737'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4074815, 81893, 201606; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-inflammatory-bowel-disease/19834; +replaces : ; +","2023-09-16","2023-10-03","rao@ohdsi.org","First Inflammatory Bowel Disease",,"Inflammatory Bowel Disease","Pending peer review","","First occurrence of Inflammatory Bowel Disease","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","4074815, 81893, 201606",,"",,,,,,775,775 +776,"[P] Antisynthetase syndrome",776,"cohortNameLong : Antisynthetase syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Antisynthetase syndrome; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439727; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Antisynthetase syndrome",,"Antisynthetase syndrome","Pending peer review","","First occurrence of Antisynthetase syndrome","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","439727","","",,,,,,776,776 +777,"[P] Mixed connective tissue disease",777,"cohortNameLong : Mixed connective tissue disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Mixed connective tissue disease; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197494, 198964; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Mixed connective tissue disease",,"Mixed connective tissue disease","Pending peer review","","Mixed connective tissue disease","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","197494, 198964","","",,,,,,777,777 +778,"[P] Undifferentiated connective tissue disease",778,"cohortNameLong : Undifferentiated connective tissue disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Undifferentiated connective tissue disease; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313217, 44784217; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Undifferentiated connective tissue disease",,"Undifferentiated connective tissue disease","Pending peer review","","First occurrence of Undifferentiated connective tissue disease","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","313217, 44784217","","",,,,,,778,778 +779,"[P] Overlap syndrome",779,"cohortNameLong : Overlap syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Overlap syndrome; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 193782; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Overlap syndrome",,"Overlap syndrome","Pending peer review","","First occurrence of Overlap syndrome","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","193782","","",,,,,,779,779 +780,"[P] Raynaud’s disease or Raynaud's phenomenon",780,"cohortNameLong : Raynaud’s disease or Raynaud’s phenomenon; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Raynaud’s disease or Raynaud’s phenomenon; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201820, 201826; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Raynaud’s disease or Raynaud's phenomenon",,"Raynaud’s disease or Raynaud’s phenomenon","Pending peer review","","First occurrence of Raynaud’s disease or Raynaud’s phenomenon","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","201820, 201826","","",,,,,,780,780 +781,"[P] Antiphospholipid syndrome",781,"cohortNameLong : Antiphospholipid syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Antiphospholipid syndrome; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192359, 193782; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Antiphospholipid syndrome",,"Antiphospholipid syndrome","Pending peer review","","First occurrence of Antiphospholipid syndrome","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","192359, 193782","","",,,,,,781,781 +782,"[P] CTEPH Prevalent (with Echo or RHC) with 2nd dx code 31-365 days after first dx",782,"cohortNameLong : Chronic Thromboembolic Pulmonary Hypertension; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Chronic Thromboembolic Pulmonary Hypertension; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 193782; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","CTEPH Prevalent (with Echo or RHC) with 2nd dx code 31-365 days after first dx",,"Chronic Thromboembolic Pulmonary Hypertension","Pending peer review","","First occurrence of Chronic Thromboembolic Pulmonary Hypertension","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","193782","","",,,,,,782,782 +783,"[P] Pulmonary endarterectomy",783,"cohortNameLong : Pulmonary endarterectomy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All occurrences of Pulmonary endarterectomy; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 253954, 434557; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Pulmonary endarterectomy",,"Pulmonary endarterectomy","Pending peer review","","All occurrences of Pulmonary endarterectomy","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","253954, 434557","","",,,,,,783,783 +784,"[P] Balloon Pulmonary Angioplasty",784,"cohortNameLong : Balloon Pulmonary Angioplasty; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : All occurrences of Balloon Pulmonary Angioplasty; +hashTag : #epi1073; +contributors : 'Joel Swerdel','Eva-maria Didden'; +contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4138754; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-10-04","rao@ohdsi.org","Balloon Pulmonary Angioplasty",,"Balloon Pulmonary Angioplasty","Pending peer review","","All occurrences of Balloon Pulmonary Angioplasty","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","4138754","","",,,,,,784,784 +785,"[P] Skin Burns",785,"cohortNameLong : Skin Burns; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : 1 code of Skin Burns and a drug or procedure treatment within 1 to 180 days post index; +hashTag : ; +contributors : 'Jill Hardin'; +contributorOrcIds : '0000-0003-2682-2187'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Skin Burns",,"Skin Burns","Pending peer review","","1 code of Skin Burns and a drug or procedure treatment within 1 to 180 days post index","","'Jill Hardin'","'0000-0003-2682-2187'","","","","439676, 37311061","","",,,,,,785,785 +788,"[P] Breast cancer",788,"cohortNameLong : Breast cancer; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : ; +contributors : 'Asieh Golozar'; +contributorOrcIds : '0000-0002-4243-155X'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-10-05","rao@ohdsi.org","Breast cancer",,"Breast cancer","Pending peer review","","","","'Asieh Golozar'","'0000-0002-4243-155X'","","","","439676, 37311061","","",,,,,,788,788 +789,"[P] Glioblastoma multiforme (GBM)",789,"cohortNameLong : Glioblastoma multiforme (GBM); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : ; +contributors : 'Asieh Golozar', 'Vlad Korsik'; +contributorOrcIds : '0000-0002-4243-155X'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Glioblastoma multiforme (GBM)",,"Glioblastoma multiforme (GBM)","Pending peer review","","","","'Asieh Golozar', 'Vlad Korsik'","'0000-0002-4243-155X'","","","","","","",,,,,,789,789 +790,"[P] Colorectal Cancer",790,"cohortNameLong : Colorectal Cancer; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : ; +contributors : 'Asieh Golozar', 'Peter Prinsen'; +contributorOrcIds : '0000-0002-4243-155X'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Colorectal Cancer",,"Colorectal Cancer","Pending peer review","","","","'Asieh Golozar', 'Peter Prinsen'","'0000-0002-4243-155X'","","","","","","",,,,,,790,790 +791,"[P] Multiple Myeloma",791,"cohortNameLong : Multiple Myeloma; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : ; +contributors : 'Asieh Golozar'; +contributorOrcIds : '0000-0002-4243-155X'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-09-20","rao@ohdsi.org","Multiple Myeloma",,"Multiple Myeloma","Pending peer review","","","","'Asieh Golozar'","'0000-0002-4243-155X'","","","","","","",,,,,,791,791 +792,"[P] Metastatic Hormone-Sensitive Prostate Cancer Synchronous",792,"cohortNameLong : Metastatic Hormone-Sensitive Prostate Cancer Synchronous; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Pioneer2; +contributors : 'Asieh Golozar'; +contributorOrcIds : '0000-0002-4243-155X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377091, 4196708; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-16","2023-10-05","rao@ohdsi.org","Metastatic Hormone-Sensitive Prostate Cancer Synchronous",,"Metastatic Hormone-Sensitive Prostate Cancer Synchronous","Pending peer review","","","#Pioneer2","'Asieh Golozar'","'0000-0002-4243-155X'","'OHDSI'","","","377091, 4196708","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,792,792 +793,"[P] Metastatic Hormone-Sensitive Prostate Cancer Metachronus",793,"cohortNameLong : Metastatic Hormone-Sensitive Prostate Cancer Metachronus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Pioneer2; +contributors : 'Asieh Golozar'; +contributorOrcIds : '0000-0002-4243-155X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2023-09-16","2023-10-05","rao@ohdsi.org","Metastatic Hormone-Sensitive Prostate Cancer Metachronus",,"Metastatic Hormone-Sensitive Prostate Cancer Metachronus","Pending peer review","","","#Pioneer2","'Asieh Golozar'","'0000-0002-4243-155X'","'OHDSI'","","","439676, 37311061","","",,,,,,793,793 +794,"[P] Hemorrhage of digestive system",794,"cohortNameLong : Hemorrhage of digestive system; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of Hemorrhage of digestive system. Persons exit on cohort end date plus 14 days; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ;","2023-09-17","2023-10-16","rao@ohdsi.org","Hemorrhage of digestive system",,"Hemorrhage of digestive system","Pending peer review","","all events of Hemorrhage of digestive system. Persons exit on cohort end date plus 14 days","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,794,794 +795,"[P] Antineoplastic drugs against colorectal cancer",795,"cohortNameLong : Antineoplastic drugs against colorectal cancer; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First exposure of drugs Antineoplastic drugs against colorectal cancer.; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2023-09-20","rao@ohdsi.org","Antineoplastic drugs against colorectal cancer",,"Antineoplastic drugs against colorectal cancer","Pending peer review","","First exposure of drugs Antineoplastic drugs against colorectal cancer.","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","439676, 37311061","","",,,,,,795,795 +796,"[P] Potential curative surgery for colorectal cancer",796,"cohortNameLong : Potential curative surgery for colorectal cancer; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event potential curative surgery for colorectal cancer.; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2023-09-20","rao@ohdsi.org","Potential curative surgery for colorectal cancer",,"Potential curative surgery for colorectal cancer","Pending peer review","","First event potential curative surgery for colorectal cancer.","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","",,,,,,796,796 +797,"[P] Radiotherapy against colorectal cancer",797,"cohortNameLong : Radiotherapy against colorectal cancer; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First exposure of radiotherapy, excluding procedures with that are probably not related to colorectal cancer.; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 317302, 320425; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2023-09-20","rao@ohdsi.org","Radiotherapy against colorectal cancer",,"Radiotherapy against colorectal cancer","Pending peer review","","First exposure of radiotherapy, excluding procedures with that are probably not related to colorectal cancer.","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","317302, 320425","","",,,,,,797,797 +798,"[P] Primary adenocarcinoma of the colon or rectum",798,"cohortNameLong : Primary adenocarcinoma of the colon or rectum; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of primary adenocarcinoma of the colon or rectum; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377091, 4196708; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum",,"Primary adenocarcinoma of the colon or rectum","Pending peer review","","First event of primary adenocarcinoma of the colon or rectum","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","377091, 4196708","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,798,798 +802,"[P] Acute Respiratory Failure 2",802,"cohortNameLong : Acute Respiratory Failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of acute respiratory failure; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : Evan Minty; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 79908, 139803, 443904; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Acute Respiratory Failure 2",,"Acute Respiratory Failure","Pending peer review","","First event of acute respiratory failure","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","Evan Minty","","79908, 139803, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,802,802 +803,"[P] Fascial dehiscence and evisceration",803,"cohortNameLong : Fascial dehiscence and evisceration; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First fascial dehiscence or evisceration; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 254761, 312437, 437663, 439926, 442752, 4041664, 4178904, 4272240, 43530714; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Fascial dehiscence and evisceration",,"Fascial dehiscence and evisceration","Pending peer review","","First fascial dehiscence or evisceration","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","254761, 312437, 437663, 439926, 442752, 4041664, 4178904, 4272240, 43530714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,803,803 +804,"[P] Anastomotic leak or dehiscence",804,"cohortNameLong : Anastomotic leak or dehiscence; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of anastomotic leak or dehiscence of large or small intestine; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 199074; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Anastomotic leak or dehiscence",,"Anastomotic leak or dehiscence","Pending peer review","","First event of anastomotic leak or dehiscence of large or small intestine","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","199074","","",,,,,,804,804 +805,"[P] Intestinal obstruction (broad)",805,"cohortNameLong : Intestinal obstruction; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event Intestinal obstruction; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197320; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Intestinal obstruction (broad)",,"Intestinal obstruction","Pending peer review","","First event Intestinal obstruction","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","197320","","",,,,,,805,805 +806,"[P] Intraabdominal abscess",806,"cohortNameLong : Intraabdominal abscess; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event Intraabdominal abscess; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Intraabdominal abscess",,"Intraabdominal abscess","Pending peer review","","First event Intraabdominal abscess","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","4245975","","",,,,,,806,806 +807,"[P] Perioperative aspiration",807,"cohortNameLong : Perioperative aspiration; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of Perioperative aspiration; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 316139, 319835; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Perioperative aspiration",,"Perioperative aspiration","Pending peer review","","First event of Perioperative aspiration","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","316139, 319835","","",,,,,,807,807 +808,"[P] Postoperative hemorrhage",808,"cohortNameLong : Postoperative hemorrhage; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event postoperative hemorrhage; +hashTag : ; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4002836; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Postoperative hemorrhage",,"Postoperative hemorrhage","Pending peer review","","First event postoperative hemorrhage","","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","4002836","","",,,,,,808,808 +809,"[P] Surgical wound infection (narrow)",809,"cohortNameLong : Surgical wound infection (narrow); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event surgical wound infection; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 443454; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Surgical wound infection (narrow)",,"Surgical wound infection (narrow)","Pending peer review","","First event surgical wound infection","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","443454","","",,,,,,809,809 +810,"[P] Distant metastasis following colorectal cancer (wide)",810,"cohortNameLong : Distant metastasis following colorectal cancer (wide); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event distant metastasis following colorectal cancer; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314666, 4329847; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Distant metastasis following colorectal cancer (wide)",,"Distant metastasis following colorectal cancer (wide)","Pending peer review","","First event distant metastasis following colorectal cancer","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","314666, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,810,810 +811,"[P] Local recurrence after colorectal cancer",811,"cohortNameLong : Local recurrence after colorectal cancer; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event local recurrence after colorectal cancer; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4183609, 4266367; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Local recurrence after colorectal cancer",,"Local recurrence after colorectal cancer","Pending peer review","","First event local recurrence after colorectal cancer","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","4183609, 4266367","","",,,,,,811,811 +812,"[P] Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment",812,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of primary adenocarcinoma of the colon or rectum with MSI-H or dMMR, no curative surgery or oncological treatment any time after; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 376713, 439847; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment",,"Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment","Pending peer review","","First event of primary adenocarcinoma of the colon or rectum with MSI-H or dMMR, no curative surgery or oncological treatment any time after","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","376713, 439847","","",,,,,,812,812 +813,"[P] Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery",813,"cohortNameLong : Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of Primary adenocarcinoma of the colon or rectum treated with curative surgery within 90 days of the operation; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 443454; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery",,"Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum treated with curative surgery within 90 days of the operation","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","443454","","",,,,,,813,813 +814,"[P] Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment",814,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of Primary adenocarcinoma of the colon or rectum treated with no curative surgery but oncological treatment within 90 days of the operation; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 373503; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment",,"Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum treated with no curative surgery but oncological treatment within 90 days of the operation","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","373503","","",,,,,,814,814 +817,"[P] Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment2",817,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Primary adenocarcinoma of the colon or rectum, no curative intended surgery, and oncological treatment at any time after; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192671; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment2",,"Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment","Pending peer review","","Primary adenocarcinoma of the colon or rectum, no curative intended surgery, and oncological treatment at any time after","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","192671","","",,,,,,817,817 +818,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR",818,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of primary adenocarcinoma of the colon or rectum, with a molecular subtype of MSI-L, MSI-indeterminate, MSS or pMMR; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313217, 44784217; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR",,"Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR","Pending peer review","","First event of primary adenocarcinoma of the colon or rectum, with a molecular subtype of MSI-L, MSI-indeterminate, MSS or pMMR","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","313217, 44784217","","",,,,,,818,818 +819,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery",819,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery within 90 days of diagnosis; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 438624, 4027133; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery",,"Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery within 90 days of diagnosis","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","438624, 4027133","","",,,,,,819,819 +820,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery",820,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with oncological therapy, but no curative intended surgery; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery",,"Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with oncological therapy, but no curative intended surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","",,,,,,820,820 +821,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment",821,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of Primary adenocarcinoma of the colon or rectum with a MSI-L, MSI-indeterminate, MSS or pMMR subtype, and no surgery or oncological treatment anytime in the future.; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment",,"Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum with a MSI-L, MSI-indeterminate, MSS or pMMR subtype, and no surgery or oncological treatment anytime in the future.","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","",,,,,,821,821 +822,"[P] Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment",822,"cohortNameLong : Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of Primary adenocarcinoma of the colon or rectum with the MSI-H or dMMR molecular subtype, receiving potential curative surgery; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 40481547; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment",,"Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum with the MSI-H or dMMR molecular subtype, receiving potential curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","40481547","","",,,,,,822,822 +823,"[P] Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery",823,"cohortNameLong : Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event primary adenocarcinoma of the colon or rectum, with MSI-H or dMMR molecular subtype, treated with oncological treatment no curative surgery; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery",,"Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery","Pending peer review","","First event primary adenocarcinoma of the colon or rectum, with MSI-H or dMMR molecular subtype, treated with oncological treatment no curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","439676, 37311061","","",,,,,,823,823 +824,"[P] Primary adenocarcinoma of colon or rectum, MSI-H or dMMR",824,"cohortNameLong : Primary adenocarcinoma of colon or rectum, MSI-H or dMMR; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event Primary adenocarcinoma of the colon or rectum, with MSI-H or dMMR molecular subtype; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR",,"Primary adenocarcinoma of colon or rectum, MSI-H or dMMR","Pending peer review","","First event Primary adenocarcinoma of the colon or rectum, with MSI-H or dMMR molecular subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","",,,,,,824,824 +825,"[P] Primary adenocarcinoma of colon",825,"cohortNameLong : Primary adenocarcinoma of colon; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of primary adenocarcinoma of colon; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon",,"Primary adenocarcinoma of colon","Pending peer review","","First event of primary adenocarcinoma of colon","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","",,,,,,825,825 +826,"[P] Primary adenocarcinoma of colon, no surgery or oncological treatment",826,"cohortNameLong : Primary adenocarcinoma of colon, no surgery or oncological treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of primary adenocarcinoma of the colon, no curative surgery and no oncological treatment anytime after; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 373995; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon, no surgery or oncological treatment",,"Primary adenocarcinoma of colon, no surgery or oncological treatment","Pending peer review","","First event of primary adenocarcinoma of the colon, no curative surgery and no oncological treatment anytime after","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","373995","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,826,826 +827,"[P] Primary adenocarcinoma of colon surgical treatment",827,"cohortNameLong : Primary adenocarcinoma of colon surgical treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of curative surgery for primary adenocarcinoma; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 378419; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon surgical treatment",,"Primary adenocarcinoma of colon surgical treatment","Pending peer review","","First event of curative surgery for primary adenocarcinoma","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","378419","","",,,,,,827,827 +828,"[P] Primary adenocarcinoma of colon oncological treatment, no surgery",828,"cohortNameLong : Primary adenocarcinoma of colon oncological treatment, no surgery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of oncological treatment after primary adenocarcinoma, with no curative surgery; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 138525, 194133; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p5-systemic-lupus-erythematosus-sle/18223; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon oncological treatment, no surgery",,"Primary adenocarcinoma of colon oncological treatment, no surgery","Pending peer review","","First event of oncological treatment after primary adenocarcinoma, with no curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","138525, 194133","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p5-systemic-lupus-erythematosus-sle/18223","",,,,,,828,828 +829,"[P] Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR",829,"cohortNameLong : Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of primary adenocarcinoma of colon, with MSI-L or pMMR molecular subtype; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 444362; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR",,"Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR","Pending peer review","","First event of primary adenocarcinoma of colon, with MSI-L or pMMR molecular subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","444362","","",,,,,,829,829 +830,"[P] Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated",830,"cohortNameLong : Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of potential curative surgery after a primary adenocarcinoma with MSI-L, MSS, pMMR molecular subtype; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 438409, 4047120; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-13-attention-deficit-hyperactivity-disorder/15901; +replaces : ; +","2023-09-18","2023-09-20","rao@ohdsi.org","Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated",,"Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated","Pending peer review","","First event of potential curative surgery after a primary adenocarcinoma with MSI-L, MSS, pMMR molecular subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","438409, 4047120","https//forums.ohdsi.org/t/phenotype-phebruary-day-13-attention-deficit-hyperactivity-disorder/15901","",,,,,,830,830 +831,"[P] Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery",831,"cohortNameLong : Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of oncological treatment of primary adenocarcinoma of colon with MSS, MSI-L or pMMR subtype; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314666, 4296653, 4329847; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery",,"Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","Pending peer review","","First event of oncological treatment of primary adenocarcinoma of colon with MSS, MSI-L or pMMR subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","314666, 4296653, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,831,831 +832,"[P] Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment",832,"cohortNameLong : Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of adenocarcinoma of colon with molecular subtype pMMR/MSI-L/MSS for patients not receiving surgery or oncological treatment; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 198263; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment",,"Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","Pending peer review","","First event of adenocarcinoma of colon with molecular subtype pMMR/MSI-L/MSS for patients not receiving surgery or oncological treatment","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","198263","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,832,832 +833,"[P] Primary adenocarcinoma of colon MSI-H or dMMR",833,"cohortNameLong : Primary adenocarcinoma of colon MSI-H or dMMR; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of a primary adenocarcinoma of colon with MSI-H / pMMR molecular profile; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 442597, 4152351; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon MSI-H or dMMR",,"Primary adenocarcinoma of colon MSI-H or dMMR","Pending peer review","","First event of a primary adenocarcinoma of colon with MSI-H / pMMR molecular profile","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","442597, 4152351","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,833,833 +834,"[P] Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment",834,"cohortNameLong : Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of potentially curative surgery for adenocarcinoma of colon following diagnosis of MSI-H dMMR subtype; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439926, 4272240; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment",,"Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment","Pending peer review","","First event of potentially curative surgery for adenocarcinoma of colon following diagnosis of MSI-H dMMR subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","439926, 4272240","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,834,834 +835,"[P] Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery",835,"cohortNameLong : Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of oncological treatment for colorectal cancer following diagnosis of primary adenocarcinoma of colon with MSI-H or dMMR profile, no curative surgery; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4096682; +ohdsiForumPost : Pending; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery",,"Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery","Pending peer review","","First event of oncological treatment for colorectal cancer following diagnosis of primary adenocarcinoma of colon with MSI-H or dMMR profile, no curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","4096682","Pending","",,,,,,835,835 +836,"[P] Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment",836,"cohortNameLong : Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of primary adenocarcinoma of colon with MSI-H or dMMR profile, no curative surgery or oncological treatment at anytime past diagnosis; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137977, 435656; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment",,"Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment","Pending peer review","","First event of primary adenocarcinoma of colon with MSI-H or dMMR profile, no curative surgery or oncological treatment at anytime past diagnosis","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","137977, 435656","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,836,836 +837,"[P] Primary adenocarcinoma of rectum",837,"cohortNameLong : Primary adenocarcinoma of rectum; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of a primary adenocarcinoma of rectum; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436222; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum",,"Primary adenocarcinoma of rectum","Pending peer review","","First event of a primary adenocarcinoma of rectum","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","436222","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,837,837 +838,"[P] Primary adenocarcinoma of rectum MSI-H or dMMR",838,"cohortNameLong : Primary adenocarcinoma of rectum MSI-H or dMMR; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of a primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 196360, 197508; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum MSI-H or dMMR",,"Primary adenocarcinoma of rectum MSI-H or dMMR","Pending peer review","","First event of a primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","196360, 197508","","",,,,,,838,838 +839,"[P] Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment",839,"cohortNameLong : Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of a primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype, without any curative surgery or oncological treatment in the future; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 80809; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment",,"Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment","Pending peer review","","First event of a primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype, without any curative surgery or oncological treatment in the future","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","80809","","",,,,,,839,839 +840,"[P] Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery",840,"cohortNameLong : Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of oncological treatment for patient with primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype, without any curative surgery; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 318443, 764123; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery",,"Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery","Pending peer review","","First event of oncological treatment for patient with primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype, without any curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","318443, 764123","","",,,,,,840,840 +841,"[P] Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment",841,"cohortNameLong : Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of potentially curative surgery for patients diagnosed with primary adenocarcinoma of rectum with MSI-H / dMMR subtype; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201606; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment",,"Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment","Pending peer review","","First event of potentially curative surgery for patients diagnosed with primary adenocarcinoma of rectum with MSI-H / dMMR subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","201606","","",,,,,,841,841 +842,"[P] Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR",842,"cohortNameLong : Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of primary adenocarcinoma of rectum, with MSI-L, MSI-indeterminate, MSS or pMMR subtype; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440383; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR",,"Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR","Pending peer review","","First event of primary adenocarcinoma of rectum, with MSI-L, MSI-indeterminate, MSS or pMMR subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","440383","","",,,,,,842,842 +843,"[P] Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery",843,"cohortNameLong : Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of oncology in patients diagnosed with primary adenocarcinoma of rectum with MSI-L, MSI-indeterminate, MSS or pMMR profile, with no subsequent potentially curative surgery; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 140168; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery",,"Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","Pending peer review","","First event of oncology in patients diagnosed with primary adenocarcinoma of rectum with MSI-L, MSI-indeterminate, MSS or pMMR profile, with no subsequent potentially curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","140168","","",,,,,,843,843 +844,"[P] Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment",844,"cohortNameLong : Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of primary adenocarcinoma of tectum with MSI-L / MSS / pMMR profile, no surgery or oncological treatment; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 81893; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment",,"Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment","Pending peer review","","First event of primary adenocarcinoma of tectum with MSI-L / MSS / pMMR profile, no surgery or oncological treatment","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","81893","","",,,,,,844,844 +845,"[P] Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery",845,"cohortNameLong : Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of potentially curative surgery for primary adenocarcinoma of rectum with MSI-L / pMMR subtype; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 26942, 138723, 4144746; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acquired-pure-red-cell-aplasia/17854; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery",,"Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery","Pending peer review","","First event of potentially curative surgery for primary adenocarcinoma of rectum with MSI-L / pMMR subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","26942, 138723, 4144746","https//forums.ohdsi.org/t/phenotype-submission-acquired-pure-red-cell-aplasia/17854","",,,,,,845,845 +846,"[P] Primary adenocarcinoma of rectum oncological treatment, no surgery",846,"cohortNameLong : Primary adenocarcinoma of rectum oncological treatment, no surgery; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of oncological for patients with primary adenocarcinoma in rectum, with no subsequent potentially curative surgery; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257011, 437663, 4170143, 4250734; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-febrile-neutropenia-or-neutropenic-fever/17876; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum oncological treatment, no surgery",,"Primary adenocarcinoma of rectum oncological treatment, no surgery","Pending peer review","","First event of oncological for patients with primary adenocarcinoma in rectum, with no subsequent potentially curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","257011, 437663, 4170143, 4250734","https//forums.ohdsi.org/t/phenotype-submission-febrile-neutropenia-or-neutropenic-fever/17876","",,,,,,846,846 +847,"[P] Primary adenocarcinoma of rectum surgical treatment",847,"cohortNameLong : Primary adenocarcinoma of rectum surgical treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of potentially curative surgery following diagnosis of primary adenocarcinoma of rectum; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435503, 439777, 441269, 4250490; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum surgical treatment",,"Primary adenocarcinoma of rectum surgical treatment","Pending peer review","","First event of potentially curative surgery following diagnosis of primary adenocarcinoma of rectum","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","435503, 439777, 441269, 4250490","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,847,847 +848,"[P] Primary adenocarcinoma of rectum, no surgery or oncological treatment",848,"cohortNameLong : Primary adenocarcinoma of rectum, no surgery or oncological treatment; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event of primary adenocarcinoma of rectum, no future potentially curative surgery or oncological treatment; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435503, 439777, 441269, 4250490; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum, no surgery or oncological treatment",,"Primary adenocarcinoma of rectum, no surgery or oncological treatment","Pending peer review","","First event of primary adenocarcinoma of rectum, no future potentially curative surgery or oncological treatment","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","435503, 439777, 441269, 4250490","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,848,848 +850,"[W] Intestinal obstruction (broad 2)",850,"cohortNameLong : Intestinal obstruction; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event Intestinal obstruction; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432881; +ohdsiForumPost : ; +replaces : ; +notes : duplicated 805;","2023-09-18","2023-10-16","rao@ohdsi.org","Intestinal obstruction (broad 2)",,"Intestinal obstruction","Pending peer review","","First event Intestinal obstruction","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","432881","","","duplicated 805",,,,,850,850 +851,"[P] Intraabdominal obstruction (broad)",851,"cohortNameLong : Intraabdominal obstruction; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event Intraabdominal obstruction; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : Anna Ostropolets; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435224; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409; +replaces : ; +","2023-09-18","2023-09-20","rao@ohdsi.org","Intraabdominal obstruction (broad)",,"Intraabdominal obstruction","Pending peer review","","First event Intraabdominal obstruction","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","Anna Ostropolets","","435224","https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409","",,,,,,851,851 +852,"[P] Surgical wound infection (broad)",852,"cohortNameLong : Surgical wound infection (broad); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event surgical wound infection; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435224; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Surgical wound infection (broad)",,"Surgical wound infection (broad)","Pending peer review","","First event surgical wound infection","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","435224","https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409","",,,,,,852,852 +854,"[P] Distant metastasis following colorectal cancer (medium)",854,"cohortNameLong : Distant metastasis following colorectal cancer (medium); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event distant metastasis following colorectal cancer; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433749, 4103532; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Distant metastasis following colorectal cancer (medium)",,"Distant metastasis following colorectal cancer (medium)","Pending peer review","","First event distant metastasis following colorectal cancer","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","433749, 4103532","","",,,,,,854,854 +855,"[P] Distant metastasis following colorectal cancer (narrow)",855,"cohortNameLong : Distant metastasis following colorectal cancer (narrow); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First event distant metastasis following colorectal cancer; +hashTag : #ColorectalCancer, #Cancer; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433749, 4103532; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2024-01-05","rao@ohdsi.org","Distant metastasis following colorectal cancer (narrow)",,"Distant metastasis following colorectal cancer (narrow)","Pending peer review","","First event distant metastasis following colorectal cancer","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","433749, 4103532","","",,,,,,855,855 +856,"[P] Earliest event of Migraine, including history of migraine",856,"cohortNameLong : Earliest event of Migraine, including history of migraine; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest occurrence of Migraine indexed on occurrence of Migraine condition (or observation of history of migraine-in the one of the cohorts versions) or symptoms (Headache , Aura) or a use of antimigraine drug (or the 1st time). Patients entering the cohort with an antimigraine drugs or migraine symptoms are required to have a diagnosis or observation of Migraine or history of migraine within 60 days. Cohort exit is the end of continuous observation.; +hashTag : #ColorectalCancer, #Cancer; +contributors : Azza Shoaibi', 'Jill Hardin'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313800, 4119134; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2023-09-20","rao@ohdsi.org","Earliest event of Migraine, including history of migraine",,"Earliest event of Migraine, including history of migraine","Pending peer review","","Earliest occurrence of Migraine indexed on occurrence of Migraine condition (or observation of history of migraine-in the one of the cohorts versions) or symptoms (Headache , Aura) or a use of antimigraine drug (or the 1st time). Patients entering the cohort with an antimigraine drugs or migraine symptoms are required to have a diagnosis or observation of Migraine or history of migraine within 60 days. Cohort exit is the end of continuous observation.","#ColorectalCancer, #Cancer","Azza Shoaibi', 'Jill Hardin'","0000-0002-6976-2594'","'OHDSI'","","","313800, 4119134","","",,,,,,856,856 +857,"[P] Earliest event of Migraine",857,"cohortNameLong : Earliest event of Migraine; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest occurrence of Migraine indexed on occurrence of Migraine condition (or observation of history of migraine-in the one of the cohorts versions) or symptoms (Headache , Aura) or a use of antimigraine drug (or the 1st time). Patients entering the cohort with an antimigraine drugs or migraine symptoms are required to have a diagnosis or observation of Migraine or history of migraine within 60 days. Cohort exit is the end of continuous observation.; +hashTag : #JNJ, #Indication; +contributors : Azza Shoaibi', 'Jill Hardin'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137967, 4345578; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2023-10-04","rao@ohdsi.org","Earliest event of Migraine",,"Earliest event of Migraine","Pending peer review","","Earliest occurrence of Migraine indexed on occurrence of Migraine condition (or observation of history of migraine-in the one of the cohorts versions) or symptoms (Headache , Aura) or a use of antimigraine drug (or the 1st time). Patients entering the cohort with an antimigraine drugs or migraine symptoms are required to have a diagnosis or observation of Migraine or history of migraine within 60 days. Cohort exit is the end of continuous observation.","#JNJ, #Indication","Azza Shoaibi', 'Jill Hardin'","0000-0002-6976-2594'","'OHDSI'","","","137967, 4345578","","",,,,,,857,857 +858,"[P] Earliest event of Rheumatoid Arthritis",858,"cohortNameLong : Earliest event of Rheumatoid Arthritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest occurrence of Rheumatoid Arthritis indexed on diagnosis (condition or observation) date, for the first time in history cohort exit is the end of continuous observation; +hashTag : #JNJ, #Indication; +contributors : Joel Swerdel'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 321042; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2023-10-04","rao@ohdsi.org","Earliest event of Rheumatoid Arthritis",,"Earliest event of Rheumatoid Arthritis","Pending peer review","","Earliest occurrence of Rheumatoid Arthritis indexed on diagnosis (condition or observation) date, for the first time in history cohort exit is the end of continuous observation","#JNJ, #Indication","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","321042","","",,,,,,858,858 +859,"[P] Earliest event of Crohns disease",859,"cohortNameLong : Earliest event of Crohns disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest occurrence of Crohns disease indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation; +hashTag : #Crohn; +contributors : Joel Swerdel'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201606; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2023-10-04","rao@ohdsi.org","Earliest event of Crohns disease",,"Earliest event of Crohns disease","Pending peer review","","Earliest occurrence of Crohns disease indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#Crohn","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","201606","","",,,,,,859,859 +860,"[P] Earliest event of Ulcerative colitis",860,"cohortNameLong : Earliest event of Ulcerative colitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest occurrence of Ulcerative Colitis indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation; +hashTag : #UlcerativeColitis; +contributors : Joel Swerdel'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441202; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-anaphylaxis/17835; +replaces : ; +","2023-09-18","2023-09-22","rao@ohdsi.org","Earliest event of Ulcerative colitis",,"Earliest event of Ulcerative colitis","Pending peer review","","Earliest occurrence of Ulcerative Colitis indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#UlcerativeColitis","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","441202","https//forums.ohdsi.org/t/phenotype-submission-anaphylaxis/17835","",,,,,,860,860 +861,"[W] Earliest event of Urinary tract infections (UTI)",861,"cohortNameLong : Earliest event of Urinary tract infections (UTI); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest event of diagnosis of urinary tract infections, cohort exist is end of observation period.; +hashTag : #ColorectalCancer, #Cancer; +contributors : Stephen Fortin; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 141651; +ohdsiForumPost : ; +replaces : ; +notes: Cohort appears to model biologically implausible situation;","2023-09-18","2023-11-29","rao@ohdsi.org","Earliest event of Urinary tract infections (UTI)",,"Earliest event of Urinary tract infections (UTI)","Pending peer review","","Earliest event of diagnosis of urinary tract infections, cohort exist is end of observation period.","#ColorectalCancer, #Cancer","Stephen Fortin","0000-0002-6976-2594'","'OHDSI'","","","141651","","","Cohort appears to model biologically implausible situation",,,,,861,861 +862,"[P] Earliest event of Alzheimer's disease derived from Imfeld, 2",862,"cohortNameLong : Earliest event of Alzheimer's disease derived from Imfeld, 2; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #ColorectalCancer, #Cancer; +contributors : Azza Shoaibi'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 42872891; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2023-09-20","rao@ohdsi.org","Earliest event of Alzheimer's disease derived from Imfeld, 2",,"Earliest event of Alzheimer's disease derived from Imfeld, 2","Pending peer review","","","#ColorectalCancer, #Cancer","Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","42872891","","",,,,,,862,862 +863,"[P] Cognitive impairment, incident",863,"cohortNameLong : Cognitive impairment, incident; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest occurrence of Crohns disease indexed on diagnosis date, for the first time in history , with 365 days prior observation time. cohort exit is the end of continuous observation; +hashTag : ; +contributors : Azza Shoaibi', 'Dave Kern'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4297400, 439795; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-cognitive-impairment/19940; +replaces : ; +","2023-09-18","2023-10-04","rao@ohdsi.org","Cognitive impairment, incident",,"Cognitive impairment, incident","Pending peer review","","Earliest occurrence of Crohns disease indexed on diagnosis date, for the first time in history , with 365 days prior observation time. cohort exit is the end of continuous observation","","Azza Shoaibi', 'Dave Kern'","0000-0002-6976-2594'","'OHDSI'","","","4297400, 439795",,"",,,,,,863,863 +864,"[P] Earliest event of Dementia",864,"cohortNameLong : Earliest event of Dementia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Occurrences of dementia indexed on diagnosis or observation date with no required prior continuous enrollment subset to earliest observation where the patient was 18 years or older cohort exit is the end of continuous observation.; +hashTag : #Dementia; +contributors : Azza Shoaibi'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4182210; +ohdsiForumPost : ; +replaces : ; +","2023-09-18","2023-10-03","rao@ohdsi.org","Earliest event of Dementia",,"Earliest event of Dementia","Pending peer review","","Occurrences of dementia indexed on diagnosis or observation date with no required prior continuous enrollment subset to earliest observation where the patient was 18 years or older cohort exit is the end of continuous observation.","#Dementia","Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","4182210","","",,,,,,864,864 +865,"[P] Non-Emergent Major Non Cardiac Surgery among adults",865,"cohortNameLong : Major Non Cardiac Surgery, adults, inpt stay, no ED; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty'; +contributorOrcIds : 0000-0003-4631-9992'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4301351; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-non-emergent-major-non-cardiac-surgery/19944; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Non-Emergent Major Non Cardiac Surgery among adults",,"Major Non Cardiac Surgery, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","4301351",,"",,,,,,865,865 +866,"[P] Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED",866,"cohortNameLong : Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4301351; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-abdominal-aortic-aneurysm-repair-non-emergent/19948; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED",,"Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,866,866 +867,"[P] Lower Extremity Bypass, adults, inpt stay, no ED",867,"cohortNameLong : Lower Extremity Bypass, adults, inpt stay, no ED; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4301351; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-lower-extremity-bypass/19957; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Lower Extremity Bypass, adults, inpt stay, no ED",,"Lower Extremity Bypass, adults, inpt stay, no ED","Pending peer review","","","#surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,867,867 +868,"[P] Carotid Endarterectomy, adults, inpt stay, no ED",868,"cohortNameLong : Carotid Endarterectomy, adults, inpt stay, no ED; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty, Brian Bucher; +contributorOrcIds : 0000-0003-4631-9992, 0000-0001-8376-9752; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4301351; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-carotid-endarterectomy-non-emergent/19949; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Carotid Endarterectomy, adults, inpt stay, no ED",,"Carotid Endarterectomy, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty, Brian Bucher","0000-0003-4631-9992, 0000-0001-8376-9752","'OHDSI'","","","4301351",,"",,,,,,868,868 +869,"[P] Lung Resection, adults, inpt stay, no ED",869,"cohortNameLong : Lung Resection, adults, inpt stay, no ED; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4301351; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-lung-resection/19950; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Lung Resection, adults, inpt stay, no ED",,"Lung Resection, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,869,869 +870,"[P] Esophagectomy, adults, inpt stay, no ED",870,"cohortNameLong : Esophagectomy, adults, inpt stay, no ED; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 132702; +ohdsiForumPost : ; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Esophagectomy, adults, inpt stay, no ED",,"Esophagectomy, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","132702","","",,,,,,870,870 +871,"[P] Pancreatectomy, adults, inpt stay, no ED",871,"cohortNameLong : Pancreatectomy, adults, inpt stay, no ED; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4301351; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-pancreatectomy/19951; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Pancreatectomy, adults, inpt stay, no ED",,"Pancreatectomy, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,871,871 +872,"[P] Colectomy, adults, inpt stay, no ED",872,"cohortNameLong : Colectomy, adults, inpt stay, no ED; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4301351; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-colectomy/19952; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Colectomy, adults, inpt stay, no ED",,"Colectomy, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,872,872 +873,"[P] Cystectomy, adults, inpt stay, no ED",873,"cohortNameLong : Cystectomy, adults, inpt stay, no ED; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4301351; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-cystectomy/19953; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Cystectomy, adults, inpt stay, no ED",,"Cystectomy, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,873,873 +874,"[P] Nephrectomy, adults, inpt stay, no ED",874,"cohortNameLong : Nephrectomy, adults, inpt stay, no ED; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty, Brian Bucher; +contributorOrcIds : 0000-0003-4631-9992, 0000-0001-8376-9752; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4301351; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-nephrectomy/19954; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Nephrectomy, adults, inpt stay, no ED",,"Nephrectomy, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty, Brian Bucher","0000-0003-4631-9992, 0000-0001-8376-9752","'OHDSI'","","","4301351",,"",,,,,,874,874 +875,"[P] Coronary Artery Bypass Graft, adults, inpt stay, no ED",875,"cohortNameLong : Coronary Artery Bypass Graft, adults, inpt stay, no ED; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4301351; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Coronary Artery Bypass Graft, adults, inpt stay, no ED",,"Coronary Artery Bypass Graft, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,875,875 +876,"[P] Cardiac Valve Surgery, adults, inpt stay, no ED",876,"cohortNameLong : Cardiac Valve Surgery, adults, inpt stay, no ED; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4301351; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-aortic-or-mitral-valve-repair-or-replacement/19956; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Cardiac Valve Surgery, adults, inpt stay, no ED",,"Cardiac Valve Surgery, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,876,876 +877,"[P] Non-Emergent MNCS (age 18 or greater), post op Afib (parox)",877,"cohortNameLong : Non-Emergent MNCS (age 18 or greater), post op Afib (parox); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #NonEmergent; +contributors : Evan Minty'; +contributorOrcIds : 0000-0003-4631-9992'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374954; +ohdsiForumPost : ; +replaces : ; +","2023-09-19","2023-10-05","rao@ohdsi.org","Non-Emergent MNCS (age 18 or greater), post op Afib (parox)",,"Non-Emergent MNCS (age 18 or greater), post op Afib (parox)","Pending peer review","","","#Surgery, #NonEmergent","Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","374954","","",,,,,,877,877 +878,"[P] Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib",878,"cohortNameLong : Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty'; +contributorOrcIds : 0000-0003-4631-9992'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436100; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-narcolepsy/17784; +replaces : ; +","2023-09-19","2024-01-05","rao@ohdsi.org","Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib",,"Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib","Pending peer review","","","#Surgery","Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","436100","https//forums.ohdsi.org/t/phenotype-submission-narcolepsy/17784","",,,,,,878,878 +881,"[P] Acute myocardial infarction",881,"cohortNameLong : Acute myocardial infarction events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Acute myocardial infarction condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabetes; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 139900; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Acute myocardial infarction",,"Acute myocardial infarction events","Pending","","Acute myocardial infarction condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabetes","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","139900","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,881,881 +882,"[P] Decreased libido",882,"cohortNameLong : Persons with decreased libido; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of decreased libido; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377575; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-21","rao@ohdsi.org","Decreased libido",,"Persons with decreased libido","Pending","","The first condition record of decreased libido","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","377575","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,882,882 +884,"[P] Diarrhea including enteritis",884,"cohortNameLong : Diarrhea events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Diarrhea condition record of any type successive records with > 30 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 196523; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ;","2023-09-20","2023-10-09","rao@ohdsi.org","Diarrhea including enteritis",,"Diarrhea events","Pending","","Diarrhea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","196523",,"",,,,,,884,884 +888,"[P] Gastrointestinal bleeding",888,"cohortNameLong : Gastrointestinal bleeding events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Gastrointestinal hemorrhage condition record during an inpatient or ER visit successive records with > 30 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 196715; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Gastrointestinal bleeding",,"Gastrointestinal bleeding events","Pending","","Gastrointestinal hemorrhage condition record during an inpatient or ER visit successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","196715","","",,,,,,888,888 +889,"[P] Hyponatremia",889,"cohortNameLong : Hyponatremia events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Hyponatremia condition record of any type successive records with > 90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 199837; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Hyponatremia",,"Hyponatremia events","Pending","","Hyponatremia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","199837","","",,,,,,889,889 +890,"[P] Hypotension",890,"cohortNameLong : Hypotension events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Hypotension condition record of any type successive records with > 90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4133004, 43531681; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Hypotension",,"Hypotension events","Pending","","Hypotension condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4133004, 43531681","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,890,890 +891,"[P] Nausea",891,"cohortNameLong : Nausea events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Nausea condition record of any type successive records with > 30 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436093; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Nausea",,"Nausea events","Pending","","Nausea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","436093","","",,,,,,891,891 +892,"[P] Stroke",892,"cohortNameLong : Stroke (ischemic or hemorrhagic) events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Stroke (ischemic or hemorrhagic) condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 443454; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Stroke",,"Stroke (ischemic or hemorrhagic) events","Pending","","Stroke (ischemic or hemorrhagic) condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","443454","","",,,,,,892,892 +893,"[P] Vertigo",893,"cohortNameLong : Persons with vertigo; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of vertigo; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4192640, 199074; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Vertigo",,"Persons with vertigo","Pending","","The first condition record of vertigo","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4192640, 199074","https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848","",,,,,,893,893 +894,"[P] Abdominal pain",894,"cohortNameLong : Abdominal pain events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Abdominal pain condition record of any type successive records with > 90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4192640, 199074, 4340961; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Abdominal pain",,"Abdominal pain events","Pending","","Abdominal pain condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4192640, 199074, 4340961","https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848","",,,,,,894,894 +895,"[P] Abnormal weight gain",895,"cohortNameLong : Abnormal weight gain events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Abnormal weight gain record of any type successive records with > 90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #legendDiabetes, #Symptoms; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377091, 380378, 4029498; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-drug-resistant-epilepsy/17569; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Abnormal weight gain",,"Abnormal weight gain events","Pending","","Abnormal weight gain record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #legendDiabetes, #Symptoms","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","377091, 380378, 4029498","https//forums.ohdsi.org/t/phenotype-submission-drug-resistant-epilepsy/17569","",,,,,,895,895 +896,"[P] Abnormal weight loss",896,"cohortNameLong : Abnormal weight loss events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Abnormal weight loss observation record of any type successive records with > 90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #legendDiabetes; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435928; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-28","rao@ohdsi.org","Abnormal weight loss",,"Abnormal weight loss events","Pending","","Abnormal weight loss observation record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #legendDiabetes","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","435928","","",,,,,,896,896 +898,"[P] Acute renal failure",898,"cohortNameLong : Acute renal failure events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Acute renal failure condition record during an inpatient or ER visit successive records with >30 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabete; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374923, 4091559; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-facial-palsy-lmn-including-bells-palsy-thats-not-umn/17788; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Acute renal failure",,"Acute renal failure events","Pending","","Acute renal failure condition record during an inpatient or ER visit successive records with >30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabete","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","374923, 4091559","https//forums.ohdsi.org/t/phenotype-submission-facial-palsy-lmn-including-bells-palsy-thats-not-umn/17788","",,,,,,898,898 +900,"[P] Anaphylactoid reaction",900,"cohortNameLong : Anaphylactoid reaction events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Anaphylactoid reaction condition record during an inpatient or ER visit successive records with >7 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441202; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-24-anaphylaxis/16033; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Anaphylactoid reaction",,"Anaphylactoid reaction events","Pending","","Anaphylactoid reaction condition record during an inpatient or ER visit successive records with >7 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","441202","https//forums.ohdsi.org/t/phenotype-phebruary-day-24-anaphylaxis/16033","",,,,,,900,900 +901,"[P] Anemia",901,"cohortNameLong : Persons with anemia; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of anemia; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441202; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebrurary-2023-p2-anaphylaxis/18193; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Anemia",,"Persons with anemia","Pending","","The first condition record of anemia","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","441202","https//forums.ohdsi.org/t/phenotype-phebrurary-2023-p2-anaphylaxis/18193","",,,,,,901,901 +917,"[P] Anxiety",917,"cohortNameLong : Persons with anxiety; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of anxiety, which is followed by another anxiety condition record or a drug used to treat anxiety; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Anxiety",,"Persons with anxiety","Pending","","The first condition record of anxiety, which is followed by another anxiety condition record or a drug used to treat anxiety","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","",,,,,,917,917 +918,"[P] Bradycardia",918,"cohortNameLong : Persons with bradycardia; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of bradycardia, which is followed by another bradycardia condition record; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Bradycardia",,"Persons with bradycardia","Pending","","The first condition record of bradycardia, which is followed by another bradycardia condition record","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","",,,,,,918,918 +919,"[P] Cardiac arrhythmia",919,"cohortNameLong : Person with cardiac arrhythmia; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of cardiac arrhythmia, which is followed by another cardiac arrhythmia condition record, at least two drug records for a drug used to treat arrhythmias, or a procedure to treat arrhythmias; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197320; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Cardiac arrhythmia",,"Person with cardiac arrhythmia","Pending","","The first condition record of cardiac arrhythmia, which is followed by another cardiac arrhythmia condition record, at least two drug records for a drug used to treat arrhythmias, or a procedure to treat arrhythmias","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197320","","",,,,,,919,919 +920,"[P] Cardiovascular disease",920,"cohortNameLong : Total cardiovascular disease events (ischemic stroke, hemorrhagic stroke, heart failure, acute myocardial infarction or sudden cardiac death); +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : A condition record of ischemic stroke, hemorrhagic stroke, heart failure, acute myocardial infarction or sudden cardiac death during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197320; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Cardiovascular disease",,"Total cardiovascular disease events (ischemic stroke, hemorrhagic stroke, heart failure, acute myocardial infarction or sudden cardiac death)","Pending","","A condition record of ischemic stroke, hemorrhagic stroke, heart failure, acute myocardial infarction or sudden cardiac death during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197320","","",,,,,,920,920 +921,"[P] Cardiovascular-related mortality",921,"cohortNameLong : Cardiovascular-related mortality; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Death record with at least 1 cardiovascular-related condition record (myocardial infarction, ischemic stroke, intracranial hemorrhage, sudden cardiac death, hospitalization for heart failure) in 30 days prior to death; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197320; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-29-acute-kidney-injury/16067; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Cardiovascular-related mortality",,"Cardiovascular-related mortality","Pending","","Death record with at least 1 cardiovascular-related condition record (myocardial infarction, ischemic stroke, intracranial hemorrhage, sudden cardiac death, hospitalization for heart failure) in 30 days prior to death","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197320","https//forums.ohdsi.org/t/phenotype-phebruary-day-29-acute-kidney-injury/16067","",,,,,,921,921 +922,"[P] Chest pain or angina",922,"cohortNameLong : Persons with chest pain or angina; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of chest pain or angina; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435503, 439777, 441269; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Chest pain or angina",,"Persons with chest pain or angina","Pending","","The first condition record of chest pain or angina","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","435503, 439777, 441269","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,922,922 +923,"[P] Kidney disease",923,"cohortNameLong : Persons with chronic kidney disease; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of chronic kidney disease, which is followed by either another chronic kidney disease condition record or a dialysis procedure or observation; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435503, 439777, 441269; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Kidney disease",,"Persons with chronic kidney disease","Pending","","The first condition record of chronic kidney disease, which is followed by either another chronic kidney disease condition record or a dialysis procedure or observation","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","435503, 439777, 441269","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,923,923 +924,"[P] Coronary heart disease",924,"cohortNameLong : Coronary heart disease events (acute myocardial infarction or sudden cardiac death); +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : A condition record of acute myocardial infarction or sudden cardiac death during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 437579, 4103295; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Coronary heart disease",,"Coronary heart disease events (acute myocardial infarction or sudden cardiac death)","Pending","","A condition record of acute myocardial infarction or sudden cardiac death during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","437579, 4103295","","",,,,,,924,924 +925,"[P] Cough",925,"cohortNameLong : Cough events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Cough condition record of any type successive records with > 90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #respiratory, #lung; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 321042, 437579, 4103295; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-28","rao@ohdsi.org","Cough",,"Cough events","Pending","","Cough condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #respiratory, #lung","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","321042, 437579, 4103295","","",,,,,,925,925 +927,"[P] Dementia2",927,"cohortNameLong : Persons with dementia; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of dementia; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4182210; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-10-03","rao@ohdsi.org","Dementia2",,"Persons with dementia","Pending","","The first condition record of dementia","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4182210","","",,,,,,927,927 +928,"[P] Depression2",928,"cohortNameLong : Persons with depression; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of depression, which is followed by another depression condition record, at least two drugs used to treat depression without another indication, or two psychotherapy procedures; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377556; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Depression2",,"Persons with depression","Pending","","The first condition record of depression, which is followed by another depression condition record, at least two drugs used to treat depression without another indication, or two psychotherapy procedures","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","377556","","",,,,,,928,928 +929,"[P] Edema events",929,"cohortNameLong : Edema events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Edema condition record of any type successive records with > 180 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 374053, 377889; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-10-03","rao@ohdsi.org","Edema events",,"Edema events","Pending","","Edema condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","374053, 377889","","",,,,,,929,929 +930,"[P] End stage renal disease2",930,"cohortNameLong : Persons with end stage renal disease; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of end stage renal disease, which is followed by either another end stage renal disease condition record or a dialysis procedure or observation within 90 days; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 138525, 194133; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","End stage renal disease2",,"Persons with end stage renal disease","Pending","","The first condition record of end stage renal disease, which is followed by either another end stage renal disease condition record or a dialysis procedure or observation within 90 days","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","138525, 194133","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,930,930 +931,"[P] Fall2",931,"cohortNameLong : Fall events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Fall condition record of any type successive records with > 180 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 134736, 194133; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Fall2",,"Fall events","Pending","","Fall condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","134736, 194133","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,931,931 +932,"[P] Gout2",932,"cohortNameLong : Persons with gout; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of gout; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 200219; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Gout2",,"Persons with gout","Pending","","The first condition record of gout","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","200219","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,932,932 +933,"[P] Headache2",933,"cohortNameLong : Headache events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Headache condition record of any type successive records with > 30 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197381, 4306292; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Headache2",,"Headache events","Pending","","Headache condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197381, 4306292","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,933,933 +934,"[P] Heart failure2",934,"cohortNameLong : Persons with heart failure; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of heart failure, which is followed by at least 1 heart failure condition record in the following year; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 78232, 80180; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Heart failure2",,"Persons with heart failure","Pending","","The first condition record of heart failure, which is followed by at least 1 heart failure condition record in the following year","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","78232, 80180","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,934,934 +935,"[P] Hemorrhagic stroke2",935,"cohortNameLong : Hemorrhagic stroke (intracerebral bleeding) events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Intracranial, cerebral or subarachnoid hemorrhage condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194997; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Hemorrhagic stroke2",,"Hemorrhagic stroke (intracerebral bleeding) events","Pending","","Intracranial, cerebral or subarachnoid hemorrhage condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","194997","","",,,,,,935,935 +936,"[P] Hepatic failure2",936,"cohortNameLong : Persons with hepatic failure; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of hepatic failure, necrosis, or coma; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 320116, 4138837; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Hepatic failure2",,"Persons with hepatic failure","Pending","","The first condition record of hepatic failure, necrosis, or coma","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","320116, 4138837","","",,,,,,936,936 +938,"[P] Hospitalization with heart failure",938,"cohortNameLong : Hospitalization with heart failure events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Inpatient or ER visits with heart failure condition record all qualifying inpatient visits occurring > 7 days apart are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : Evan Minty; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 79908, 138965, 139803, 380995, 443904; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Hospitalization with heart failure",,"Hospitalization with heart failure events","Pending","","Inpatient or ER visits with heart failure condition record all qualifying inpatient visits occurring > 7 days apart are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","Evan Minty","","79908, 138965, 139803, 380995, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,938,938 +939,"[P] Hospitalization with preinfarction syndrome",939,"cohortNameLong : Hospitalization with preinfarction syndrome events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Inpatient or ER visits with preinfarction syndrome condition record all qualifying inpatient visits occurring > 7 days apart are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201820, 201826; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-1-type-2-diabetes-mellitus/15764; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Hospitalization with preinfarction syndrome",,"Hospitalization with preinfarction syndrome events","Pending","","Inpatient or ER visits with preinfarction syndrome condition record all qualifying inpatient visits occurring > 7 days apart are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","201820, 201826","https//forums.ohdsi.org/t/phenotype-phebruary-day-1-type-2-diabetes-mellitus/15764","",,,,,,939,939 +940,"[P] Hyperkalemia",940,"cohortNameLong : Hyperkalemia events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Condition record for hyperkalemia or potassium measurements > 5.6 mmol/L successive records with >90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabetes; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313217, 44784217; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Hyperkalemia",,"Hyperkalemia events","Pending","","Condition record for hyperkalemia or potassium measurements > 5.6 mmol/L successive records with >90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabetes","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","313217, 44784217","","",,,,,,940,940 +941,"[P] Hypokalemia",941,"cohortNameLong : Hypokalemia events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Hypokalemia condition record of any type successive records with > 90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 138384, 140673; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Hypokalemia",,"Hypokalemia events","Pending","","Hypokalemia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","138384, 140673","","",,,,,,941,941 +942,"[P] Hypomagnesemia",942,"cohortNameLong : Hypomagnesemia events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Hypomagnesemia condition record of any type successive records with > 90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 78474, 80767, 137809; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Hypomagnesemia",,"Hypomagnesemia events","Pending","","Hypomagnesemia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","78474, 80767, 137809","","",,,,,,942,942 +943,"[P] Impotence",943,"cohortNameLong : Persons with impotence; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of impotence; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Impotence",,"Persons with impotence","Pending","","The first condition record of impotence","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","",,,,,,943,943 +944,"[P] Ischemic stroke",944,"cohortNameLong : Ischemic stroke events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Ischemic stroke condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194990; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Ischemic stroke",,"Ischemic stroke events","Pending","","Ischemic stroke condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","194990","","",,,,,,944,944 +945,"[P] Malignant neoplasm",945,"cohortNameLong : Persons with a malignant neoplasm other than non-melanoma skin cancer; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of a malignant neoplasm, with at least 2 conditions records for one of 17 leading cancer (breast, prostate, lung, colorectal, bladder, ovary, uterus, thyroid, kidney, brain, pancreas, liver, multiple myeloma, leukemia, melanoma, myelodysplastic syndrome); +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194990; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Malignant neoplasm",,"Persons with a malignant neoplasm other than non-melanoma skin cancer","Pending","","The first condition record of a malignant neoplasm, with at least 2 conditions records for one of 17 leading cancer (breast, prostate, lung, colorectal, bladder, ovary, uterus, thyroid, kidney, brain, pancreas, liver, multiple myeloma, leukemia, melanoma, myelodysplastic syndrome)","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","194990","","",,,,,,945,945 +946,"[P] Measured renal dysfunction",946,"cohortNameLong : Persons with measured renal dysfunction; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first creatinine measurement with value > 3 mg/dL; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4245975; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Measured renal dysfunction",,"Persons with measured renal dysfunction","Pending","","The first creatinine measurement with value > 3 mg/dL","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","",,,,,,946,946 +947,"[P] Neutropenia or agranulocytosis",947,"cohortNameLong : Persons with neutropenia or agranulocytosis; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of neutropenia or agranulocytosis; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : Evan Minty; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 79908, 139803, 443904; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Neutropenia or agranulocytosis",,"Persons with neutropenia or agranulocytosis","Pending","","The first condition record of neutropenia or agranulocytosis","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","Evan Minty","","79908, 139803, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,947,947 +948,"[P] Rash",948,"cohortNameLong : Rash events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Rash condition record of any type successive records with > 90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 79864, 437038; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Rash",,"Rash events","Pending","","Rash condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","79864, 437038","","",,,,,,948,948 +950,"[P] Rhabdomyolysis2",950,"cohortNameLong : Rhabdomyolysis events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Rhabdomyolysis condition record or muscle disorder condition record with creatine measurement 5*ULN during an inpatient or ER visit successive records with >90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192671; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Rhabdomyolysis2",,"Rhabdomyolysis events","Pending","","Rhabdomyolysis condition record or muscle disorder condition record with creatine measurement 5*ULN during an inpatient or ER visit successive records with >90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","192671","","",,,,,,950,950 +953,"[P] Sudden cardiac death in inpatient",953,"cohortNameLong : Sudden cardiac death events in inpatient; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Sudden cardiac death condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197607, 4302555; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Sudden cardiac death in inpatient",,"Sudden cardiac death events in inpatient","Pending","","Sudden cardiac death condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197607, 4302555","","",,,,,,953,953 +954,"[P] Syncope",954,"cohortNameLong : Syncope events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Syncope condition record of any type successive records with > 180 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377252; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Syncope",,"Syncope events","Pending","","Syncope condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","377252","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,954,954 +955,"[P] Thrombocytopenia",955,"cohortNameLong : Persons with thrombocytopenia; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of thrombocytopenia; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 376938; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Thrombocytopenia",,"Persons with thrombocytopenia","Pending","","The first condition record of thrombocytopenia","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","376938","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,955,955 +956,"[P] Transient ischemic attack",956,"cohortNameLong : Transient ischemic attack events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Transient ischemic attack condition record during an inpatient or ER visit successive records with > 30 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4112970; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Transient ischemic attack",,"Transient ischemic attack events","Pending","","Transient ischemic attack condition record during an inpatient or ER visit successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","4112970","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,956,956 +957,"[P] Type 2 diabetes mellitus",957,"cohortNameLong : Persons with type 2 diabetes mellitus; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of Type 2 Diabetes Mellitus, which is followed by another Type 2 Diabetes Mellitus condition record, at least 2 drugs used to treat Type 2 diabetes, or at least 2 HbA1c measurements with value > 6.5%; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4216000, 4246137; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Type 2 diabetes mellitus",,"Persons with type 2 diabetes mellitus","Pending","","The first condition record of Type 2 Diabetes Mellitus, which is followed by another Type 2 Diabetes Mellitus condition record, at least 2 drugs used to treat Type 2 diabetes, or at least 2 HbA1c measurements with value > 6.5%","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","4216000, 4246137","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,957,957 +963,"[P] Vomiting",963,"cohortNameLong : Vomiting events; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Vomiting condition record of any type successive records with > 30 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 25297, 4226263; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Vomiting",,"Vomiting events","Pending","","Vomiting condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","25297, 4226263","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,963,963 +964,"[P] Chronic kidney disease",964,"cohortNameLong : Persons with chronic kidney disease with 2+ diagnoses across 30d or 2+ dialysis; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Persons with chronic kidney disease with 2+ diagnoses across 30d or 2+ dialysis; +hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; +contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; +contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 314754; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Chronic kidney disease",,"Persons with chronic kidney disease with 2+ diagnoses across 30d or 2+ dialysis","Pending","","Persons with chronic kidney disease with 2+ diagnoses across 30d or 2+ dialysis","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","314754","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,964,964 +965,"[P] 3-point MACE",965,"cohortNameLong : ; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Condition record of acute myocardial infarction, hemorrhagic or ischemic stroke or sudden cardiac death during an inpatient or ER visit; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 253506, 255848; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","3-point MACE",,"","Pending","","Condition record of acute myocardial infarction, hemorrhagic or ischemic stroke or sudden cardiac death during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","253506, 255848","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,965,965 +967,"[P] 4-point MACE",967,"cohortNameLong : ; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : 3-Point MACE $+$ inpatient or ER visit (hospitalization) with heart failure condition record; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4023572; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","4-point MACE",,"","Pending","","3-Point MACE $+$ inpatient or ER visit (hospitalization) with heart failure condition record","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4023572","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,967,967 +976,"[P] Glycemic control",976,"cohortNameLong : ; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : First hemoglobin A1c measurement with value $\le$ 7\%; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 317009; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Glycemic control",,"","Pending","","First hemoglobin A1c measurement with value $\le$ 7\%","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","317009","","",,,,,,976,976 +979,"[P] Hospitalization with heart failure indexed on hospitalization",979,"cohortNameLong : ; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Inpatient or ER visit with heart failure condition record; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441542, 442077; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Hospitalization with heart failure indexed on hospitalization",,"","Pending","","Inpatient or ER visit with heart failure condition record","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","","","","441542, 442077","","",,,,,,979,979 +980,"[P] Revascularization",980,"cohortNameLong : Coronary Vessel Revascularization; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Procedure record of percutaneous coronary intervention or coronary artery bypass grafting during an inpatient or ER visit; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4283892,4336464; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-20","2023-10-04","rao@ohdsi.org","Revascularization",,"Coronary Vessel Revascularization","Pending","","Procedure record of percutaneous coronary intervention or coronary artery bypass grafting during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4283892,4336464",,"",,,,,,980,980 +982,"[P] Stroke (ischemic or hemorrhagic) in inpatient",982,"cohortNameLong : Stroke (ischemic or hemorrhagic) in inpatient; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Condition record of hemorrhagic or ischemic stroke during an inpatient or ER visit; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 134438, 45766714; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Stroke (ischemic or hemorrhagic) in inpatient",,"Stroke (ischemic or hemorrhagic) in inpatient","Pending","","Condition record of hemorrhagic or ischemic stroke during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","134438, 45766714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,982,982 +986,"[P] Acute pancreatitis2",986,"cohortNameLong : ; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Condition record of acute pancreatitis during an inpatient or ER visit; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Acute pancreatitis2",,"","Pending","","Condition record of acute pancreatitis during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","","","",,,,,,986,986 +989,"[P] Bladder cancer",989,"cohortNameLong : Bladder Cancer; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Malignant tumor of urinary bladder condition record of any type limited to earliest event per person; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-10-05","rao@ohdsi.org","Bladder cancer",,"Bladder Cancer","Pending","","Malignant tumor of urinary bladder condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","","","",,,,,,989,989 +990,"[P] Bone fracture",990,"cohortNameLong : Bone Fracture; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Bone fracture condition record of any type successive records with > 90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 75053; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666/; +replaces : ; +","2023-09-20","2023-10-04","rao@ohdsi.org","Bone fracture",,"Bone Fracture","Pending","","Bone fracture condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","75053",,"",,,,,,990,990 +991,"[P] Breast cancer Malignant tumor of breast",991,"cohortNameLong : Breast cancer Malignant tumor of breast; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Malignant tumor of breast condition record of any type limited to earliest event per person; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197925, 4245614; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Breast cancer Malignant tumor of breast",,"Breast cancer Malignant tumor of breast","Pending","","Malignant tumor of breast condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","197925, 4245614","","",,,,,,991,991 +992,"[P] Diabetic ketoacidosis with inpatient or ER visit",992,"cohortNameLong : ; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Diabetic ketoacidosis condition record during an inpatient or ER visit; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 261687; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Diabetic ketoacidosis with inpatient or ER visit",,"","Pending","","Diabetic ketoacidosis condition record during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","261687","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,992,992 +993,"[W] Diarrhea including enteritis",993,"cohortNameLong : ; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Diarrhea condition record of any type successive records with > 30 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4209223, 4285898, 42537251; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; + +notes : duplicate 884; +","2023-09-20","2023-10-09","rao@ohdsi.org","Diarrhea including enteritis",,"","Pending","","Diarrhea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4209223, 4285898, 42537251","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","","duplicate 884",,,,,993,993 +994,"[P] Genitourinary infection",994,"cohortNameLong : Genitourinary infection; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Condition record of any type of genital or urinary tract infection during an outpatient or ER vists; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 24660, 4083666; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-25","rao@ohdsi.org","Genitourinary infection",,"Genitourinary infection","Pending","","Condition record of any type of genital or urinary tract infection during an outpatient or ER vists","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","24660, 4083666","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,994,994 +996,"[P] Hypoglycemia",996,"cohortNameLong : Hypoglycemia; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Hypoglycemia condition record of any type successive records with > 90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257007, 4320791; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Hypoglycemia",,"Hypoglycemia","Pending","","Hypoglycemia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","257007, 4320791","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,996,996 +997,"[W] Hypotension or low blood pressure",997,"cohortNameLong : Hypotension; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Hypotension condition record of any type successive records with > 90 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 24969, 260134; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; + +notes : duplicates 890;","2023-09-20","2023-10-09","rao@ohdsi.org","Hypotension or low blood pressure",,"Hypotension","Pending","","Hypotension condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","24969, 260134","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","","duplicates 890",,,,,997,997 +998,"[P] Joint pain3",998,"cohortNameLong : ; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Joint pain condition record of any type successive records with > 90 days gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4096682; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Joint pain3",,"","Pending","","Joint pain condition record of any type successive records with > 90 days gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4096682","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,998,998 +999,"[P] Lower extremity amputation3",999,"cohortNameLong : Lower extremity amputation; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Procedure record of below knee lower extremity amputation during inpatient or outpatient visit; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 261600, 4078925; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Lower extremity amputation3",,"Lower extremity amputation","Pending","","Procedure record of below knee lower extremity amputation during inpatient or outpatient visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","261600, 4078925","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,999,999 +1000,"[P] Nausea3",1000,"cohortNameLong : ; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Nausea condition record of any type successive records with > 30 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 319049, 4256228; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Nausea3",,"","Pending","","Nausea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","319049, 4256228","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1000,1000 +1001,"[W] Peripheral edema",1001,"cohortNameLong : Peripheral edema; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Edema condition record of any type successive records with > 180 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 319049, 4256228; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; + +notes: unclear about the origins and also how does it differ from 929;","2023-09-20","2023-10-16","rao@ohdsi.org","Peripheral edema",,"Peripheral edema","Pending","","Edema condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","319049, 4256228","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","","unclear about the origins and also how does it differ from 929",,,,,1001,1001 +1002,"[P] Photosensitivity",1002,"cohortNameLong : Photosensitivity; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Condition record of drug-induced photosensitivity during any type of visit; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 254061; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Photosensitivity",,"Photosensitivity","Pending","","Condition record of drug-induced photosensitivity during any type of visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","254061","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1002,1002 +1003,"[P] Renal cancer",1003,"cohortNameLong : Renal Cancer; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Primary malignant neoplasm of kidney condition record of any type limited to earliest event per person; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 73754; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Renal cancer",,"Renal Cancer","Pending","","Primary malignant neoplasm of kidney condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","73754","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,1003,1003 +1004,"[P] Thyroid tumor",1004,"cohortNameLong : Thyroid tumor; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Neoplasm of thyroid gland condition record of any type limited to earliest event per person; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4131909; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-20","2023-10-05","rao@ohdsi.org","Thyroid tumor",,"Thyroid tumor","Pending","","Neoplasm of thyroid gland condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","","","","4131909",,"",,,,,,1004,1004 +1005,"[P] Venous thromboembolism",1005,"cohortNameLong : Venous thromboembolism; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Venous thromboembolism condition record of any type successive records with > 180 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 72404, 72711; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Venous thromboembolism",,"Venous thromboembolism","Pending","","Venous thromboembolism condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","72404, 72711","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1005,1005 +1006,"[P] Vomiting symptoms",1006,"cohortNameLong : Vomiting; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Vomiting condition record of any type successive records with > 30 day gap are considered independent episodes; +hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes, #Symptoms; +contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; +contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435524, 442588; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-24","rao@ohdsi.org","Vomiting symptoms",,"Vomiting","Pending","","Vomiting condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes, #Symptoms","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","435524, 442588","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1006,1006 +1007,"[P] Earliest event of Epilepsy",1007,"cohortNameLong : Earliest event of Epilepsy; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of Epilepsy indexed on diagnosis date cohort exit is the end of continuous observation.; +hashTag : #JnJ, #Indication; +contributors : Azza Shoaibi'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197684, 4021780; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Epilepsy",,"Earliest event of Epilepsy","Pending","","Earliest occurrence of Epilepsy indexed on diagnosis date cohort exit is the end of continuous observation.","#JnJ, #Indication","Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","197684, 4021780","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1007,1007 +1009,"[P] Earliest event of Treatment resistant depression (TRD)",1009,"cohortNameLong : Earliest event of Treatment resistant depression (TRD); +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Depression disorder patients indexed on prescription date of a first-line anti-depressant preceded by at least two prior first-line anti-depressants) or indexed on an antipsychotic preceded by a first-line anti-depressant or indexed on use of esketamine preceded by a first-line anti-depressant subset to the earliest entry with a depressive disorder diagnosis in the prior year and no history of mania, dementia, or psychosis requiring continuous enrollment for the year preceding the index date and the year preceding the depression diagnosis cohort exit is the end of continuous observation.; +hashTag : #JnJ, #Indication; +contributors : Azza Shoaibi'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 25297, 28060, 4226263; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-10-04","rao@ohdsi.org","Earliest event of Treatment resistant depression (TRD)",,"Earliest event of Treatment resistant depression (TRD)","Pending","","Depression disorder patients indexed on prescription date of a first-line anti-depressant preceded by at least two prior first-line anti-depressants) or indexed on an antipsychotic preceded by a first-line anti-depressant or indexed on use of esketamine preceded by a first-line anti-depressant subset to the earliest entry with a depressive disorder diagnosis in the prior year and no history of mania, dementia, or psychosis requiring continuous enrollment for the year preceding the index date and the year preceding the depression diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication","Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","25297, 28060, 4226263","","",,,,,,1009,1009 +1010,"[P] Earliest event of Chronic Graft Versus Host Disease (GVHD)",1010,"cohortNameLong : Earliest event of Chronic Graft Versus Host Disease (GVHD); +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of Chronic graft-versus-host disease indexed on diagnosis date of Chronic graft-versus-host disease or acute on Chronic graft-versus-host disease (for the first time in history) or unspecified raft-versus-host disease with a Hematopoietic Stem Cell Transplantation (HSCT) anytime prior to 180 days prior to index, cohort exit is the end of continuous observation; +hashTag : #JnJ, #Indication; +contributors : Jill Hardin; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257007, 4320791; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Chronic Graft Versus Host Disease (GVHD)",,"Earliest event of Chronic Graft Versus Host Disease (GVHD)","Pending","","Earliest occurrence of Chronic graft-versus-host disease indexed on diagnosis date of Chronic graft-versus-host disease or acute on Chronic graft-versus-host disease (for the first time in history) or unspecified raft-versus-host disease with a Hematopoietic Stem Cell Transplantation (HSCT) anytime prior to 180 days prior to index, cohort exit is the end of continuous observation","#JnJ, #Indication","Jill Hardin","","'OHDSI'","","","257007, 4320791","","",,,,,,1010,1010 +1011,"[P] Earliest event of Marginal zone lymphoma",1011,"cohortNameLong : Earliest event of Marginal zone lymphoma; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of Marginal zone lymphoma, indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation; +hashTag : #JnJ, #Indication; +contributors : Jill Hardin; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 260123, 4283893; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Marginal zone lymphoma",,"Earliest event of Marginal zone lymphoma","Pending","","Earliest occurrence of Marginal zone lymphoma, indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication","Jill Hardin","","'OHDSI'","","","260123, 4283893","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1011,1011 +1012,"[P] Earliest event of Waldenstrom macroglobulinemia",1012,"cohortNameLong : Earliest event of Waldenstrom macroglobulinemia; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of Waldenstrom macroglobulinemia indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation; +hashTag : #JnJ, #Indication; +contributors : 'Jill Hardin'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435502; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-waldenstrom-macroglobulinemia/20003; +replaces : ; +","2023-09-20","2023-10-04","rao@ohdsi.org","Earliest event of Waldenstrom macroglobulinemia",,"Earliest event of Waldenstrom macroglobulinemia","Pending","","Earliest occurrence of Waldenstrom macroglobulinemia indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication","'Jill Hardin'","","'OHDSI'","","","435502",,"",,,,,,1012,1012 +1013,"[P] Earliest event of Ankylosing Spondylitis",1013,"cohortNameLong : Earliest event of Ankylosing Spondylitis; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of Ankylosing Spondylitis indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation; +hashTag : #JnJ, #Indication; +contributors : Joel Swerdel'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 257007, 43021227; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Ankylosing Spondylitis",,"Earliest event of Ankylosing Spondylitis","Pending","","Earliest occurrence of Ankylosing Spondylitis indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication","Joel Swerdel'","","'OHDSI'","","","257007, 43021227","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1013,1013 +1016,"[P] Earliest event of Polyarticular juvenile idiopathic arthritis (JIA)",1016,"cohortNameLong : Earliest event of Polyarticular juvenile idiopathic arthritis (JIA); +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : First occurrence of Polyarticular juvenile idiopathic arthritis (JIA)) indexed on diagnosis date, for the first time in history. Requiring that events occurred on or after January of 2016 and limited to patients with age less or equal to 16 years old. cohort exit is the end of continuous observation.; +hashTag : #JnJ, #Indication; +contributors : Joel Swerdel'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 372328; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-10-05","rao@ohdsi.org","Earliest event of Polyarticular juvenile idiopathic arthritis (JIA)",,"Earliest event of Polyarticular juvenile idiopathic arthritis (JIA)","Pending","","First occurrence of Polyarticular juvenile idiopathic arthritis (JIA)) indexed on diagnosis date, for the first time in history. Requiring that events occurred on or after January of 2016 and limited to patients with age less or equal to 16 years old. cohort exit is the end of continuous observation.","#JnJ, #Indication","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","372328","","",,,,,,1016,1016 +1017,"[P] Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old",1017,"cohortNameLong : Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of Neonatal Thrombocytopenia indexed on diagnosis date, for the first time in history limited to patients less than 1 years old, cohort exit is the end of continuous observation; +hashTag : #JnJ, #Indication; +contributors : Nathan Hal', 'Azza Shoaibi'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439777; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old",,"Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old","Pending","","Earliest occurrence of Neonatal Thrombocytopenia indexed on diagnosis date, for the first time in history limited to patients less than 1 years old, cohort exit is the end of continuous observation","#JnJ, #Indication","Nathan Hal', 'Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","439777","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,1017,1017 +1018,"[P] Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA)",1018,"cohortNameLong : Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA); +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of Warm Autoimmune Hemolytic Anemia (wAIHA) indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation; +hashTag : #JnJ, #Indication; +contributors : 'Jill Hardin'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 437264, 440069; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-10-05","rao@ohdsi.org","Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA)",,"Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA)","Pending","","Earliest occurrence of Warm Autoimmune Hemolytic Anemia (wAIHA) indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication","'Jill Hardin'","","'OHDSI'","","","437264, 440069","","",,,,,,1018,1018 +1019,"[P] All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode",1019,"cohortNameLong : All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : All events of Hemolytic Disease Fetus and Newborn (HDFN) indexed on diagnosis date, requiring a pregnancy episode that started any time prior index and pregnancy ends between 14 days pre to all time post index patients exit the cohort 270 days post index or on events signaling pregnancy end. Reoccurrence events are collapsed if the next event starts within 90 days of end of prior event.; +hashTag : #JnJ, #Indication; +contributors : Joel Swerdel'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 444367, 4145627; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode",,"All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode","Pending","","All events of Hemolytic Disease Fetus and Newborn (HDFN) indexed on diagnosis date, requiring a pregnancy episode that started any time prior index and pregnancy ends between 14 days pre to all time post index patients exit the cohort 270 days post index or on events signaling pregnancy end. Reoccurrence events are collapsed if the next event starts within 90 days of end of prior event.","#JnJ, #Indication","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","444367, 4145627","","",,,,,,1019,1019 +1020,"[P] Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder",1020,"cohortNameLong : Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of major depressive disorder indexed on diagnosis date requiring no occurrence anytime prior including day 0 of Bipolar disorder, Schizoaffective, Schizophrenia not including paraphrenia, Dementia or Psychotic disorder cohort exit is the end of continuous observation.; +hashTag : #JnJ, #Indication; +contributors : Dave Kern, Joel Swerdel; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441259, 4177600; +ohdsiForumPost : Pending; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder",,"Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder","Pending","","Earliest occurrence of major depressive disorder indexed on diagnosis date requiring no occurrence anytime prior including day 0 of Bipolar disorder, Schizoaffective, Schizophrenia not including paraphrenia, Dementia or Psychotic disorder cohort exit is the end of continuous observation.","#JnJ, #Indication","Dave Kern, Joel Swerdel","","'OHDSI'","","","441259, 4177600","Pending","",,,,,,1020,1020 +1021,"[P] Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18",1021,"cohortNameLong : Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of myasthenia gravis (excluding congenital, juvenile, neonatal or genetic) indexed on diagnosis date requiring either a second diagnosis of myasthenia gravis within 365 days after the first diagnosis (index date) or a drug exposure to Pyridostigmine on or 60 days after the first diagnosis or that the first diagnosis occur in an inpatient setting cohort exit is the end of continuous observation. Limit to persons with age greater than or equal to 18 on entry.; +hashTag : #JnJ, #Indication; +contributors : Mitch Conover'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4155911; +ohdsiForumPost : Pending; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18",,"Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18","Pending","","Earliest occurrence of myasthenia gravis (excluding congenital, juvenile, neonatal or genetic) indexed on diagnosis date requiring either a second diagnosis of myasthenia gravis within 365 days after the first diagnosis (index date) or a drug exposure to Pyridostigmine on or 60 days after the first diagnosis or that the first diagnosis occur in an inpatient setting cohort exit is the end of continuous observation. Limit to persons with age greater than or equal to 18 on entry.","#JnJ, #Indication","Mitch Conover'","","'OHDSI'","","","4155911","Pending","",,,,,,1021,1021 +1022,"[P] Earliest event of Depressive and Sleep Disorder",1022,"cohortNameLong : Earliest event of Depressive and Sleep Disorder; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by a sleep disorder diagnosis in the prior year 2) a sleep disorder diagnosis that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.; +hashTag : #JnJ, #Indication; +contributors : Joel Swerdel','Azza Shoaibi'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441259, 4307580; +ohdsiForumPost : Pending; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Depressive and Sleep Disorder",,"Earliest event of Depressive and Sleep Disorder","Pending","","Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by a sleep disorder diagnosis in the prior year 2) a sleep disorder diagnosis that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.","#JnJ, #Indication","Joel Swerdel','Azza Shoaibi'","","'OHDSI'","","","441259, 4307580","Pending","",,,,,,1022,1022 +1023,"[P] Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent",1023,"cohortNameLong : Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by a suicidal ideation diagnosis or suicide observation in the prior year, or 2) a suicide ideation diagnosis that is preceded by a depressive disorder diagnosis in the prior year, or 3) a suicide attempt observation that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.; +hashTag : #JnJ, #Indication; +contributors : Joel Swerdel','Azza Shoaibi' ,'Pranav Bhimani'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 438252, 4118793; +ohdsiForumPost : Pending; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent",,"Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent","Pending","","Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by a suicidal ideation diagnosis or suicide observation in the prior year, or 2) a suicide ideation diagnosis that is preceded by a depressive disorder diagnosis in the prior year, or 3) a suicide attempt observation that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.","#JnJ, #Indication","Joel Swerdel','Azza Shoaibi' ,'Pranav Bhimani'","","'OHDSI'","","","438252, 4118793","Pending","",,,,,,1023,1023 +1024,"[P] Earliest Event of Depressive Disorder with Anhedonia",1024,"cohortNameLong : Earliest Event of Depressive Disorder with Anhedonia; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by an Anhedonia diagnosis in the prior year or 2) an anhedonia diagnosis that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.; +hashTag : #JnJ, #Indication; +contributors : Joel Swerdel', 'Pranav Bhimani'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137977, 435656; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest Event of Depressive Disorder with Anhedonia",,"Earliest Event of Depressive Disorder with Anhedonia","Pending","","Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by an Anhedonia diagnosis in the prior year or 2) an anhedonia diagnosis that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.","#JnJ, #Indication","Joel Swerdel', 'Pranav Bhimani'","","'OHDSI'","","","137977, 435656","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1024,1024 +1025,"[P] First event of Attention-deficit hyperactivity (ADHD) disorder or procedure",1025,"cohortNameLong : First event of Attention-deficit hyperactivity (ADHD) disorder or procedure; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : First occurrence of Attention-deficit hyperactivity disorder (ADHD) condition or related procedures, indexed on the earliest occurrence of ADHD condition, procedure or treatment (limited to drug exposure followed by a related condition or procedure), with 365d prior observation, exit at end of observation; +hashTag : #JnJ, #Indication; +contributors : Jamie Weaves', 'Mitch Connover'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 40480225,4047120; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-attention-deficit-hyperactivity-adhd-disorder/20015; +replaces : ; +","2023-09-20","2023-10-04","rao@ohdsi.org","First event of Attention-deficit hyperactivity (ADHD) disorder or procedure",,"First event of Attention-deficit hyperactivity (ADHD) disorder or procedure","Pending","","First occurrence of Attention-deficit hyperactivity disorder (ADHD) condition or related procedures, indexed on the earliest occurrence of ADHD condition, procedure or treatment (limited to drug exposure followed by a related condition or procedure), with 365d prior observation, exit at end of observation","#JnJ, #Indication","Jamie Weaves', 'Mitch Connover'","","'OHDSI'","","","40480225,4047120",,"",,,,,,1025,1025 +1026,"[P] Earliest Event of Multiple Sclerosis",1026,"cohortNameLong : Earliest Event of Multiple Sclerosis; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest occurrence of multiple sclerosis indexed on diagnosis date for the first time in persons history cohort exit is the end of continuous observation.; +hashTag : #JnJ, #Indication; +contributors : Joel Swerdel'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 135618, 4169287; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest Event of Multiple Sclerosis",,"Earliest Event of Multiple Sclerosis","Pending","","Earliest occurrence of multiple sclerosis indexed on diagnosis date for the first time in persons history cohort exit is the end of continuous observation.","#JnJ, #Indication","Joel Swerdel'","","'OHDSI'","","","135618, 4169287","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1026,1026 +1027,"[P] Earliest event of Chronic Leukocytic Leukemia",1027,"cohortNameLong : Earliest event of Chronic Leukocytic Leukemia; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest event of Chronic Leukocytic Leukemia (not including Hairy cell, prolymphocytic leukemia, T cell, reticuloendotheliosis) for the first time in persons history, exit cohort at the end of continuous observation period.; +hashTag : #JnJ, #Indication; +contributors : Jill Hardin'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 133834, 133835, 45766714; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Chronic Leukocytic Leukemia",,"Earliest event of Chronic Leukocytic Leukemia","Pending","","Earliest event of Chronic Leukocytic Leukemia (not including Hairy cell, prolymphocytic leukemia, T cell, reticuloendotheliosis) for the first time in persons history, exit cohort at the end of continuous observation period.","#JnJ, #Indication","Jill Hardin'","","'OHDSI'","","","133834, 133835, 45766714","","",,,,,,1027,1027 +1028,"[P] Earliest event of Urothelial carcinoma",1028,"cohortNameLong : Earliest event of Urothelial carcinoma; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest event of Urothelial Carcinoma indexed on diagnosis Indexed on Primary or malignant urothelial bladder cancer diagnosis cohort exit is the end of continuous observation.; +hashTag : #JnJ, #Indication; +contributors : Jill Hardin'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 134438; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Urothelial carcinoma",,"Earliest event of Urothelial carcinoma","Pending","","Earliest event of Urothelial Carcinoma indexed on diagnosis Indexed on Primary or malignant urothelial bladder cancer diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication","Jill Hardin'","","'OHDSI'","","","134438","","",,,,,,1028,1028 +1029,"[P] Earliest event of Mantle Cell Lymphoma",1029,"cohortNameLong : Earliest event of Mantle Cell Lymphoma; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest event of Urothelial Carcinoma indexed on diagnosis Indexed on Primary or malignant urothelial bladder cancer diagnosis cohort exit is the end of continuous observation.; +hashTag : #JnJ, #Indication; +contributors : Jill Hardin'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4242574; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Mantle Cell Lymphoma",,"Earliest event of Mantle Cell Lymphoma","Pending","","Earliest event of Urothelial Carcinoma indexed on diagnosis Indexed on Primary or malignant urothelial bladder cancer diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication","Jill Hardin'","","'OHDSI'","","","4242574","","",,,,,,1029,1029 +1030,"[P] Earliest event of Prostate cancer, among adult males",1030,"cohortNameLong : Earliest event of Prostate cancer, among adult males; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest event of Prostate cancer restricting age greater than or equal to 18 and males indexed on prostate cancer diagnosis cohort exit is the end of continuous observation.; +hashTag : #JnJ, #Indication; +contributors : Rupa Makadia; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 137053; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Prostate cancer, among adult males",,"Earliest event of Prostate cancer, among adult males","Pending","","Earliest event of Prostate cancer restricting age greater than or equal to 18 and males indexed on prostate cancer diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication","Rupa Makadia","","'OHDSI'","","","137053","","",,,,,,1030,1030 +1031,"[P] Earliest event of Coronary artery disease (CAD)",1031,"cohortNameLong : Earliest event of Coronary artery disease (CAD); +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest event of Coronary Artery Disease for the first time in the persons history Indexed on coronary artery disease diagnosis (condition or observation) cohort exit is the end of continuous observation.; +hashTag : #JnJ, #Indication; +contributors : Joel Swerdel'; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4203600, 4239682, 4331304; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Coronary artery disease (CAD)",,"Earliest event of Coronary artery disease (CAD)","Pending","","Earliest event of Coronary Artery Disease for the first time in the persons history Indexed on coronary artery disease diagnosis (condition or observation) cohort exit is the end of continuous observation.","#JnJ, #Indication","Joel Swerdel'","","'OHDSI'","","","4203600, 4239682, 4331304","","",,,,,,1031,1031 +1032,"[P] Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM",1032,"cohortNameLong : Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest event of Type 2 Diabetes Mellitus (DM), indexed on diagnosis or Blood glucose lowering drugs excluding insulin or high Hemoglobin A1c (limited to treatments or measurement that are followed with Type 2 DM diagnosis within 365 days) excluding persons with Type 1 DM or secondary diabetes mellitus in the all time prior including index date; +hashTag : #JnJ, #Indication; +contributors : Patrick Ryan,; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4027396; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM",,"Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM","Pending","","Earliest event of Type 2 Diabetes Mellitus (DM), indexed on diagnosis or Blood glucose lowering drugs excluding insulin or high Hemoglobin A1c (limited to treatments or measurement that are followed with Type 2 DM diagnosis within 365 days) excluding persons with Type 1 DM or secondary diabetes mellitus in the all time prior including index date","#JnJ, #Indication","Patrick Ryan,","","'OHDSI'","","","4027396","","",,,,,,1032,1032 +1033,"[P] Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis",1033,"cohortNameLong : Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : Earliest event of Human Immunodeficiency Virus I (HIV), with HIV drugs or laboratory results any time after index date or second diagnosis post index; cohort exit is the end of continuous observation; +hashTag : #JnJ, #Indication; +contributors : Rupa Makadia, Jamie Calusardo; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4027396, 4117779; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-10-04","rao@ohdsi.org","Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis",,"Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis","Pending","","Earliest event of Human Immunodeficiency Virus I (HIV), with HIV drugs or laboratory results any time after index date or second diagnosis post index cohort exit is the end of continuous observation","#JnJ, #Indication","Rupa Makadia, Jamie Calusardo","","'OHDSI'","","","4027396, 4117779","","",,,,,,1033,1033 +1034,"[P] All events of Respiratory syncytial virus infection, with 30 days washout",1034,"cohortNameLong : All events of Respiratory syncytial virus infection, with 30 days washout; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : All events of Respiratory syncytial virus infection, with no such events in prior 30 days (washout). Persons exit the cohort at the start date + 30 day.; +hashTag : #JnJ, #Indication; +contributors : Nathan Hall, Rupa Makadia; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377889; +ohdsiForumPost : ; +replaces : ; +","2023-09-20","2023-09-20","rao@ohdsi.org","All events of Respiratory syncytial virus infection, with 30 days washout",,"All events of Respiratory syncytial virus infection, with 30 days washout","Pending","","All events of Respiratory syncytial virus infection, with no such events in prior 30 days (washout). Persons exit the cohort at the start date + 30 day.","#JnJ, #Indication","Nathan Hall, Rupa Makadia","","'OHDSI'","","","377889","","",,,,,,1034,1034 +1035,"[P] New users of Thiazide diuretics",1035,"cohortNameLong : New users of Thiazide diuretics; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Thiazide diuretics; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Thiazide diuretics",,"New users of Thiazide diuretics","Pending peer review","","New users of Thiazide diuretics","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1035,1035 +1036,"[P] New users of Beta blockers",1036,"cohortNameLong : New users of Beta blockers; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Beta blockers; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Beta blockers",,"New users of Beta blockers","Pending peer review","","New users of Beta blockers","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1036,1036 +1037,"[P] New users of SGLT2 inhibitor",1037,"cohortNameLong : New users of SGLT2 inhibitor; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of SGLT2 inhibitor; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of SGLT2 inhibitor",,"New users of SGLT2 inhibitor","Pending peer review","","New users of SGLT2 inhibitor","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1037,1037 +1038,"[P] New users of GLP-1 receptor antagonists",1038,"cohortNameLong : New users of GLP-1 receptor antagonists; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of GLP-1 receptor antagonists; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of GLP-1 receptor antagonists",,"New users of GLP-1 receptor antagonists","Pending peer review","","New users of GLP-1 receptor antagonists","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1038,1038 +1039,"[P] New users of DPP-4 inhibitors",1039,"cohortNameLong : New users of DPP-4 inhibitors; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of DPP-4 inhibitors; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of DPP-4 inhibitors",,"New users of DPP-4 inhibitors","Pending peer review","","New users of DPP-4 inhibitors","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1039,1039 +1040,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors",1040,"cohortNameLong : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors",,"New users of Tumor Necrosis Factor alpha (TNFa) inhibitors","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1040,1040 +1041,"[P] New users of JAK inhibitors",1041,"cohortNameLong : New users of JAK inhibitors; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of JAK inhibitors; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of JAK inhibitors",,"New users of JAK inhibitors","Pending peer review","","New users of JAK inhibitors","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1041,1041 +1042,"[P] New users of IL-23 inhibitors",1042,"cohortNameLong : New users of IL-23 inhibitors; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of IL-23 inhibitors; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-10-03","rao@ohdsi.org","New users of IL-23 inhibitors",,"New users of IL-23 inhibitors","Pending peer review","","New users of IL-23 inhibitors","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1042,1042 +1043,"[P] New users of Fluoroquinolone systemic",1043,"cohortNameLong : New users of Fluoroquinolone systemic; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Fluoroquinolone systemic; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Fluoroquinolone systemic",,"New users of Fluoroquinolone systemic","Pending peer review","","New users of Fluoroquinolone systemic","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1043,1043 +1044,"[P] New users of Cephalosporin systemetic",1044,"cohortNameLong : New users of Cephalosporin systemetic; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Cephalosporin systemetic; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Cephalosporin systemetic",,"New users of Cephalosporin systemetic","Pending peer review","","New users of Cephalosporin systemetic","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1044,1044 +1045,"[P] New users of Trimethoprim systemetic",1045,"cohortNameLong : New users of Trimethoprim systemetic; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Trimethoprim systemetic; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Trimethoprim systemetic",,"New users of Trimethoprim systemetic","Pending peer review","","New users of Trimethoprim systemetic","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1045,1045 +1046,"[P] New users of Thiazide diuretics nested in essential hypertension",1046,"cohortNameLong : New users of Thiazide diuretics nested in essential hypertension; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Thiazide diuretics nested in essential hypertension; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Thiazide diuretics nested in essential hypertension",,"New users of Thiazide diuretics nested in essential hypertension","Pending peer review","","New users of Thiazide diuretics nested in essential hypertension","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1046,1046 +1047,"[P] New users of dihydropyridine calcium channel blockers nested in essential hypertension",1047,"cohortNameLong : New users of dihydropyridine calcium channel blockers nested in essential hypertension; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of dihydropyridine calcium channel blockers nested in essential hypertension; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of dihydropyridine calcium channel blockers nested in essential hypertension",,"New users of dihydropyridine calcium channel blockers nested in essential hypertension","Pending peer review","","New users of dihydropyridine calcium channel blockers nested in essential hypertension","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1047,1047 +1048,"[P] New users of dihydropyridine calcium channel blockers",1048,"cohortNameLong : New users of dihydropyridine calcium channel blockers; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of dihydropyridine calcium channel blockers; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of dihydropyridine calcium channel blockers",,"New users of dihydropyridine calcium channel blockers","Pending peer review","","New users of dihydropyridine calcium channel blockers","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1048,1048 +1049,"[P] New users of Beta blockers nested in essential hypertension",1049,"cohortNameLong : New users of Beta blockers nested in essential hypertension; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Beta blockers nested in essential hypertension; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Beta blockers nested in essential hypertension",,"New users of Beta blockers nested in essential hypertension","Pending peer review","","New users of Beta blockers nested in essential hypertension","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1049,1049 +1050,"[P] New users of Beta blockers nested in Left Heart Failure",1050,"cohortNameLong : New users of Beta blockers nested in Left Heart Failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Beta blockers nested in Left Heart Failure; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Beta blockers nested in Left Heart Failure",,"New users of Beta blockers nested in Left Heart Failure","Pending peer review","","New users of Beta blockers nested in Left Heart Failure","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1050,1050 +1051,"[P] New users of SGLT2 inhibitor nested in Left Heart Failure",1051,"cohortNameLong : New users of SGLT2 inhibitor nested in Left Heart Failure; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of SGLT2 inhibitor nested in Left Heart Failure; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of SGLT2 inhibitor nested in Left Heart Failure",,"New users of SGLT2 inhibitor nested in Left Heart Failure","Pending peer review","","New users of SGLT2 inhibitor nested in Left Heart Failure","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1051,1051 +1052,"[P] New users of Beta blockers nested in Acute Myocardial Infarction",1052,"cohortNameLong : New users of Beta blockers nested in Acute Myocardial Infarction; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Beta blockers nested in Acute Myocardial Infarction; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Beta blockers nested in Acute Myocardial Infarction",,"New users of Beta blockers nested in Acute Myocardial Infarction","Pending peer review","","New users of Beta blockers nested in Acute Myocardial Infarction","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1052,1052 +1053,"[P] New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus",1053,"cohortNameLong : New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus",,"New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus","Pending peer review","","New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1053,1053 +1054,"[P] New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus",1054,"cohortNameLong : New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus",,"New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus","Pending peer review","","New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1054,1054 +1055,"[P] New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus",1055,"cohortNameLong : New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus",,"New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus","Pending peer review","","New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1055,1055 +1056,"[P] New users of GLP-1 receptor antagonists nested in obesity",1056,"cohortNameLong : New users of GLP-1 receptor antagonists nested in obesity; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of GLP-1 receptor antagonists nested in obesity; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of GLP-1 receptor antagonists nested in obesity",,"New users of GLP-1 receptor antagonists nested in obesity","Pending peer review","","New users of GLP-1 receptor antagonists nested in obesity","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1056,1056 +1057,"[P] New users of IL-23 inhibitors nested in Plaque psoriasis",1057,"cohortNameLong : New users of IL-23 inhibitors nested in Plaque psoriasis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of IL-23 inhibitors nested in Plaque psoriasis; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-10-03","rao@ohdsi.org","New users of IL-23 inhibitors nested in Plaque psoriasis",,"New users of IL-23 inhibitors nested in Plaque psoriasis","Pending peer review","","New users of IL-23 inhibitors nested in Plaque psoriasis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1057,1057 +1058,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis",1058,"cohortNameLong : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis",,"New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1058,1058 +1059,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis",1059,"cohortNameLong : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis",,"New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1059,1059 +1060,"[P] New users of Fluoroquinolone systemic nested in Urinary Tract Infection",1060,"cohortNameLong : New users of Fluoroquinolone systemic nested in Urinary Tract Infection; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Fluoroquinolone systemic nested in Urinary Tract Infection; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Fluoroquinolone systemic nested in Urinary Tract Infection",,"New users of Fluoroquinolone systemic nested in Urinary Tract Infection","Pending peer review","","New users of Fluoroquinolone systemic nested in Urinary Tract Infection","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1060,1060 +1061,"[P] New users of Cephalosporin systemetic nested in Urinary Tract Infection",1061,"cohortNameLong : New users of Cephalosporin systemetic nested in Urinary Tract Infection; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Cephalosporin systemetic nested in Urinary Tract Infection; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Cephalosporin systemetic nested in Urinary Tract Infection",,"New users of Cephalosporin systemetic nested in Urinary Tract Infection","Pending peer review","","New users of Cephalosporin systemetic nested in Urinary Tract Infection","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1061,1061 +1062,"[P] New users of Trimethoprim systemetic nested in Urinary Tract Infection",1062,"cohortNameLong : New users of Trimethoprim systemetic nested in Urinary Tract Infection; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Trimethoprim systemetic nested in Urinary Tract Infection; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Trimethoprim systemetic nested in Urinary Tract Infection",,"New users of Trimethoprim systemetic nested in Urinary Tract Infection","Pending peer review","","New users of Trimethoprim systemetic nested in Urinary Tract Infection","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1062,1062 +1063,"[P] New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia",1063,"cohortNameLong : New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia",,"New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia","Pending peer review","","New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1063,1063 +1064,"[P] New users of Cephalosporin systemetic nested in Acute Typical Pneumonia",1064,"cohortNameLong : New users of Cephalosporin systemetic nested in Acute Typical Pneumonia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Cephalosporin systemetic nested in Acute Typical Pneumonia; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Cephalosporin systemetic nested in Acute Typical Pneumonia",,"New users of Cephalosporin systemetic nested in Acute Typical Pneumonia","Pending peer review","","New users of Cephalosporin systemetic nested in Acute Typical Pneumonia","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1064,1064 +1065,"[P] New users of Trimethoprim systemetic nested in Acute Typical Pneumonia",1065,"cohortNameLong : New users of Trimethoprim systemetic nested in Acute Typical Pneumonia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Trimethoprim systemetic nested in Acute Typical Pneumonia; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Trimethoprim systemetic nested in Acute Typical Pneumonia",,"New users of Trimethoprim systemetic nested in Acute Typical Pneumonia","Pending peer review","","New users of Trimethoprim systemetic nested in Acute Typical Pneumonia","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1065,1065 +1066,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis",1066,"cohortNameLong : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis",,"New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1066,1066 +1067,"[P] New users of JAK inhibitors nested in Ulcerative colitis",1067,"cohortNameLong : New users of JAK inhibitors nested in Ulcerative colitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of JAK inhibitors nested in Ulcerative colitis; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of JAK inhibitors nested in Ulcerative colitis",,"New users of JAK inhibitors nested in Ulcerative colitis","Pending peer review","","New users of JAK inhibitors nested in Ulcerative colitis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1067,1067 +1068,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis",1068,"cohortNameLong : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis",,"New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1068,1068 +1069,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease",1069,"cohortNameLong : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease",,"New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1069,1069 +1070,"[P] New users of JAK inhibitors nested in Rheumatoid arthritis",1070,"cohortNameLong : New users of JAK inhibitors nested in Rheumatoid arthritis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : New users of JAK inhibitors nested in Rheumatoid arthritis; +hashTag : #HowOften, #Target, #Study, #Symposium; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-09-21","rao@ohdsi.org","New users of JAK inhibitors nested in Rheumatoid arthritis",,"New users of JAK inhibitors nested in Rheumatoid arthritis","Pending peer review","","New users of JAK inhibitors nested in Rheumatoid arthritis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1070,1070 +1071,"[P] persons at risk at start of year 2012-2022 with 365d prior observation",1071,"cohortNameLong : persons at risk at start of year 2012-2022 with 365d prior observation; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : persons at risk at start of year 2012-2022 with 365d prior observation; +hashTag : #Target, #Study, #Symposium, #baseCohort; +contributors : 'Patrick Ryan'; +contributorOrcIds : ; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-21","2023-10-02","rao@ohdsi.org","persons at risk at start of year 2012-2022 with 365d prior observation",,"persons at risk at start of year 2012-2022 with 365d prior observation","Pending peer review","","persons at risk at start of year 2012-2022 with 365d prior observation","#Target, #Study, #Symposium, #baseCohort","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1071,1071 +1072,"[P] CMV Anterior Uveitis",1072,"cohortNameLong : Cytomegalovirus CMV Anterior Uveitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Inclusion: Evidence of anterior uveitis (a. anterior chamber cells, b. if anterior vitreous cells are present, anterior chamber inflammation should be present, c. no evidence of retinitis AND (Evidence of cytomegalovirus infection in the eye, a. Positive PCR* for cytomegalovirus on aqueous specimen). Exclusions: (Positive serology for syphilis using a treponemal test Evidence of sarcoidosis (either bilateral hilar adenopathy on chest imaging or tissue biopsy demonstrating non-caseating granulomata), Aqueous specimen PCR positive for herpes simplex virus or varicella zoster virus); +hashTag : #Opthalmology, #OhdsiWorkGroup; +contributors : 'Edward Lee','Kiana Tavakoli','Rupesh Agrawal','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; +contributorOrcIds : '','0000-0002-9612-5697','','','','','','','',''; +contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore', 'Minneapolis VA Health Care System, University of Minnesota','UC Davis','UCSF','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436100; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-cmv-anterior-uveitis/19764/7; +replaces : ;","2023-09-21","2023-10-18","rao@ohdsi.org","CMV Anterior Uveitis",,"Cytomegalovirus CMV Anterior Uveitis","Pending peer review","",,"#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli','Rupesh Agrawal','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0002-9612-5697','','','','','','','',''","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore', 'Minneapolis VA Health Care System, University of Minnesota','UC Davis','UCSF','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1072,1072 +1073,"[P] Serious Infection, opportunistic infections and other infections of interest event",1073,"cohortNameLong : Serious Infection, opportunistic infections and other infections of interest event; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Incidence of Serious Infection, opportunistic infections and other infections of interest event.; +hashTag : #Infection; +contributors : Joel Swerdel'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 81893; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-serious-infection-opportunistic-infections-and-other-infections-of-interest-event/20048; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","Serious Infection, opportunistic infections and other infections of interest event",,"Serious Infection, opportunistic infections and other infections of interest event","Pending peer review","","Incidence of Serious Infection, opportunistic infections and other infections of interest event.","#Infection","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","81893",,"",,,,,,1073,1073 +1074,"[P] Serious Infection",1074,"cohortNameLong : Serious Infection; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Incidence of Serious Infection.; +hashTag : #Infection; +contributors : Joel Swerdel'; +contributorOrcIds : 0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 81893; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-serious-infections/20047; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","Serious Infection",,"Serious Infection","Pending peer review","","Incidence of Serious Infection.","#Infection","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","81893",,"",,,,,,1074,1074 +1075,"[P] FDA AESI Narcolepsy",1075,"cohortNameLong : Narcolepsy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Narcolepsy; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Narcolepsy",,"Narcolepsy","Pending peer review","","Narcolepsy","#AESI, ,#FDA, #Study, #Symposium, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1075,1075 +1076,"[P] FDA AESI Anaphylaxis",1076,"cohortNameLong : Anaphylaxis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Anaphylaxis; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Anaphylaxis",,"Anaphylaxis","Pending peer review","","Anaphylaxis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1076,1076 +1077,"[P] FDA AESI Anaphylaxis v2",1077,"cohortNameLong : Anaphylaxis v2; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Anaphylaxis v2; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-phebruary-day-24-anaphylaxis/16033; +replaces : ; +","2023-09-22","2023-10-09","rao@ohdsi.org","FDA AESI Anaphylaxis v2",,"Anaphylaxis v2","Pending peer review","","Anaphylaxis v2","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1077,1077 +1078,"[P] FDA AESI Bells Palsy",1078,"cohortNameLong : Bells Palsy; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Bells Palsy; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Bells Palsy",,"Bells Palsy","Pending peer review","","Bells Palsy","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1078,1078 +1079,"[P] FDA AESI Encephalomyelitis",1079,"cohortNameLong : Encephalomyelitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Encephalomyelitis; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Encephalomyelitis",,"Encephalomyelitis","Pending peer review","","Encephalomyelitis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1079,1079 +1080,"[P] FDA AESI Guillain Barre Syndrome",1080,"cohortNameLong : Guillain Barre Syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Guillain Barre Syndrome; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Guillain Barre Syndrome",,"Guillain Barre Syndrome","Pending peer review","","Guillain Barre Syndrome","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1080,1080 +1081,"[P] FDA AESI Acute Myocardial Infarction or its complications",1081,"cohortNameLong : Acute Myocardial Infarction including its complications; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Acute Myocardial Infarction; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-25","rao@ohdsi.org","FDA AESI Acute Myocardial Infarction or its complications",,"Acute Myocardial Infarction including its complications","Pending peer review","","Acute Myocardial Infarction","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1081,1081 +1082,"[P] FDA AESI Myocarditis Pericarditis",1082,"cohortNameLong : Myocarditis Pericarditis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Myocarditis Pericarditis; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Myocarditis Pericarditis",,"Myocarditis Pericarditis","Pending peer review","","Myocarditis Pericarditis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1082,1082 +1083,"[P] FDA AESI Immune Thrombocytopenia (ITP)",1083,"cohortNameLong : Immune Thrombocytopenia (ITP); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Immune Thrombocytopenia (ITP); +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Immune Thrombocytopenia (ITP)",,"Immune Thrombocytopenia (ITP)","Pending peer review","","Immune Thrombocytopenia (ITP)","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1083,1083 +1084,"[P] FDA AESI Disseminated Intravascular Coagulation",1084,"cohortNameLong : Disseminated Intravascular Coagulation; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Disseminated Intravascular Coagulation; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Disseminated Intravascular Coagulation",,"Disseminated Intravascular Coagulation","Pending peer review","","Disseminated Intravascular Coagulation","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1084,1084 +1085,"[P] FDA AESI Appendicitis",1085,"cohortNameLong : Appendicitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Appendicitis; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Appendicitis",,"Appendicitis","Pending peer review","","Appendicitis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1085,1085 +1086,"[P] FDA AESI Transverse Myelitis",1086,"cohortNameLong : Transverse Myelitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Transverse Myelitis; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Transverse Myelitis",,"Transverse Myelitis","Pending peer review","","Transverse Myelitis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1086,1086 +1087,"[P] FDA AESI Hemorrhagic Stroke",1087,"cohortNameLong : Hemorrhagic Stroke; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Hemorrhagic Stroke; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Hemorrhagic Stroke",,"Hemorrhagic Stroke","Pending peer review","","Hemorrhagic Stroke","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1087,1087 +1088,"[P] FDA AESI Deep Vein Thrombosis (DVT)",1088,"cohortNameLong : Deep Vein Thrombosis (DVT); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Deep Vein Thrombosis (DVT); +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Deep Vein Thrombosis (DVT)",,"Deep Vein Thrombosis (DVT)","Pending peer review","","Deep Vein Thrombosis (DVT)","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1088,1088 +1089,"[P] FDA AESI Non-hemorrhagic Stroke",1089,"cohortNameLong : Non-hemorrhagic Stroke; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non-hemorrhagic Stroke; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Non-hemorrhagic Stroke",,"Non-hemorrhagic Stroke","Pending peer review","","Non-hemorrhagic Stroke","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1089,1089 +1090,"[P] FDA AESI Pulmonary Embolism",1090,"cohortNameLong : Pulmonary Embolism; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Pulmonary Embolism; +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Pulmonary Embolism",,"Pulmonary Embolism","Pending peer review","","Pulmonary Embolism","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1090,1090 +1091,"[P] FDA AESI Thrombosis with Thrombocytopenia (TWT)",1091,"cohortNameLong : Thrombosis with Thrombocytopenia (TWT); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Thrombosis with Thrombocytopenia (TWT); +hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; +contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; +contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; +replaces : ; +","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Thrombosis with Thrombocytopenia (TWT)",,"Thrombosis with Thrombocytopenia (TWT)","Pending peer review","","Thrombosis with Thrombocytopenia (TWT)","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1091,1091 +1093,"[P] Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib",1093,"cohortNameLong : Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non emergent (No ED visit) AAA repair (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2023-09-25","2024-01-05","rao@ohdsi.org","Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib",,"Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) AAA repair (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1093,1093 +1094,"[P] Lower Extremity Bypass - post op new Afib",1094,"cohortNameLong : Lower Extremity Bypass - post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non emergent (No ED visit) Lower Extremity Bypass (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation.; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2023-09-25","2024-01-05","rao@ohdsi.org","Lower Extremity Bypass - post op new Afib",,"Lower Extremity Bypass - post op new Afib","Pending peer review","","Non emergent (No ED visit) Lower Extremity Bypass (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation.","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1094,1094 +1095,"[P] Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib",1095,"cohortNameLong : Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non emergent (No ED visit) Carotid Endarterctomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2023-09-25","2024-01-05","rao@ohdsi.org","Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib",,"Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Carotid Endarterctomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1095,1095 +1097,"[P] Esophagectomy, adults, inpt stay, no ED, post op new Afib",1097,"cohortNameLong : Esophagectomy, adults, inpt stay, no ED, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non emergent (No ED visit) Esophagectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2023-09-25","2024-01-05","rao@ohdsi.org","Esophagectomy, adults, inpt stay, no ED, post op new Afib",,"Esophagectomy, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Esophagectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1097,1097 +1098,"[P] Pancreatectomy, adults, inpt stay, no ED, post op new Afib",1098,"cohortNameLong : Pancreatectomy, adults, inpt stay, no ED, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non emergent (No ED visit) Pancreatectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2023-09-25","2024-01-05","rao@ohdsi.org","Pancreatectomy, adults, inpt stay, no ED, post op new Afib",,"Pancreatectomy, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Pancreatectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1098,1098 +1099,"[P] Colectomy, adults, inpt stay, no ED, post op new Afib",1099,"cohortNameLong : Colectomy, adults, inpt stay, no ED, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non emergent (No ED visit) Colectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2023-09-25","2024-01-05","rao@ohdsi.org","Colectomy, adults, inpt stay, no ED, post op new Afib",,"Colectomy, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Colectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1099,1099 +1100,"[P] Cystectomy, adults, inpt stay, no ED, post op new Afib",1100,"cohortNameLong : Cystectomy, adults, inpt stay, no ED, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non emergent (No ED visit) Cystectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2023-09-25","2024-01-05","rao@ohdsi.org","Cystectomy, adults, inpt stay, no ED, post op new Afib",,"Cystectomy, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Cystectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1100,1100 +1101,"[P] Nephrectomy, adults, inpt stay, no ED, post op new Afib",1101,"cohortNameLong : Nephrectomy, adults, inpt stay, no ED, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non emergent (No ED visit) Nephrectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2023-09-25","2024-01-05","rao@ohdsi.org","Nephrectomy, adults, inpt stay, no ED, post op new Afib",,"Nephrectomy, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Nephrectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1101,1101 +1102,"[P] Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib",1102,"cohortNameLong : Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non emergent (No ED visit)CABG (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2023-09-25","2024-01-05","rao@ohdsi.org","Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib",,"Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit)CABG (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1102,1102 +1103,"[P] Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib",1103,"cohortNameLong : Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non emergent (No ED visit) Aortic Or Mitral Repair or Replacement (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2023-09-25","2024-01-05","rao@ohdsi.org","Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib",,"Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Aortic Or Mitral Repair or Replacement (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1103,1103 +1104,"[P] RBC Transfusion (adult relevant, no auto 1yr clean window)",1104,"cohortNameLong : RBC Transfusion (adult relevant, no auto 1yr clean window); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : RBC transfusion with no prior transfusion; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-rbc-transfusion-adult-relevant-only-no-auto-transfusion-1yr-clean-window/20061; +replaces : ; +","2023-09-25","2023-09-25","rao@ohdsi.org","RBC Transfusion (adult relevant, no auto 1yr clean window)",,"RBC Transfusion (adult relevant, no auto 1yr clean window)","Pending peer review","","RBC transfusion with no prior transfusion","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1104,1104 +1105,"[P] Clostridium difficile - first episode",1105,"cohortNameLong : Clostridium difficile - first episode; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Clostridium difficile with no history of clostridium difficle; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4307981; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-c-difficile-first-episode-or-positive-test/20062; +replaces : ; +","2023-09-25","2023-10-04","rao@ohdsi.org","Clostridium difficile - first episode",,"Clostridium difficile - first episode","Pending peer review","","Clostridium difficile with no history of clostridium difficle","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","4307981",,"",,,,,,1105,1105 +1106,"[P] Non-Emergent Major Non Cardiac Surgery no prior Opioid",1106,"cohortNameLong : Non-Emergent Major Non Cardiac Surgery no prior Opioid; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Persons having any of major non cardiac surgery; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-09-25","2023-10-05","rao@ohdsi.org","Non-Emergent Major Non Cardiac Surgery no prior Opioid",,"Non-Emergent Major Non Cardiac Surgery no prior Opioid","Pending peer review","","Persons having any of major non cardiac surgery","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","","","",,,,,,1106,1106 +1150,"Emergency room only or Emergency room and inpatient visits (0Pe, 0Era)",1150,"cohortNameLong : Emergency room visits (0Pe, 0Era); +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.4.0; +logicDescription : All events of Emergency Room visits or Emergency room or inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process; +hashTag : #standard, #Visits; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-10-04","2023-10-04","rao@ohdsi.org","Emergency room only or Emergency room and inpatient visits (0Pe, 0Era)",,"Emergency room visits (0Pe, 0Era)","Accepted","3.4.0","All events of Emergency Room visits or Emergency room or inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,1150,1150 +1151,"[P] Autism",1151,"cohortNameLong : Autism; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #autism; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439776; +ohdsiForumPost : ; +replaces : ; +","2023-10-05","2023-10-05","rao@ohdsi.org","Autism",,"Autism","Pending peer review","","","#autism","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439776","","",,,,,,1151,1151 +1152,"[P] Deep Vein Thrombosis DVT 10",1152,"cohortNameLong : Deep Vein Thrombosis DVT; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : All events of Deep Vein Thrombosis (DVT), indexed on a condition occurrence of Deep Vein Thrombosis (DVT). Requiring a clean window of 30 days, cohort exit is 1 day after start date.; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4133004; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Deep Vein Thrombosis DVT 10",,"Deep Vein Thrombosis DVT","Prediction","","All events of Deep Vein Thrombosis (DVT), indexed on a condition occurrence of Deep Vein Thrombosis (DVT). Requiring a clean window of 30 days, cohort exit is 1 day after start date.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4133004",,"","Prediction phenotypes",,,,,1152,1152 +1153,"[P] Seizure 10",1153,"cohortNameLong : Seizure; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Seizure record in 42 days continues for 1 day; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 377091; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Seizure 10",,"Seizure","Prediction","","First Seizure record in 42 days continues for 1 day","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","377091",,"","Prediction phenotypes",,,,,1153,1153 +1154,"[P] Heart failure 10",1154,"cohortNameLong : Heart failure; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Heart failure continues until observation end; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 316139; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Heart failure 10",,"Heart failure","Prediction","","First Heart failure continues until observation end","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","316139",,"","Prediction phenotypes",,,,,1154,1154 +1155,"[P] Non-hemorrhagic Stroke 10",1155,"cohortNameLong : Non-hemorrhagic Stroke; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : All events of Ischemic (Non-hemorrhagic) Stroke, indexed on a condition occurrence of Ischemic (Non-hemorrhagic), limited to events with overlapping inpatient visit with no such events in prior 365 days (clean window). Persons exit the cohort at the start date + 1 day.; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 443454; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Non-hemorrhagic Stroke 10",,"Non-hemorrhagic Stroke","Prediction","","All events of Ischemic (Non-hemorrhagic) Stroke, indexed on a condition occurrence of Ischemic (Non-hemorrhagic), limited to events with overlapping inpatient visit with no such events in prior 365 days (clean window). Persons exit the cohort at the start date + 1 day.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","443454",,"","Prediction phenotypes",,,,,1155,1155 +1156,"[P] Hemorrhagic stroke 10",1156,"cohortNameLong : Hemorrhagic stroke; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : All events of Hemorrhagic stroke, indexed on a condition occurrence of Hemorrhagic stroke, limited to events with overlapping inpatient visit with no such events in prior 365 days (clean window). Persons exit the cohort at the start date + 1 day.; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 439847; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Hemorrhagic stroke 10",,"Hemorrhagic stroke","Prediction","","All events of Hemorrhagic stroke, indexed on a condition occurrence of Hemorrhagic stroke, limited to events with overlapping inpatient visit with no such events in prior 365 days (clean window). Persons exit the cohort at the start date + 1 day.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","439847",,"","Prediction phenotypes",,,,,1156,1156 +1157,"[P] peripheral vascular disease 10",1157,"cohortNameLong : peripheral vascular disease; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First peripheral vascular disease continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 321052; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","peripheral vascular disease 10",,"peripheral vascular disease","Prediction","","First peripheral vascular disease continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","321052",,"","Prediction phenotypes",,,,,1157,1157 +1158,"[P] Aspirin 10",1158,"cohortNameLong : Aspirin; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : aspirin exposures w 0d prior obsv 30d gap; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1112807; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Aspirin 10",,"Aspirin","Prediction","","aspirin exposures w 0d prior obsv 30d gap","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1112807",,"","Prediction phenotypes",,,,,1158,1158 +1159,"[P] Angina 10",1159,"cohortNameLong : Angina; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Angina in 30 days continues for 1 days; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 77670; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Angina 10",,"Angina","Prediction","","First Angina in 30 days continues for 1 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","77670",,"","Prediction phenotypes",,,,,1159,1159 +1160,"[P] Atrial Fibrillation 10",1160,"cohortNameLong : Atrial Fibrillation; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Atrial Fibrillation continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313217; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Atrial Fibrillation 10",,"Atrial Fibrillation","Prediction","","First Atrial Fibrillation continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","313217",,"","Prediction phenotypes",,,,,1160,1160 +1161,"[P] Major depressive disorder with NO occurrence of certain psychiatric disorder 10",1161,"cohortNameLong : Major depressive disorder with NO occurrence of certain psychiatric disorder; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : Earliest occurrence of major depressive disorder indexed on diagnosis date; requiring no occurrence anytime prior including day 0 of Bipolar disorder, Schizoaffective, Schizophrenia not including paraphrenia, Dementia or Psychotic disorder; cohort exit is the end of continuous observation.; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 440383; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Major depressive disorder with NO occurrence of certain psychiatric disorder 10",,"Major depressive disorder with NO occurrence of certain psychiatric disorder","Prediction","","Earliest occurrence of major depressive disorder indexed on diagnosis date requiring no occurrence anytime prior including day 0 of Bipolar disorder, Schizoaffective, Schizophrenia not including paraphrenia, Dementia or Psychotic disorder cohort exit is the end of continuous observation.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","440383",,"","Prediction phenotypes",,,,,1161,1161 +1162,"[P] Coronary artery disease (CAD) 10",1162,"cohortNameLong : Coronary artery disease (CAD); +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First coronary artery disease (CAD) continues until observation end; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 318443; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Coronary artery disease (CAD) 10",,"Coronary artery disease (CAD)","Prediction","","First coronary artery disease (CAD) continues until observation end","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","318443",,"","Prediction phenotypes",,,,,1162,1162 +1163,"[P] Acute Kidney Injury 10",1163,"cohortNameLong : Acute Kidney Injury; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : All events of Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd,. Applying a washout period of 30 days between observed events excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior ; . patients exit the cohort 7 days post index.; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 197320; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Acute Kidney Injury 10",,"Acute Kidney Injury","Prediction","","All events of Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd,. Applying a washout period of 30 days between observed events excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior . patients exit the cohort 7 days post index.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","197320",,"","Prediction phenotypes",,,,,1163,1163 +1164,"[P] Asthma 10",1164,"cohortNameLong : Asthma; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Asthma continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 317009; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Asthma 10",,"Asthma","Prediction","","First Asthma continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","317009",,"","Prediction phenotypes",,,,,1164,1164 +1165,"[P] Alcoholism 10",1165,"cohortNameLong : Alcoholism; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First record of Alcoholism until observation end; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4218106; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Alcoholism 10",,"Alcoholism","Prediction","","First record of Alcoholism until observation end","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4218106",,"","Prediction phenotypes",,,,,1165,1165 +1166,"[P] Smoking 10",1166,"cohortNameLong : Smoking; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Smoking condition or observtion or procedure record continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4209423; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Smoking 10",,"Smoking","Prediction","","First Smoking condition or observtion or procedure record continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4209423",,"","Prediction phenotypes",,,,,1166,1166 +1167,"[P] sleep apnea 10",1167,"cohortNameLong : sleep apnea; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First sleep apnea record continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 313459; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","sleep apnea 10",,"sleep apnea","Prediction","","First sleep apnea record continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","313459",,"","Prediction phenotypes",,,,,1167,1167 +1168,"[P] skin ulcer 10",1168,"cohortNameLong : skin ulcer; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First skin ulcer record in 365 days continues for 30 days; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4262920; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","skin ulcer 10",,"skin ulcer","Prediction","","First skin ulcer record in 365 days continues for 30 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4262920",,"","Prediction phenotypes",,,,,1168,1168 +1169,"[P] Chronic hepatitis 10",1169,"cohortNameLong : Chronic hepatitis; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Chronic hepatitis continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4212540; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Chronic hepatitis 10",,"Chronic hepatitis","Prediction","","First Chronic hepatitis continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4212540",,"","Prediction phenotypes",,,,,1169,1169 +1170,"[P] hyperlipidemia 10",1170,"cohortNameLong : hyperlipidemia; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First hyperlipidemia continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432867; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","hyperlipidemia 10",,"hyperlipidemia","Prediction","","First hyperlipidemia continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","432867",,"","Prediction phenotypes",,,,,1170,1170 +1171,"[P] hypothyroidism 10",1171,"cohortNameLong : hypothyroidism; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First hypothyroidism continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 140673; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","hypothyroidism 10",,"hypothyroidism","Prediction","","First hypothyroidism continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","140673",,"","Prediction phenotypes",,,,,1171,1171 +1172,"[P] Heart valve disorder 10",1172,"cohortNameLong : Heart valve disorder; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Heart valve disorder continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4281749; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Heart valve disorder 10",,"Heart valve disorder","Prediction","","First Heart valve disorder continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4281749",,"","Prediction phenotypes",,,,,1172,1172 +1173,"[P] Low back pain 10",1173,"cohortNameLong : Low back pain; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Low back pain continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 194133; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Low back pain 10",,"Low back pain","Prediction","","First Low back pain continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","194133",,"","Prediction phenotypes",,,,,1173,1173 +1174,"[P] neuropathy 10",1174,"cohortNameLong : neuropathy; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First neuropathy continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4301699; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","neuropathy 10",,"neuropathy","Prediction","","First neuropathy continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4301699",,"","Prediction phenotypes",,,,,1174,1174 +1175,"[P] Psychotic disorder 10",1175,"cohortNameLong : Psychotic disorder; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Psychotic disorder continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436073; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Psychotic disorder 10",,"Psychotic disorder","Prediction","","First Psychotic disorder continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","436073",,"","Prediction phenotypes",,,,,1175,1175 +1176,"[P] Sepsis 10",1176,"cohortNameLong : Sepsis; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Sepsis record in 180 days continues for 7 days; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 132797; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Sepsis 10",,"Sepsis","Prediction","","First Sepsis record in 180 days continues for 7 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","132797",,"","Prediction phenotypes",,,,,1176,1176 +1177,"[P] Acute Respiratory failure 10",1177,"cohortNameLong : Acute Respiratory failure; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Acute Respiratory failure record in 365 days continues for 14 days; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 319049; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Acute Respiratory failure 10",,"Acute Respiratory failure","Prediction","","First Acute Respiratory failure record in 365 days continues for 14 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","319049",,"","Prediction phenotypes",,,,,1177,1177 +1178,"[P] Gastroesophageal reflux disease 10",1178,"cohortNameLong : Gastroesophageal reflux disease; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Gastroesophageal reflux disease continues until observation end; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 318800; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Gastroesophageal reflux disease 10",,"Gastroesophageal reflux disease","Prediction","","First Gastroesophageal reflux disease continues until observation end","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","318800",,"","Prediction phenotypes",,,,,1178,1178 +1179,"[P] obesity 10",1179,"cohortNameLong : obesity; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First obesity measurement or condition or observation continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433736; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","obesity 10",,"obesity","Prediction","","First obesity measurement or condition or observation continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","433736",,"","Prediction phenotypes",,,,,1179,1179 +1180,"[P] Inflammatory Bowel Disease 10",1180,"cohortNameLong : Inflammatory Bowel Disease; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Inflammatory Bowel Disease continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201606; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Inflammatory Bowel Disease 10",,"Inflammatory Bowel Disease","Prediction","","First Inflammatory Bowel Disease continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","201606",,"","Prediction phenotypes",,,,,1180,1180 +1181,"[P] STEROIDS 10",1181,"cohortNameLong : STEROIDS; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : STEROIDS record with 60 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1551099; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","STEROIDS 10",,"STEROIDS","Prediction","","STEROIDS record with 60 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1551099",,"","Prediction phenotypes",,,,,1181,1181 +1182,"[P] Opioids 10",1182,"cohortNameLong : Opioids; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : Opioids with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1174888; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Opioids 10",,"Opioids","Prediction","","Opioids with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1174888",,"","Prediction phenotypes",,,,,1182,1182 +1183,"[P] ANTIEPILEPTICS 10",1183,"cohortNameLong : ANTIEPILEPTICS; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : ANTIEPILEPTICS exposure with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 797399; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","ANTIEPILEPTICS 10",,"ANTIEPILEPTICS","Prediction","","ANTIEPILEPTICS exposure with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","797399",,"","Prediction phenotypes",,,,,1183,1183 +1184,"[P] Osteoarthritis 10",1184,"cohortNameLong : Osteoarthritis; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Osteoarthritis continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 80180; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Osteoarthritis 10",,"Osteoarthritis","Prediction","","First Osteoarthritis continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","80180",,"","Prediction phenotypes",,,,,1184,1184 +1185,"[P] Osteoporosis 10",1185,"cohortNameLong : Osteoporosis; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Osteoporosis continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 80502; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Osteoporosis 10",,"Osteoporosis","Prediction","","First Osteoporosis continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","80502",,"","Prediction phenotypes",,,,,1185,1185 +1186,"[P] Urinary tract infectious 10",1186,"cohortNameLong : Urinary tract infectious; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Urinary tract infectious record in 30 days continues for 1 day; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 81902; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Urinary tract infectious 10",,"Urinary tract infectious","Prediction","","First Urinary tract infectious record in 30 days continues for 1 day","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","81902",,"","Prediction phenotypes",,,,,1186,1186 +1187,"[P] acetaminophen exposure 10",1187,"cohortNameLong : acetaminophen exposure; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : acetaminophen exposure with 30 day persistence window; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1125315; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","acetaminophen exposure 10",,"acetaminophen exposure","Prediction","","acetaminophen exposure with 30 day persistence window","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1125315",,"","Prediction phenotypes",,,,,1187,1187 +1188,"[P] Anemia 10",1188,"cohortNameLong : Anemia; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : Anemia record or measurement continues for 21 days unless normal measurement; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4144746; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Anemia 10",,"Anemia","Prediction","","Anemia record or measurement continues for 21 days unless normal measurement","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4144746",,"","Prediction phenotypes",,,,,1188,1188 +1189,"[P] Anxiety 10",1189,"cohortNameLong : Anxiety; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Anxiety continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 441542; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Anxiety 10",,"Anxiety","Prediction","","First Anxiety continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","441542",,"","Prediction phenotypes",,,,,1189,1189 +1190,"[P] HORMONAL CONTRACEPTIVES 10",1190,"cohortNameLong : HORMONAL CONTRACEPTIVES; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : HORMONAL CONTRACEPTIVES with 30 day persistence window; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 21602473; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","HORMONAL CONTRACEPTIVES 10",,"HORMONAL CONTRACEPTIVES","Prediction","","HORMONAL CONTRACEPTIVES with 30 day persistence window","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","21602473",,"","Prediction phenotypes",,,,,1190,1190 +1191,"[P] Chronic kidney disease or end stage renal disease 10",1191,"cohortNameLong : Chronic kidney disease or end stage renal disease; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First chronic kidney disease or end stage renal disease continues until observation end; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 46271022; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Chronic kidney disease or end stage renal disease 10",,"Chronic kidney disease or end stage renal disease","Prediction","","First chronic kidney disease or end stage renal disease continues until observation end","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","46271022",,"","Prediction phenotypes",,,,,1191,1191 +1192,"[P] Chronic obstructive pulmonary disease (COPD) 10",1192,"cohortNameLong : Chronic obstructive pulmonary disease (COPD); +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First chronic obstructive pulmonary disease (COPD) continues until observation end; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 255573; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Chronic obstructive pulmonary disease (COPD) 10",,"Chronic obstructive pulmonary disease (COPD)","Prediction","","First chronic obstructive pulmonary disease (COPD) continues until observation end","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","255573",,"","Prediction phenotypes",,,,,1192,1192 +1193,"[P] Type 1 diabetes and no prior specific nonT1DM diabetes 10",1193,"cohortNameLong : Type 1 diabetes and no prior specific nonT1DM diabetes; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : Earliest Type 1 diabetes with no prior type 2 or secondary diabetes continues until end of observation.; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201254; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Type 1 diabetes and no prior specific nonT1DM diabetes 10",,"Type 1 diabetes and no prior specific nonT1DM diabetes","Prediction","","Earliest Type 1 diabetes with no prior type 2 or secondary diabetes continues until end of observation.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","201254",,"","Prediction phenotypes",,,,,1193,1193 +1194,"[P] Type 2 Diabetes Mellitus with no type 1 or secondary DM 10",1194,"cohortNameLong : Type 2 Diabetes Mellitus with no type 1 or secondary DM; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : Earliest Type 2 diabetes with no prior type 1 or secondary diabetes continues until end of observation.; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 201820; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Type 2 Diabetes Mellitus with no type 1 or secondary DM 10",,"Type 2 Diabetes Mellitus with no type 1 or secondary DM","Prediction","","Earliest Type 2 diabetes with no prior type 1 or secondary diabetes continues until end of observation.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","201820",,"","Prediction phenotypes",,,,,1194,1194 +1195,"[P] Dyspnea 10",1195,"cohortNameLong : Dyspnea; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : All events of Dyspnea with no Dyspnea in prior 30 days; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 312437; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Dyspnea 10",,"Dyspnea","Prediction","","All events of Dyspnea with no Dyspnea in prior 30 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","312437",,"","Prediction phenotypes",,,,,1195,1195 +1196,"[P] Edema 10",1196,"cohortNameLong : Edema; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : All events of Edema with no Edemain prior 30 days and cohort ends 3 days after index.; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 433595; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Edema 10",,"Edema","Prediction","","All events of Edema with no Edemain prior 30 days and cohort ends 3 days after index.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","433595",,"","Prediction phenotypes",,,,,1196,1196 +1197,"[P] Acute gastrointestinal bleeding 10",1197,"cohortNameLong : Acute gastrointestinal bleeding; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First gastrointestinal bleed in 45 days continues for 7 days; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 192671; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Acute gastrointestinal bleeding 10",,"Acute gastrointestinal bleeding","Prediction","","First gastrointestinal bleed in 45 days continues for 7 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","192671",,"","Prediction phenotypes",,,,,1197,1197 +1198,"[P] Hypertension 10",1198,"cohortNameLong : Hypertension; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Hypertension continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 316866; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Hypertension 10",,"Hypertension","Prediction","","First Hypertension continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","316866",,"","Prediction phenotypes",,,,,1198,1198 +1199,"[P] Pneumonia 10",1199,"cohortNameLong : Pneumonia; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Pneumonia record in 180 days continues until for 30 days; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 255848; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Pneumonia 10",,"Pneumonia","Prediction","","First Pneumonia record in 180 days continues until for 30 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","255848",,"","Prediction phenotypes",,,,,1199,1199 +1200,"[P] Rheumatoid Arthritis 10",1200,"cohortNameLong : Rheumatoid Arthritis; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First Rheumatoid Arthritis record continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 80809; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Rheumatoid Arthritis 10",,"Rheumatoid Arthritis","Prediction","","First Rheumatoid Arthritis record continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","80809",,"","Prediction phenotypes",,,,,1200,1200 +1201,"[P] Antibiotics Aminoglycosides 10",1201,"cohortNameLong : Antibiotics Aminoglycosides; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Aminoglycosides with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 915981; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Aminoglycosides 10",,"Antibiotics Aminoglycosides","Prediction","","any Antibiotics Aminoglycosides with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","915981",,"","Prediction phenotypes",,,,,1201,1201 +1202,"[P] Antibiotics Carbapenems 10",1202,"cohortNameLong : Antibiotics Carbapenems; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Carbapenems with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1709170; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Carbapenems 10",,"Antibiotics Carbapenems","Prediction","","any Antibiotics Carbapenems with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1709170",,"","Prediction phenotypes",,,,,1202,1202 +1203,"[P] Antibiotics Cephalosporins 10",1203,"cohortNameLong : Antibiotics Cephalosporins; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Cephalosporins with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1786621; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Cephalosporins 10",,"Antibiotics Cephalosporins","Prediction","","any Antibiotics Cephalosporins with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1786621",,"","Prediction phenotypes",,,,,1203,1203 +1204,"[P] Antibiotics Fluoroquinolones 10",1204,"cohortNameLong : Antibiotics Fluoroquinolones; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Fluoroquinolones with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1797513; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Fluoroquinolones 10",,"Antibiotics Fluoroquinolones","Prediction","","any Antibiotics Fluoroquinolones with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1797513",,"","Prediction phenotypes",,,,,1204,1204 +1205,"[P] Antibiotics Glycopeptides and lipoglycopeptides 10",1205,"cohortNameLong : Antibiotics Glycopeptides and lipoglycopeptides; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Glycopeptides and lipoglycopeptides with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1707687; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Glycopeptides and lipoglycopeptides 10",,"Antibiotics Glycopeptides and lipoglycopeptides","Prediction","","any Antibiotics Glycopeptides and lipoglycopeptides with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1707687",,"","Prediction phenotypes",,,,,1205,1205 +1206,"[P] Antibiotics Macrolides 10",1206,"cohortNameLong : Antibiotics Macrolides; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Macrolides with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1734104; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Macrolides 10",,"Antibiotics Macrolides","Prediction","","any Antibiotics Macrolides with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1734104",,"","Prediction phenotypes",,,,,1206,1206 +1207,"[P] Antibiotics Monobactams 10",1207,"cohortNameLong : Antibiotics Monobactams; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Monobactams with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1715117; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Monobactams 10",,"Antibiotics Monobactams","Prediction","","any Antibiotics Monobactams with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1715117",,"","Prediction phenotypes",,,,,1207,1207 +1208,"[P] Antibiotics Oxazolidinones 10",1208,"cohortNameLong : Antibiotics Oxazolidinones; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Oxazolidinones with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1736887; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Oxazolidinones 10",,"Antibiotics Oxazolidinones","Prediction","","any Antibiotics Oxazolidinones with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1736887",,"","Prediction phenotypes",,,,,1208,1208 +1209,"[P] Antibiotics Penicillins 10",1209,"cohortNameLong : Antibiotics Penicillins; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Penicillins with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1713332; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Penicillins 10",,"Antibiotics Penicillins","Prediction","","any Antibiotics Penicillins with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1713332",,"","Prediction phenotypes",,,,,1209,1209 +1210,"[P] Antibiotics Polypeptides 10",1210,"cohortNameLong : Antibiotics Polypeptides; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Polypeptides with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 948582; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Polypeptides 10",,"Antibiotics Polypeptides","Prediction","","any Antibiotics Polypeptides with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","948582",,"","Prediction phenotypes",,,,,1210,1210 +1211,"[P] Antibiotics Rifamycins 10",1211,"cohortNameLong : Antibiotics Rifamycins; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Rifamycins with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1735947; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Rifamycins 10",,"Antibiotics Rifamycins","Prediction","","any Antibiotics Rifamycins with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1735947",,"","Prediction phenotypes",,,,,1211,1211 +1212,"[P] Antibiotics Sulfonamides 10",1212,"cohortNameLong : Antibiotics Sulfonamides; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Sulfonamides with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1836430; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Sulfonamides 10",,"Antibiotics Sulfonamides","Prediction","","any Antibiotics Sulfonamides with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1836430",,"","Prediction phenotypes",,,,,1212,1212 +1213,"[P] Antibiotics Streptogramins 10",1213,"cohortNameLong : Antibiotics Streptogramins; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Streptogramins with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1789517; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Streptogramins 10",,"Antibiotics Streptogramins","Prediction","","any Antibiotics Streptogramins with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1789517",,"","Prediction phenotypes",,,,,1213,1213 +1214,"[P] Antibiotics Tetracyclines 10",1214,"cohortNameLong : Antibiotics Tetracyclines; +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : any Antibiotics Tetracyclines with 30 day persistence; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 1738521; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Tetracyclines 10",,"Antibiotics Tetracyclines","Prediction","","any Antibiotics Tetracyclines with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1738521",,"","Prediction phenotypes",,,,,1214,1214 +1215,"[P] Any cancer (excl. prostate cancer and benign cancer) 10",1215,"cohortNameLong : Any cancer (excl. prostate cancer and benign cancer); +librarian : rao@ohdsi.org; +status : Prediction; +addedVersion : ; +logicDescription : First cancer (excluding prostate and benign) continues until end of observation; +hashTag : #Prediction;; +contributors : 'Jenna Reps';; +contributorOrcIds : '0000-0002-2970-0778';; +contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 438112; +ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; +replaces : ; +notes : Prediction phenotypes; +","2023-10-09","2023-10-09","rao@ohdsi.org","Any cancer (excl. prostate cancer and benign cancer) 10",,"Any cancer (excl. prostate cancer and benign cancer)","Prediction","","First cancer (excluding prostate and benign) continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","438112",,"","Prediction phenotypes",,,,,1215,1215 +1217,"[P] Platinum based chemotherapy regimens",1217,"cohortNameLong : Platinum based chemotherapy regimens; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Events of platinum based chemotherapy with 60 days of surveillance because most cycles of every 4 weeks; +hashTag : ; +contributors : 'Gowtham A. Rao'; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-10-09","2023-11-30","rao@ohdsi.org","Platinum based chemotherapy regimens",,"Platinum based chemotherapy regimens","Pending peer review","","Events of platinum based chemotherapy with 60 days of surveillance because most cycles of every 4 weeks","","'Gowtham A. Rao'","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,1217,1217 +1219,"[P] Hyperlipidemia",1219,"cohortNameLong : Hyperlipidemia; +librarian : ryan@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest event of hyperlipidemia; +hashTag : ; +contributors : Patrick Ryan; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 432867; +ohdsiForumPost : ; +replaces : ;","2023-10-16","2023-11-29","ryan@ohdsi.org","Hyperlipidemia",,"Hyperlipidemia","Pending peer review","","Earliest event of hyperlipidemia","","Patrick Ryan","","'OHDSI'","","","432867","","",,,,,,1219,1219 +1220,"[P] Hypoparathyroidism",1220,"cohortNameLong : Hypoparathyroidism; +librarian : ryan@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest event of hypoparathyroidism; +hashTag : ; +contributors : Patrick Ryan; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 140362; +ohdsiForumPost : ; +replaces : ;","2023-10-16","2023-10-16","ryan@ohdsi.org","Hypoparathyroidism",,"Hypoparathyroidism","Pending peer review","","Earliest event of hypoparathyroidism","","Patrick Ryan","","'OHDSI'","","","140362","","",,,,,,1220,1220 +1221,"[P] Osteoporosis",1221,"cohortNameLong : Osteoporosis; +librarian : ryan@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest event of Osteoporosis; +hashTag : ; +contributors : Patrick Ryan; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 80502; +ohdsiForumPost : ; +replaces : ;","2023-10-16","2023-10-16","ryan@ohdsi.org","Osteoporosis",,"Osteoporosis","Pending peer review","","Earliest event of Osteoporosis","","Patrick Ryan","","'OHDSI'","","","80502","","",,,,,,1221,1221 +1222,"[P] Viral hepatitis type A",1222,"cohortNameLong : Viral Hepatitis A; +librarian : ryan@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest event of Viral Hepatitis A; +hashTag : ; +contributors : Patrick Ryan; +contributorOrcIds : ; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4223947; +ohdsiForumPost : ; +replaces : ;","2023-10-16","2023-10-16","ryan@ohdsi.org","Viral hepatitis type A",,"Viral Hepatitis A","Pending peer review","","Earliest event of Viral Hepatitis A","","Patrick Ryan","","'OHDSI'","","","4223947","","",,,,,,1222,1222 +1223,"[P] Birdshot chorioretinitis",1223,"cohortNameLong : Birdshot chorioretinitis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Opthalmology, #OhdsiWorkGroup; +contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; +contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; +contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436100; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-birdshot-chorioretinitis/20242; +replaces : ;","2023-10-17","2023-10-17","rao@ohdsi.org","Birdshot chorioretinitis",,"Birdshot chorioretinitis","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1223,1223 +1224,"[P] CMV Anterior Uveitis (sensitivity analysis)",1224,"cohortNameLong : CMV Anterior Uveitis sensitivite; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Opthalmology, #OhdsiWorkGroup; +contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; +contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; +contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436100; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-cmv-anterior-uveitis/19764; + +replaces : ;","2023-10-18","2023-10-19","rao@ohdsi.org","CMV Anterior Uveitis (sensitivity analysis)",,"CMV Anterior Uveitis sensitivite","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1224,1224 +1225,"[P] VZV Anterior Uveitis (SUN)",1225,"cohortNameLong : VZV Anterior Uveitis (SUN); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Opthalmology, #OhdsiWorkGroup; +contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; +contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; +contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436100; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-vzv-anterior-uveitis/20219; +replaces : ;","2023-10-19","2023-10-19","rao@ohdsi.org","VZV Anterior Uveitis (SUN)",,"VZV Anterior Uveitis (SUN)","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1225,1225 +1226,"[P] VZV Anterior Uveitis (SUN) sensitive",1226,"cohortNameLong : VZV Anterior Uveitis (SUN) sensitive; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Opthalmology, #OhdsiWorkGroup; +contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; +contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; +contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436100; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-vzv-anterior-uveitis/20219; +replaces : ;","2023-10-19","2023-10-19","rao@ohdsi.org","VZV Anterior Uveitis (SUN) sensitive",,"VZV Anterior Uveitis (SUN) sensitive","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1226,1226 +1227,"[P] HSV Anterior Uveitis (SUN)",1227,"cohortNameLong : HSV Anterior Uveitis (SUN); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Opthalmology, #OhdsiWorkGroup; +contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; +contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; +contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436100; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-hsv-anterior-uveitis/20220; +replaces : ;","2023-10-19","2023-10-19","rao@ohdsi.org","HSV Anterior Uveitis (SUN)",,"HSV Anterior Uveitis (SUN)","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1227,1227 +1228,"[P] HSV Anterior Uveitis (SUN) sensitive",1228,"cohortNameLong : HSV Anterior Uveitis (SUN) sensitive; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Opthalmology, #OhdsiWorkGroup; +contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; +contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; +contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436100; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-hsv-anterior-uveitis/20220; +replaces : ;","2023-10-19","2023-10-19","rao@ohdsi.org","HSV Anterior Uveitis (SUN) sensitive",,"HSV Anterior Uveitis (SUN) sensitive","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1228,1228 +1229,"[P] Behcet Uveitis (SUN)",1229,"cohortNameLong : Behcet Uveitis (SUN); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Opthalmology, #OhdsiWorkGroup; +contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; +contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; +contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 436100; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-behcet-uveitis/20174; +replaces : ;","2023-10-19","2023-10-19","rao@ohdsi.org","Behcet Uveitis (SUN)",,"Behcet Uveitis (SUN)","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1229,1229 +1231,"[P] Sickle Cell Crisis",1231,"cohortNameLong : Sickle Cell Crisis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Sickle Cell Crisis; +hashTag : #epi1073; +contributors : 'Gowtham a rao'; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 4216915; +ohdsiForumPost : ; +replaces : ; +","2023-10-19","2023-10-19","rao@ohdsi.org","Sickle Cell Crisis",,"Sickle Cell Crisis","Pending peer review","","First occurrence of Sickle Cell Crisis","#epi1073","'Gowtham a rao'","'0000-0002-4949-7236'","'OHDSI'","","","4216915","","",,,,,,1231,1231 +1244,"[P] Non Platinum chemotherapy regimen",1244,"cohortNameLong : Non Platinum chemotherapy regimen; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Events of non platinum based chemotherapy with 60 days of surveillance because most cycles of every 4 weeks; +hashTag : ; +contributors : 'Gowtham A. Rao'; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2023-11-30","2023-11-30","rao@ohdsi.org","Non Platinum chemotherapy regimen",,"Non Platinum chemotherapy regimen","Pending peer review","","Events of non platinum based chemotherapy with 60 days of surveillance because most cycles of every 4 weeks","","'Gowtham A. Rao'","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,1244,1244 +1261,"[P] Acute Typical Pneumonia",1261,"cohortNameLong : Acute Typical Pneumonia; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Acute Typical Pneumonia; +hashTag : #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 255848, 4318404; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Acute Typical Pneumonia",,"Acute Typical Pneumonia","Pending peer review","","Acute Typical Pneumonia","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255848, 4318404","","",,,,,,1261,1261 +1262,"[P] Asthma or Chronic obstructive pulmonary disease (COPD)",1262,"cohortNameLong : Asthma or Chronic obstructive pulmonary disease (COPD); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Asthma or Chronic obstructive pulmonary disease (COPD); +hashTag : #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 255573, 317009; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Asthma or Chronic obstructive pulmonary disease (COPD)",,"Asthma or Chronic obstructive pulmonary disease (COPD)","Pending peer review","","Asthma or Chronic obstructive pulmonary disease (COPD)","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255573, 317009","","",,,,,,1262,1262 +1263,"[P] Chronic obstructive pulmonary disease (COPD) without asthma",1263,"cohortNameLong : Chronic obstructive pulmonary disease (COPD) without asthma; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Chronic obstructive pulmonary disease (COPD) without asthma; +hashTag : #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 255573; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Chronic obstructive pulmonary disease (COPD) without asthma",,"Chronic obstructive pulmonary disease (COPD) without asthma","Pending peer review","","Chronic obstructive pulmonary disease (COPD) without asthma","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255573","","",,,,,,1263,1263 +1264,"[P] Pneumonitis and lung infections",1264,"cohortNameLong : Pneumonitis and lung infections; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Pneumonitis and lung infections; +hashTag : #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 253506, 255848; +ohdsiForumPost : https://forums.ohdsi.org/t/17895; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Pneumonitis and lung infections",,"Pneumonitis and lung infections","Pending peer review","","Pneumonitis and lung infections","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","253506, 255848",,"",,,,,,1264,1264 +1265,"[P] Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3)",1265,"cohortNameLong : Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3); +hashTag : ; +contributors : 'Joel N. Swerdel'; +contributorOrcIds : '0000-0001-9491-2737'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 4322024; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3)",,"Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3)","Pending peer review","","Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3)","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","0","4322024","","",,,,,,1265,1265 +1266,"[P] Non-small cell lung cancer (NSCLC) for first time using ICD0",1266,"cohortNameLong : Non-small cell lung cancer (NSCLC); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non-small cell lung cancer (NSCLC) for first time using ICD0; +hashTag : ; +contributors : 'Asieh Golozar', 'Vlad Korsik'; +contributorOrcIds : '0000-0002-4243-155X'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Non-small cell lung cancer (NSCLC) for first time using ICD0",,"Non-small cell lung cancer (NSCLC)","Pending peer review","","Non-small cell lung cancer (NSCLC) for first time using ICD0","","'Asieh Golozar', 'Vlad Korsik'","'0000-0002-4243-155X'","","","0","439676, 37311061","","",,,,,,1266,1266 +1267,"[P] Lung cancer using ICD0",1267,"cohortNameLong : Lung cancer; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Lung cancer using ICD0; +hashTag : ; +contributors : 'Asieh Golozar'; +contributorOrcIds : '0000-0002-4243-155X'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 439676, 37311061; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Lung cancer using ICD0",,"Lung cancer","Pending peer review","","Lung cancer using ICD0","","'Asieh Golozar'","'0000-0002-4243-155X'","","","0","439676, 37311061","","",,,,,,1267,1267 +1268,"[P] Lung Resection, adults, inpt stay, no ED, post op new Afib",1268,"cohortNameLong : Lung Resection, adults, inpt stay, no ED, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Lung Resection - post op new Afib (any); +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : ; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Resection, adults, inpt stay, no ED, post op new Afib",,"Lung Resection, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Lung Resection - post op new Afib (any)","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","0","","","",,,,,,1268,1268 +1269,"[P] Pulmonary fibrosis",1269,"cohortNameLong : Pulmonary fibrosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Pulmonary fibrosis; +hashTag : #Condition, #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 4197819; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Pulmonary fibrosis",,"Pulmonary fibrosis","Pending peer review","","Pulmonary fibrosis","#Condition, #respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4197819","","",,,,,,1269,1269 +1270,"[P] History of Bladder cancer",1270,"cohortNameLong : Bladder cancer including history; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : History of Bladder cancer; +hashTag : ; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 197508; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","History of Bladder cancer",,"Bladder cancer including history","Pending","","History of Bladder cancer","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","197508","","",,,,,,1270,1270 +1271,"[P] Chronic obstructive pulmonary disease (COPD)",1271,"cohortNameLong : Chronic obstructive pulmonary disease (COPD); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Chronic obstructive pulmonary disease (COPD); +hashTag : #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 255573; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Chronic obstructive pulmonary disease (COPD)",,"Chronic obstructive pulmonary disease (COPD)","Pending peer review","","Chronic obstructive pulmonary disease (COPD)","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255573","","",,,,,,1271,1271 +1272,"[P] Chronic Interstitial lung disease (ILD)",1272,"cohortNameLong : Chronic Interstitial lung disease (ILD) not including Acute Respiratory Distress Syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Chronic Interstitial lung disease (ILD); +hashTag : #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 4119786; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Chronic Interstitial lung disease (ILD)",,"Chronic Interstitial lung disease (ILD) not including Acute Respiratory Distress Syndrome","Pending peer review","","Chronic Interstitial lung disease (ILD)","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4119786","","",,,,,,1272,1272 +1273,"[P] Lung Nodule",1273,"cohortNameLong : Lung Nodule; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Lung Nodule; +hashTag : #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 37206719; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Nodule",,"Lung Nodule","Pending peer review","","Lung Nodule","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719","","",,,,,,1273,1273 +1274,"[P] Lung Nodule - solitary",1274,"cohortNameLong : Lung Nodule - solitary; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Lung Nodule - solitary; +hashTag : #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 37206719,4142875; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Nodule - solitary",,"Lung Nodule - solitary","Pending peer review","","Lung Nodule - solitary","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719,4142875","","",,,,,,1274,1274 +1275,"[P] Lung Nodule - multiple",1275,"cohortNameLong : Lung Nodule - multiple; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Lung Nodule - multiple; +hashTag : #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 37206719,40482871; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Nodule - multiple",,"Lung Nodule - multiple","Pending peer review","","Lung Nodule - multiple","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719,40482871","","",,,,,,1275,1275 +1276,"[P] Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)",1276,"cohortNameLong : Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis); +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis); +hashTag : #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 37206719; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)",,"Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)","Pending peer review","","Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719","","",,,,,,1276,1276 +1277,"[P] Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis)",1277,"cohortNameLong : Lung Lesion that is not acute, necrotic, atlectatic, abscess, fibrosis; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis); +hashTag : #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 4116778,37206719; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis)",,"Lung Lesion that is not acute, necrotic, atlectatic, abscess, fibrosis","Pending peer review","","Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis)","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4116778,37206719","","",,,,,,1277,1277 +1278,"[P] Non Small Cell Lung Cancer (Stage 3)",1278,"cohortNameLong : Stage 3 Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non Small Cell Lung Cancer (Stage 3); +hashTag : #respiratory, #lung; +contributors : 'Dmytro Dymshyts', 'Gowtham A. Rao'; +contributorOrcIds : '','0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 37206719,4311499; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Non Small Cell Lung Cancer (Stage 3)",,"Stage 3 Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC","Pending peer review","","Non Small Cell Lung Cancer (Stage 3)","#respiratory, #lung","'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","",,,,,,1278,1278 +1279,"[P] Non Small Cell Lung Cancer",1279,"cohortNameLong : Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non Small Cell Lung Cancer; +hashTag : #respiratory, #lung; +contributors : 'Dmytro Dymshyts', 'Gowtham A. Rao'; +contributorOrcIds : '','0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 37206719,4311499; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Non Small Cell Lung Cancer",,"Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC","Pending peer review","","Non Small Cell Lung Cancer","#respiratory, #lung","'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","",,,,,,1279,1279 +1280,"[P] Small Cell Lung Cancer",1280,"cohortNameLong : Small Cell Lung Cancer; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Small Cell Lung Cancer; +hashTag : #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 37206719; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Small Cell Lung Cancer",,"Small Cell Lung Cancer","Pending peer review","","Small Cell Lung Cancer","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719","","",,,,,,1280,1280 +1281,"[P] Primary Lung Cancer",1281,"cohortNameLong : Primary Lung Cancer, indexed on lung abnormaility; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Primary Lung Cancer; +hashTag : #respiratory, #lung; +contributors : 'Dmytro Dymshyts', 'Gowtham A. Rao'; +contributorOrcIds : '','0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 37206719,4311499; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Primary Lung Cancer",,"Primary Lung Cancer, indexed on lung abnormaility","Pending peer review","","Primary Lung Cancer","#respiratory, #lung","'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","",,,,,,1281,1281 +1282,"[P] Hoarseness",1282,"cohortNameLong : Hoarseness; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Hoarseness; +hashTag : #Symptoms, #respiratory, #lung; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 312437, 4041664; +ohdsiForumPost : https://forums.ohdsi.org/t/17895; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Hoarseness",,"Hoarseness","Pending peer review","","Hoarseness","#Symptoms, #respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","312437, 4041664",,"",,,,,,1282,1282 +1283,"[P] Bone Pain",1283,"cohortNameLong : Bone Pain; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Bone Pain; +hashTag : #Symptom; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 4129418; +ohdsiForumPost : https://forums.ohdsi.org/t/17895; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Bone Pain",,"Bone Pain","Pending peer review","","Bone Pain","#Symptom","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4129418",,"",,,,,,1283,1283 +1284,"[P] Weight loss",1284,"cohortNameLong : Weight loss; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Weight loss; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 4177176,435928; +ohdsiForumPost : https://forums.ohdsi.org/t/17895; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Weight loss",,"Weight loss","Pending peer review","","Weight loss","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4177176,435928",,"",,,,,,1284,1284 +1285,"[P] Acute bronchitis",1285,"cohortNameLong : Acute Bronchitis; +librarian : ryan@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Acute bronchitis; +hashTag : #Symptoms; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 256451,260139; +ohdsiForumPost : https://forums.ohdsi.org/t/17895; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Acute bronchitis",,"Acute Bronchitis","Pending peer review","","Acute bronchitis","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","256451,260139",,"",,,,,,1285,1285 +1286,"[P] Non Small Cell Lung Cancer (Stage 3) without second diagnosis",1286,"cohortNameLong : Stage 3 Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Non Small Cell Lung Cancer (Stage 3) without second diagnosis; +hashTag : #respiratory, #lung; +contributors : 'Dmytro Dymshyts', 'Gowtham A. Rao'; +contributorOrcIds : '','0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : 0; +recommendedReferentConceptIds : 37206719,4311499; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Non Small Cell Lung Cancer (Stage 3) without second diagnosis",,"Stage 3 Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC","Pending peer review","","Non Small Cell Lung Cancer (Stage 3) without second diagnosis","#respiratory, #lung","'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","",,,,,,1286,1286 +1287,"[P] Intestinal obstruction - colorectal specific",1287,"cohortNameLong : Intestinal obstruction - colorectal specific; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest occurence of Intestinal obstruction - colorectal specific; +hashTag : ; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 193518; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Intestinal obstruction - colorectal specific",,"Intestinal obstruction - colorectal specific","Pending peer review","","Earliest occurence of Intestinal obstruction - colorectal specific","","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","193518","","",,,,,,1287,1287 +1288,"[P] Intraabdominal abscess - narrow for colorectal cancer",1288,"cohortNameLong : Intraabdominal abscess - narrow for colorectal cancer; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : Earliest occurence of Intraabdominal abscess - narrow for colorectal cancer; +hashTag : ; +contributors : Andreas Weinberger Rosen; +contributorOrcIds : 0000-0001-9990-8155; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 193518; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Intraabdominal abscess - narrow for colorectal cancer",,"Intraabdominal abscess - narrow for colorectal cancer","Pending peer review","","Earliest occurence of Intraabdominal abscess - narrow for colorectal cancer","","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","193518","","",,,,,,1288,1288 +1289,"[P] Major Non Cardiac Surgery, adults",1289,"cohortNameLong : Major Non Cardiac Surgery, adults; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Major Non Cardiac Surgery, adults",,"Major Non Cardiac Surgery, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1289,1289 +1290,"[P] Abdominal Aortic Aneurysm repair, adults",1290,"cohortNameLong : Abdominal Aortic Aneurysm repair, adults; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Abdominal Aortic Aneurysm repair, adults",,"Abdominal Aortic Aneurysm repair, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1290,1290 +1291,"[P] Lower Extremity Bypass, adults",1291,"cohortNameLong : Lower Extremity Bypass, adults; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Lower Extremity Bypass, adults",,"Lower Extremity Bypass, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1291,1291 +1292,"[P] Carotid Endarterectomy, adults",1292,"cohortNameLong : Carotid Endarterectomy, adults; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Carotid Endarterectomy, adults",,"Carotid Endarterectomy, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1292,1292 +1293,"[P] Lung Resection, adults",1293,"cohortNameLong : Lung Resection, adults; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Resection, adults",,"Lung Resection, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1293,1293 +1294,"[P] Esophagectomy, adults",1294,"cohortNameLong : Esophagectomy, adults; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Esophagectomy, adults",,"Esophagectomy, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1294,1294 +1295,"[P] Pancreatectomy, adults",1295,"cohortNameLong : Pancreatectomy, adults; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Pancreatectomy, adults",,"Pancreatectomy, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1295,1295 +1296,"[P] Colectomy, adults",1296,"cohortNameLong : Colectomy, adults; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Colectomy, adults",,"Colectomy, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1296,1296 +1297,"[P] Cystectomy, adults",1297,"cohortNameLong : Cystectomy, adults; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Cystectomy, adults",,"Cystectomy, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1297,1297 +1298,"[P] Nephrectomy, adults",1298,"cohortNameLong : Nephrectomy, adults; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Nephrectomy, adults",,"Nephrectomy, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1298,1298 +1299,"[P] Coronary Artery Bypass Graft, adults",1299,"cohortNameLong : Coronary Artery Bypass Graft, adults; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Coronary Artery Bypass Graft, adults",,"Coronary Artery Bypass Graft, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1299,1299 +1300,"[P] Cardiac Valve Surgery, adults",1300,"cohortNameLong : Cardiac Valve Surgery, adults; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery; +contributors : Evan Minty', 'Brian Bucher'; +contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Cardiac Valve Surgery, adults",,"Cardiac Valve Surgery, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1300,1300 +1301,"[P] Acute Urinary tract infections UTI events",1301,"cohortNameLong : Acute Urinary tract infections UTI; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : all events of acute urinary tract infection; +hashTag : ; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992'; +contributorOrganizations : ; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 81902; +ohdsiForumPost : ; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Acute Urinary tract infections UTI events",,"Acute Urinary tract infections UTI","Pending peer review","","all events of acute urinary tract infection","","Evan Minty","0000-0003-4631-9992'","","","","81902","","",,,,,,1301,1301 +1303,"[P] Acute Heart failure from legend",1303,"cohortNameLong : Acute Heart failure; +librarian : rao@ohdsi.org; +status : Pending; +addedVersion : ; +logicDescription : The first condition record of heart failure, which is followed by at least 1 heart failure condition record in the following year; +hashTag : ; +contributors : 'Evan Minty'; +contributorOrcIds : 0000-0003-4631-9992'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 78232, 80180; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; +replaces : ; + +notes: modified from 934 to support HowOften study.","2024-01-05","2024-01-05","rao@ohdsi.org","Acute Heart failure from legend",,"Acute Heart failure","Pending","","The first condition record of heart failure, which is followed by at least 1 heart failure condition record in the following year","","'Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","78232, 80180","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","","modified from 934 to support HowOften study.",,,,,1303,1303 +1304,"[P] Major Non Cardiac Surgery, adults, post op new Afib",1304,"cohortNameLong : Major Non Cardiac Surgery, adults, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Major Non Cardiac Surgery, adults, post op new Afib",,"Major Non Cardiac Surgery, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1304,1304 +1305,"[P] AAA repair, adults, post op new Afib",1305,"cohortNameLong : AAA repair, adults, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","AAA repair, adults, post op new Afib",,"AAA repair, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1305,1305 +1306,"[P] Lower Extremity Bypass, adults, post op new Afib",1306,"cohortNameLong : Lower Extremity Bypass, adults, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Lower Extremity Bypass, adults, post op new Afib",,"Lower Extremity Bypass, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1306,1306 +1307,"[P] Carotid Endarterectomy, adults, post op new Afib",1307,"cohortNameLong : Carotid Endarterectomy, adults, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Carotid Endarterectomy, adults, post op new Afib",,"Carotid Endarterectomy, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1307,1307 +1308,"[P] Lung Resection, adults, post op new Afib",1308,"cohortNameLong : Lung Resection, adults, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Resection, adults, post op new Afib",,"Lung Resection, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1308,1308 +1309,"[P] Esophagectomy, adults, post op new Afib",1309,"cohortNameLong : Esophagectomy, adults, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Esophagectomy, adults, post op new Afib",,"Esophagectomy, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1309,1309 +1310,"[P] Pancreatectomy, adults, post op new Afib",1310,"cohortNameLong : Pancreatectomy, adults, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Pancreatectomy, adults, post op new Afib",,"Pancreatectomy, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1310,1310 +1311,"[P] Colectomy, adults, post op new Afib",1311,"cohortNameLong : Colectomy, adults, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Colectomy, adults, post op new Afib",,"Colectomy, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1311,1311 +1312,"[P] Cystectomy, adults, post op new Afib",1312,"cohortNameLong : Cystectomy, adults, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Cystectomy, adults, post op new Afib",,"Cystectomy, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1312,1312 +1313,"[P] Nephrectomy, adults, post op new Afib",1313,"cohortNameLong : Nephrectomy, adults, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Nephrectomy, adults, post op new Afib",,"Nephrectomy, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1313,1313 +1314,"[P] Coronary Artery Bypass Graft, adults, post op new Afib",1314,"cohortNameLong : Coronary Artery Bypass Graft, adults, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Coronary Artery Bypass Graft, adults, post op new Afib",,"Coronary Artery Bypass Graft, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1314,1314 +1315,"[P] Cardiac Valve Surgery, adults, post op new Afib",1315,"cohortNameLong : Cardiac Valve Surgery, adults, post op new Afib; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : ; +hashTag : #Surgery, #WorkGroup; +contributors : Evan Minty; +contributorOrcIds : 0000-0003-4631-9992; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : ; +ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; +replaces : ; +","2024-01-05","2024-01-05","rao@ohdsi.org","Cardiac Valve Surgery, adults, post op new Afib",,"Cardiac Valve Surgery, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1315,1315 +1316,"Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)",1316,"cohortNameLong : Neutropenia or unspecified leukopenia; +librarian : rao@ohdsi.org; +status : Accepted; +addedVersion : 3.11.0; +logicDescription : All events of neutropenia indexed on diagnosis or lab results, with no congenital or genetic neutropenia all days pre to 7 days post index. Also excluded, events with normal neutrophil count or a diagnosis of Neutrophilia on index. patients exit 21 days post end date or with the occurrence of a normal neutrophil count. Reoccurring events for the same patients will be combined into event eras if they are within 365 days of each other.; +hashTag : #PhenotypePhebruary, #2023, #Neutropenia, #DME; +contributors : Gowtham A. Rao; +contributorOrcIds : '0000-0002-4949-7236'; +contributorOrganizations : 'OHDSI'; +peerReviewers : Anna Ostropolets; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 435224; +ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409; +replaces : 213; +","2024-09-06","2024-09-06","rao@ohdsi.org","Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)",,"Neutropenia or unspecified leukopenia","Accepted","3.11.0","All events of neutropenia indexed on diagnosis or lab results, with no congenital or genetic neutropenia all days pre to 7 days post index. Also excluded, events with normal neutrophil count or a diagnosis of Neutrophilia on index. patients exit 21 days post end date or with the occurrence of a normal neutrophil count. Reoccurring events for the same patients will be combined into event eras if they are within 365 days of each other.","#PhenotypePhebruary, #2023, #Neutropenia, #DME","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Anna Ostropolets","","435224","https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409","213",,,,,,1316,1316 +1317,"[P] Reyes syndrome",1317,"cohortNameLong : Reyes syndrome; +librarian : rao@ohdsi.org; +status : Pending peer review; +addedVersion : ; +logicDescription : First occurrence of Reyes syndrome; +hashTag : #Disease, #DME; +contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; +contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; +contributorOrganizations : 'OHDSI'; +peerReviewers : ; +peerReviewerOrcIds : ; +recommendedReferentConceptIds : 375241; +ohdsiForumPost : ; +replaces : ; +","2024-09-11","2024-09-26","rao@ohdsi.org","Reyes syndrome",,"Reyes syndrome","Pending peer review","","First occurrence of Reyes syndrome","#Disease, #DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","375241","","",,,,,,1317,1317 diff --git a/inst/cohorts/1029.json b/inst/cohorts/1029.json index 6e851af4..3f793444 100644 --- a/inst/cohorts/1029.json +++ b/inst/cohorts/1029.json @@ -176,7 +176,7 @@ { "concept" : { "CONCEPT_ID" : 135759, - "CONCEPT_NAME" : "Sézary's disease of extranodal AND/OR solid organ site", + "CONCEPT_NAME" : "Sézary's disease of extranodal AND/OR solid organ site", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", diff --git a/inst/cohorts/1163.json b/inst/cohorts/1163.json index 33d4600b..823e1b54 100644 --- a/inst/cohorts/1163.json +++ b/inst/cohorts/1163.json @@ -287,7 +287,7 @@ }, { "id" : 9, - "name" : "Kidney transplant conditions", + "name" : "Kidney transplant conditions", "expression" : { "items" : [ { diff --git a/inst/cohorts/1215.json b/inst/cohorts/1215.json index ee8d3c55..69a060e8 100644 --- a/inst/cohorts/1215.json +++ b/inst/cohorts/1215.json @@ -2509,7 +2509,7 @@ { "concept" : { "CONCEPT_ID" : 4261334, - "CONCEPT_NAME" : "Pseudolymphoma of lung in Sjögren's disease", + "CONCEPT_NAME" : "Pseudolymphoma of lung in Sjögren's disease", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", @@ -22926,7 +22926,7 @@ { "concept" : { "CONCEPT_ID" : 761036, - "CONCEPT_NAME" : "Torré-Muir syndrome co-occurrent with benign sebaceous neoplasm", + "CONCEPT_NAME" : "Torré-Muir syndrome co-occurrent with benign sebaceous neoplasm", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", diff --git a/inst/cohorts/1225.json b/inst/cohorts/1225.json index c6db6b70..c3cf6534 100644 --- a/inst/cohorts/1225.json +++ b/inst/cohorts/1225.json @@ -7203,7 +7203,7 @@ "InclusionRules" : [ { "name" : "Evidence of varicella zoster virus infection in the eye", - "description" : "a. Positive PCR for varicella zoster virus on aqueous specimen (observations, measurements)\nb. Sectoral iris atrophy in a patient =60 years of age\nc. Concurrent or recent dermatomal Herpes zoster", + "description" : "a. Positive PCR for varicella zoster virus on aqueous specimen (observations, measurements)\nb. Sectoral iris atrophy in a patient ≥60 years of age\nc. Concurrent or recent dermatomal Herpes zoster", "expression" : { "Type" : "ANY", "CriteriaList" : [ diff --git a/inst/cohorts/1226.json b/inst/cohorts/1226.json index 05e0c5a4..d00afc86 100644 --- a/inst/cohorts/1226.json +++ b/inst/cohorts/1226.json @@ -7203,7 +7203,7 @@ "InclusionRules" : [ { "name" : "Evidence of varicella zoster virus infection in the eye", - "description" : "a. Positive PCR for varicella zoster virus on aqueous specimen (observations, measurements)\nb. Sectoral iris atrophy in a patient =60 years of age\nc. Concurrent or recent dermatomal Herpes zoster", + "description" : "a. Positive PCR for varicella zoster virus on aqueous specimen (observations, measurements)\nb. Sectoral iris atrophy in a patient ≥60 years of age\nc. Concurrent or recent dermatomal Herpes zoster", "expression" : { "Type" : "ANY", "CriteriaList" : [ diff --git a/inst/cohorts/1227.json b/inst/cohorts/1227.json index 0a86790b..d25c476a 100644 --- a/inst/cohorts/1227.json +++ b/inst/cohorts/1227.json @@ -7369,7 +7369,7 @@ "InclusionRules" : [ { "name" : "Evidence of herpes simplex infection in the eye", - "description" : "a. Positive PCR for herpes simplex on aqueous specimen (observations, measurements)\nb. Sectoral iris atrophy in a patient =50 years of age\nc. Herpes simplex keratitis", + "description" : "a. Positive PCR for herpes simplex on aqueous specimen (observations, measurements)\nb. Sectoral iris atrophy in a patient ≤50 years of age\nc. Herpes simplex keratitis", "expression" : { "Type" : "ANY", "CriteriaList" : [ diff --git a/inst/cohorts/1228.json b/inst/cohorts/1228.json index 10cc2c1e..2035377f 100644 --- a/inst/cohorts/1228.json +++ b/inst/cohorts/1228.json @@ -7369,7 +7369,7 @@ "InclusionRules" : [ { "name" : "Evidence of herpes simplex infection in the eye", - "description" : "a. Positive PCR for herpes simplex on aqueous specimen (observations, measurements)\nb. Sectoral iris atrophy in a patient =50 years of age\nc. Herpes simplex keratitis", + "description" : "a. Positive PCR for herpes simplex on aqueous specimen (observations, measurements)\nb. Sectoral iris atrophy in a patient ≤50 years of age\nc. Herpes simplex keratitis", "expression" : { "Type" : "ANY", "CriteriaList" : [ diff --git a/inst/cohorts/1229.json b/inst/cohorts/1229.json index bfbcfb57..c1c0bfad 100644 --- a/inst/cohorts/1229.json +++ b/inst/cohorts/1229.json @@ -862,7 +862,7 @@ { "concept" : { "CONCEPT_ID" : 3655585, - "CONCEPT_NAME" : "Mucocutaneous Behçet disease", + "CONCEPT_NAME" : "Mucocutaneous Behçet disease", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", @@ -5940,7 +5940,7 @@ { "concept" : { "CONCEPT_ID" : 3655585, - "CONCEPT_NAME" : "Mucocutaneous Behçet disease", + "CONCEPT_NAME" : "Mucocutaneous Behçet disease", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", @@ -5957,7 +5957,7 @@ { "concept" : { "CONCEPT_ID" : 4293711, - "CONCEPT_NAME" : "Behçet's disease affecting oral mucosa", + "CONCEPT_NAME" : "Behçet's disease affecting oral mucosa", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", @@ -6042,7 +6042,7 @@ { "concept" : { "CONCEPT_ID" : 4295174, - "CONCEPT_NAME" : "Penile ulceration due to Behçet's disease", + "CONCEPT_NAME" : "Penile ulceration due to Behçet's disease", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", diff --git a/inst/cohorts/1316.json b/inst/cohorts/1316.json new file mode 100644 index 00000000..7551adef --- /dev/null +++ b/inst/cohorts/1316.json @@ -0,0 +1,1542 @@ +{ + "cdmVersionRange" : ">=5.0.0", + "PrimaryCriteria" : { + "CriteriaList" : [ + { + "ConditionOccurrence" : { + "CodesetId" : 21, + "First" : true, + "ConditionTypeExclude" : false + } + } + ], + "ObservationWindow" : { + "PriorDays" : 0, + "PostDays" : 0 + }, + "PrimaryCriteriaLimit" : { + "Type" : "All" + } + }, + "ConceptSets" : [ + { + "id" : 2, + "name" : "Disorder caused by alcohol", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 36714559, + "CONCEPT_NAME" : "Disorder caused by alcohol", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "719848005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4042860, + "CONCEPT_NAME" : "Finding relating to alcohol drinking behavior", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "228273003", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 435140, + "CONCEPT_NAME" : "Toxic effect of alcohol", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "67426006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46269816, + "CONCEPT_NAME" : "Ascites due to alcoholic cirrhosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "1082601000119104", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 37311131, + "CONCEPT_NAME" : "Alcohol detoxification", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "827094004", + "DOMAIN_ID" : "Procedure", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Procedure" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058714, + "CONCEPT_NAME" : "H/O: alcoholism", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "161466001", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46269817, + "CONCEPT_NAME" : "Ascites due to alcoholic hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "1082611000119101", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 195300, + "CONCEPT_NAME" : "Alcoholic gastritis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "2043009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 318773, + "CONCEPT_NAME" : "Dilated cardiomyopathy secondary to alcohol", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "83521008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 37016176, + "CONCEPT_NAME" : "Cerebral degeneration due to alcoholism", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "135761000119101", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 45757783, + "CONCEPT_NAME" : "Gastric hemorrhage due to alcoholic gastritis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "40241000119109", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 44788725, + "CONCEPT_NAME" : "Hazardous alcohol use", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "198421000000108", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 40484946, + "CONCEPT_NAME" : "High alcohol level in blood", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "442766007", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 3661461, + "CONCEPT_NAME" : "Adverse reaction to alcohol", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "836464003", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 44788726, + "CONCEPT_NAME" : "Harmful alcohol use", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "198431000000105", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 5, + "name" : "Hepatic coma due to viral hepatitis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 196029, + "CONCEPT_NAME" : "Hepatic coma due to viral hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "40946000", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 6, + "name" : "Chronic Hepatic Failure", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4340390, + "CONCEPT_NAME" : "Chronic hepatic failure", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "235886005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46269836, + "CONCEPT_NAME" : "Hepatic coma due to chronic hepatic failure", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "1085091000119108", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 37396401, + "CONCEPT_NAME" : "Decompensated cirrhosis of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "716203000", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4331292, + "CONCEPT_NAME" : "Hepatic failure due to a procedure", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "22508003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 45769564, + "CONCEPT_NAME" : "End stage liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "708248004", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 7, + "name" : "Liver Cirrhosis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4064161, + "CONCEPT_NAME" : "Cirrhosis of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "19943007", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 196463, + "CONCEPT_NAME" : "Alcoholic cirrhosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "420054005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46269816, + "CONCEPT_NAME" : "Ascites due to alcoholic cirrhosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "1082601000119104", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 8, + "name" : "Liver Fibrosis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4267417, + "CONCEPT_NAME" : "Hepatic fibrosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "62484002", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058695, + "CONCEPT_NAME" : "Toxic liver disease with fibrosis and cirrhosis of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197362001", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 10, + "name" : "Steatosis of liver, not including non-alcoholic", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4026131, + "CONCEPT_NAME" : "Non-alcoholic fatty liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197315008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : true, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4059290, + "CONCEPT_NAME" : "Steatosis of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197321007", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 11, + "name" : "Non-Alcoholic Fatty Liver Disease", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4026131, + "CONCEPT_NAME" : "Non-alcoholic fatty liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197315008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 40484532, + "CONCEPT_NAME" : "Nonalcoholic steatohepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "442685003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 12, + "name" : "Other Liver problems", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4326594, + "CONCEPT_NAME" : "Abnormal liver function", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "75183008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058725, + "CONCEPT_NAME" : "H/O: liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "161535005", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4113557, + "CONCEPT_NAME" : "Liver problem", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "300338006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 194984, + "CONCEPT_NAME" : "Disease of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "235856003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 15, + "name" : "Malignancies that spread to liver (breast, esophageal, stomach, pancreatic, lung, kidney, melanoma, primary malignancy of liver)", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4112853, + "CONCEPT_NAME" : "Malignant tumor of breast", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "254837009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4162276, + "CONCEPT_NAME" : "Malignant melanoma", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "372244006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 40493428, + "CONCEPT_NAME" : "Malignant neoplasm of respiratory system", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "449096009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 43021272, + "CONCEPT_NAME" : "History of malignant neoplasm of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "473067009", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4101758, + "CONCEPT_NAME" : "Hepatocellular carcinoma", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "25370001", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Morph Abnormality" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 435506, + "CONCEPT_NAME" : "Benign neoplastic disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "20376005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : true, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4180793, + "CONCEPT_NAME" : "Malignant tumor of pancreas", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "363418001", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4181343, + "CONCEPT_NAME" : "Malignant tumor of esophagus", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "363402007", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 196653, + "CONCEPT_NAME" : "Malignant tumor of kidney", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "363518003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 43021272, + "CONCEPT_NAME" : "History of malignant neoplasm of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "473067009", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46273375, + "CONCEPT_NAME" : "History of malignant neoplasm of pancreas", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "73761000119105", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4178769, + "CONCEPT_NAME" : "History of malignant neoplasm of esophagus", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "429410000", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058705, + "CONCEPT_NAME" : "H/O Malignant melanoma", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "161432005", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4187205, + "CONCEPT_NAME" : "History of malignant neoplasm of lung", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "415082004", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4324190, + "CONCEPT_NAME" : "History of malignant neoplasm of breast", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "429087003", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 16, + "name" : "Alcoholic hepatitis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4340383, + "CONCEPT_NAME" : "Alcoholic hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "235875008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 201343, + "CONCEPT_NAME" : "Acute alcoholic liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "9953008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : false, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46269835, + "CONCEPT_NAME" : "Hepatic ascites due to chronic alcoholic hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "1085021000119106", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 17, + "name" : "Wilsons disease", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4229262, + "CONCEPT_NAME" : "Wilson's disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "88518009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 18, + "name" : "Autoimmune Hepatitis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 200762, + "CONCEPT_NAME" : "Autoimmune hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "408335007", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 19, + "name" : "Hemochromatosis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4163735, + "CONCEPT_NAME" : "Hemochromatosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "399187006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 20, + "name" : "Primary Biliary Cholangitis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4135822, + "CONCEPT_NAME" : "Primary biliary cholangitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "31712002", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 21, + "name" : "Acute Hepatic Failure, adding Sequela of chronic liver disease to capture potential cases in icd-9 ", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4029488, + "CONCEPT_NAME" : "Hepatic encephalopathy", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "13920009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4245975, + "CONCEPT_NAME" : "Hepatic failure", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "59927004", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4340390, + "CONCEPT_NAME" : "Chronic hepatic failure", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "235886005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : true, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 40481531, + "CONCEPT_NAME" : "Sequela of chronic liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "444918006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : false, + "includeMapped" : false + } + ] + } + }, + { + "id" : 22, + "name" : "Ascites", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 200528, + "CONCEPT_NAME" : "Ascites", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "389026000", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 23, + "name" : "Toxic Liver Disease", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4055224, + "CONCEPT_NAME" : "Toxic liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197354009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4055223, + "CONCEPT_NAME" : "Toxic hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197352008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 24, + "name" : "Portal Hypertension", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 192680, + "CONCEPT_NAME" : "Portal hypertension", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "34742003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46270558, + "CONCEPT_NAME" : "History of portal hypertension", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "59701000119109", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 25, + "name" : "Liver Transplant", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 42537742, + "CONCEPT_NAME" : "Transplanted liver present", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "737297006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 26, + "name" : "Neoplasm of liver", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4130518, + "CONCEPT_NAME" : "Neoplasm of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "126851005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 27, + "name" : "Cholestasis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4143915, + "CONCEPT_NAME" : "Cholestasis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "33688009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058694, + "CONCEPT_NAME" : "Toxic liver disease with cholestasis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197355005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 30, + "name" : "Hepatic Necrosis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4337543, + "CONCEPT_NAME" : "Hepatic necrosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "87248009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 31, + "name" : "Chronic Liver Disease", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4212540, + "CONCEPT_NAME" : "Chronic liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "328383001", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + } + ], + "QualifiedLimit" : { + "Type" : "First" + }, + "ExpressionLimit" : { + "Type" : "First" + }, + "InclusionRules" : [ + { + "name" : "Chronic Hepatic Failure ", + "expression" : { + "Type" : "ALL", + "CriteriaList" : [ + { + "Criteria" : { + "ConditionOccurrence" : { + "CodesetId" : 6, + "ConditionTypeExclude" : false + } + }, + "StartWindow" : { + "Start" : { + "Coeff" : -1 + }, + "End" : { + "Days" : 0, + "Coeff" : 1 + }, + "UseIndexEnd" : false, + "UseEventEnd" : false + }, + "RestrictVisit" : false, + "IgnoreObservationPeriod" : false, + "Occurrence" : { + "Type" : 0, + "Count" : 0, + "IsDistinct" : false + } + } + ], + "DemographicCriteriaList" : [], + "Groups" : [] + } + }, + { + "name" : "History of Liver Cirrhosis", + "expression" : { + "Type" : "ALL", + "CriteriaList" : [ + { + "Criteria" : { + "ConditionOccurrence" : { + "CodesetId" : 7, + "ConditionTypeExclude" : false + } + }, + "StartWindow" : { + "Start" : { + "Coeff" : -1 + }, + "End" : { + "Days" : 0, + "Coeff" : -1 + }, + "UseIndexEnd" : false, + "UseEventEnd" : false + }, + "RestrictVisit" : false, + "IgnoreObservationPeriod" : true, + "Occurrence" : { + "Type" : 0, + "Count" : 0, + "IsDistinct" : false + } + } + ], + "DemographicCriteriaList" : [], + "Groups" : [] + } + }, + { + "name" : "History of Liver Transplant", + "expression" : { + "Type" : "ALL", + "CriteriaList" : [ + { + "Criteria" : { + "ConditionOccurrence" : { + "CodesetId" : 25, + "ConditionTypeExclude" : false + } + }, + "StartWindow" : { + "Start" : { + "Coeff" : -1 + }, + "End" : { + "Days" : 7, + "Coeff" : -1 + }, + "UseIndexEnd" : false, + "UseEventEnd" : false + }, + "RestrictVisit" : false, + "IgnoreObservationPeriod" : true, + "Occurrence" : { + "Type" : 0, + "Count" : 0, + "IsDistinct" : false + } + } + ], + "DemographicCriteriaList" : [], + "Groups" : [] + } + } + ], + "EndStrategy" : { + "DateOffset" : { + "DateField" : "EndDate", + "Offset" : 90 + } + }, + "CensoringCriteria" : [], + "CollapseSettings" : { + "CollapseType" : "ERA", + "EraPad" : 0 + }, + "CensorWindow" : {} +} \ No newline at end of file diff --git a/inst/cohorts/1317.json b/inst/cohorts/1317.json new file mode 100644 index 00000000..4c271543 --- /dev/null +++ b/inst/cohorts/1317.json @@ -0,0 +1,61 @@ +{ + "cdmVersionRange" : ">=5.0.0", + "PrimaryCriteria" : { + "CriteriaList" : [ + { + "ConditionOccurrence" : { + "CodesetId" : 0, + "First" : true, + "ConditionTypeExclude" : false + } + } + ], + "ObservationWindow" : { + "PriorDays" : 0, + "PostDays" : 0 + }, + "PrimaryCriteriaLimit" : { + "Type" : "First" + } + }, + "ConceptSets" : [ + { + "id" : 0, + "name" : "Reye's syndrome", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 375241, + "CONCEPT_NAME" : "Reye's syndrome", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "74351001", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + } + ], + "QualifiedLimit" : { + "Type" : "First" + }, + "ExpressionLimit" : { + "Type" : "First" + }, + "InclusionRules" : [], + "CensoringCriteria" : [], + "CollapseSettings" : { + "CollapseType" : "ERA", + "EraPad" : 0 + }, + "CensorWindow" : {} +} \ No newline at end of file diff --git a/inst/cohorts/16.json b/inst/cohorts/16.json index 2c5468f0..63d2e7dc 100644 --- a/inst/cohorts/16.json +++ b/inst/cohorts/16.json @@ -20,7 +20,7 @@ "ConceptSets" : [ { "id" : 2, - "name" : "Exposure to SARS-CoV-2 or coronavirus infection", + "name" : "Exposure to SARS-CoV-2 or coronavirus infection", "expression" : { "items" : [ { diff --git a/inst/cohorts/208.json b/inst/cohorts/208.json index d339388c..f93cb405 100644 --- a/inst/cohorts/208.json +++ b/inst/cohorts/208.json @@ -396,7 +396,7 @@ "ConceptSets" : [ { "id" : 1, - "name" : "Fever (38.0°C or higher) pre-coordinated measurement and conditions", + "name" : "Fever (38.0°C or higher) pre-coordinated measurement and conditions", "expression" : { "items" : [ { @@ -1169,7 +1169,7 @@ }, { "id" : 2, - "name" : "Fever (38.0°C or higher) measurement and observation", + "name" : "Fever (38.0°C or higher) measurement and observation", "expression" : { "items" : [ { diff --git a/inst/cohorts/216.json b/inst/cohorts/216.json index 62f1dc8c..6c07570a 100644 --- a/inst/cohorts/216.json +++ b/inst/cohorts/216.json @@ -491,7 +491,7 @@ { "concept" : { "CONCEPT_ID" : 254443, - "CONCEPT_NAME" : "Sj?gren's syndrome", + "CONCEPT_NAME" : "Sjögren's syndrome", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", @@ -763,7 +763,7 @@ { "concept" : { "CONCEPT_ID" : 4102503, - "CONCEPT_NAME" : "Myopathy due to Sj?gren's disease", + "CONCEPT_NAME" : "Myopathy due to Sjögren's disease", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", @@ -4482,7 +4482,7 @@ "EndStrategy" : { "DateOffset" : { "DateField" : "EndDate", - "Offset" : 0 + "Offset" : 180 } }, "CensoringCriteria" : [ @@ -4568,7 +4568,7 @@ ], "CollapseSettings" : { "CollapseType" : "ERA", - "EraPad" : 1 + "EraPad" : 0 }, "CensorWindow" : {} } \ No newline at end of file diff --git a/inst/cohorts/218.json b/inst/cohorts/218.json index 03dd2fff..c51ca3de 100644 --- a/inst/cohorts/218.json +++ b/inst/cohorts/218.json @@ -1395,7 +1395,7 @@ "EndStrategy" : { "DateOffset" : { "DateField" : "EndDate", - "Offset" : 0 + "Offset" : 3 } }, "CensoringCriteria" : [], diff --git a/inst/cohorts/219.json b/inst/cohorts/219.json index c1ed6503..cf5cb1e7 100644 --- a/inst/cohorts/219.json +++ b/inst/cohorts/219.json @@ -86,23 +86,6 @@ "includeDescendants" : true, "includeMapped" : false }, - { - "concept" : { - "CONCEPT_ID" : 44790742, - "CONCEPT_NAME" : "Arrest witnessed not known", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "242781000000107", - "DOMAIN_ID" : "Observation", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, { "concept" : { "CONCEPT_ID" : 44790539, @@ -137,23 +120,6 @@ "includeDescendants" : true, "includeMapped" : false }, - { - "concept" : { - "CONCEPT_ID" : 44790740, - "CONCEPT_NAME" : "Arrest witnessed by community responder", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "242761000000103", - "DOMAIN_ID" : "Observation", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, { "concept" : { "CONCEPT_ID" : 4143106, @@ -171,23 +137,6 @@ "includeDescendants" : true, "includeMapped" : false }, - { - "concept" : { - "CONCEPT_ID" : 44790741, - "CONCEPT_NAME" : "Arrest witnessed by no one", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "242771000000105", - "DOMAIN_ID" : "Observation", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, { "concept" : { "CONCEPT_ID" : 4317150, @@ -290,23 +239,6 @@ "includeDescendants" : true, "includeMapped" : false }, - { - "concept" : { - "CONCEPT_ID" : 44790722, - "CONCEPT_NAME" : "Arrest witnessed by ambulance clinician", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "242741000000104", - "DOMAIN_ID" : "Observation", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, { "concept" : { "CONCEPT_ID" : 4175137, @@ -375,23 +307,6 @@ "includeDescendants" : true, "includeMapped" : false }, - { - "concept" : { - "CONCEPT_ID" : 44790723, - "CONCEPT_NAME" : "Arrest witnessed by bystander", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "242751000000101", - "DOMAIN_ID" : "Observation", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, { "concept" : { "CONCEPT_ID" : 4233618, @@ -426,23 +341,6 @@ "includeDescendants" : true, "includeMapped" : false }, - { - "concept" : { - "CONCEPT_ID" : 4353741, - "CONCEPT_NAME" : "Cardioversion", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "250980009", - "DOMAIN_ID" : "Procedure", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Procedure" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, { "concept" : { "CONCEPT_ID" : 4204802, diff --git a/inst/cohorts/221.json b/inst/cohorts/221.json index 79bdca32..2dbbd266 100644 --- a/inst/cohorts/221.json +++ b/inst/cohorts/221.json @@ -584,7 +584,7 @@ }, { "id" : 8, - "name" : "Accidental poisoning", + "name" : "Accidental poisoning", "expression" : { "items" : [ { @@ -828,7 +828,7 @@ } }, { - "name" : "Accidental poisoning", + "name" : "Accidental poisoning", "expression" : { "Type" : "ALL", "CriteriaList" : [ diff --git a/inst/cohorts/235.json b/inst/cohorts/235.json index 4faf1fc6..782d00ed 100644 --- a/inst/cohorts/235.json +++ b/inst/cohorts/235.json @@ -87,7 +87,7 @@ { "concept" : { "CONCEPT_ID" : 4164770, - "CONCEPT_NAME" : "Guillain-Barré syndrome", + "CONCEPT_NAME" : "Guillain-Barré syndrome", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", diff --git a/inst/cohorts/255.json b/inst/cohorts/255.json index 9d9651c9..9c2d0aaf 100644 --- a/inst/cohorts/255.json +++ b/inst/cohorts/255.json @@ -1003,7 +1003,7 @@ }, { "id" : 6, - "name" : "Other specific dementia diagnosis (e.g., VD, Pick’s disease, or Lewy body dementia [LBD])", + "name" : "Other specific dementia diagnosis (e.g., VD, Pick’s disease, or Lewy body dementia [LBD])", "expression" : { "items" : [ { @@ -1306,7 +1306,7 @@ }, "InclusionRules" : [ { - "name" : "No occurrence of any other specific dementia diagnosis (e.g., VD, Pick’s disease, or Lewy body dementia [LBD]) after the Alzheimer's disease diagnosis date", + "name" : "No occurrence of any other specific dementia diagnosis (e.g., VD, Pick’s disease, or Lewy body dementia [LBD]) after the Alzheimer's disease diagnosis date", "expression" : { "Type" : "ALL", "CriteriaList" : [ diff --git a/inst/cohorts/267.json b/inst/cohorts/267.json index ce8f5565..3f3ba7b7 100644 --- a/inst/cohorts/267.json +++ b/inst/cohorts/267.json @@ -287,7 +287,7 @@ }, { "id" : 9, - "name" : "Kidney transplant conditions", + "name" : "Kidney transplant conditions", "expression" : { "items" : [ { diff --git a/inst/cohorts/268.json b/inst/cohorts/268.json index 27f6bc0d..ce2b7859 100644 --- a/inst/cohorts/268.json +++ b/inst/cohorts/268.json @@ -287,7 +287,7 @@ }, { "id" : 9, - "name" : "Kidney transplant conditions", + "name" : "Kidney transplant conditions", "expression" : { "items" : [ { diff --git a/inst/cohorts/269.json b/inst/cohorts/269.json index adbb5896..0e3bb64b 100644 --- a/inst/cohorts/269.json +++ b/inst/cohorts/269.json @@ -287,7 +287,7 @@ }, { "id" : 9, - "name" : "Kidney transplant conditions", + "name" : "Kidney transplant conditions", "expression" : { "items" : [ { diff --git a/inst/cohorts/275.json b/inst/cohorts/275.json index 6f9dbde4..ffa939ae 100644 --- a/inst/cohorts/275.json +++ b/inst/cohorts/275.json @@ -88,7 +88,7 @@ "EndStrategy" : { "DateOffset" : { "DateField" : "EndDate", - "Offset" : 0 + "Offset" : 3 } }, "CensoringCriteria" : [], diff --git a/inst/cohorts/276.json b/inst/cohorts/276.json index 6db117a7..eed64307 100644 --- a/inst/cohorts/276.json +++ b/inst/cohorts/276.json @@ -272,14 +272,14 @@ ], "EndStrategy" : { "DateOffset" : { - "DateField" : "EndDate", - "Offset" : 0 + "DateField" : "StartDate", + "Offset" : 90 } }, "CensoringCriteria" : [], "CollapseSettings" : { "CollapseType" : "ERA", - "EraPad" : 1 + "EraPad" : 0 }, "CensorWindow" : {} } \ No newline at end of file diff --git a/inst/cohorts/29.json b/inst/cohorts/29.json index a7939f66..a76d2946 100644 --- a/inst/cohorts/29.json +++ b/inst/cohorts/29.json @@ -669,7 +669,7 @@ { "concept" : { "CONCEPT_ID" : 254443, - "CONCEPT_NAME" : "Sjögren's syndrome", + "CONCEPT_NAME" : "Sjögren's syndrome", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", diff --git a/inst/cohorts/362.json b/inst/cohorts/362.json index f38293d2..91e45bfd 100644 --- a/inst/cohorts/362.json +++ b/inst/cohorts/362.json @@ -287,7 +287,7 @@ }, { "id" : 9, - "name" : "Kidney transplant conditions", + "name" : "Kidney transplant conditions", "expression" : { "items" : [ { diff --git a/inst/cohorts/371.json b/inst/cohorts/371.json index 8e6ef447..4cec89c5 100644 --- a/inst/cohorts/371.json +++ b/inst/cohorts/371.json @@ -85,7 +85,7 @@ }, { "id" : 5, - "name" : "Peripheral arterial disease", + "name" : "Peripheral arterial disease", "expression" : { "items" : [ { diff --git a/inst/cohorts/394.json b/inst/cohorts/394.json index 402e2224..326cec78 100644 --- a/inst/cohorts/394.json +++ b/inst/cohorts/394.json @@ -87,7 +87,7 @@ "ConceptSets" : [ { "id" : 4, - "name" : "Gastroesophageal reflux disease", + "name" : "Gastroesophageal reflux disease", "expression" : { "items" : [ { diff --git a/inst/cohorts/504.json b/inst/cohorts/504.json index 98356ea8..396c1cba 100644 --- a/inst/cohorts/504.json +++ b/inst/cohorts/504.json @@ -20,13 +20,13 @@ "ConceptSets" : [ { "id" : 0, - "name" : "Sjögren's syndrome", + "name" : "Sjögren's syndrome", "expression" : { "items" : [ { "concept" : { "CONCEPT_ID" : 254443, - "CONCEPT_NAME" : "Sjögren's syndrome", + "CONCEPT_NAME" : "Sjögren's syndrome", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", diff --git a/inst/cohorts/6.json b/inst/cohorts/6.json index 26dfbf69..31af980b 100644 --- a/inst/cohorts/6.json +++ b/inst/cohorts/6.json @@ -126,7 +126,7 @@ "ConceptSets" : [ { "id" : 1, - "name" : "Fever (38.0°C or higher) pre-coordinated measurement and conditions", + "name" : "Fever (38.0°C or higher) pre-coordinated measurement and conditions", "expression" : { "items" : [ { @@ -916,7 +916,7 @@ }, { "id" : 2, - "name" : "Fever (38.0°C or higher) measurement and observation", + "name" : "Fever (38.0°C or higher) measurement and observation", "expression" : { "items" : [ { diff --git a/inst/cohorts/633.json b/inst/cohorts/633.json index b5acf139..ddacb243 100644 --- a/inst/cohorts/633.json +++ b/inst/cohorts/633.json @@ -20,13 +20,13 @@ "ConceptSets" : [ { "id" : 0, - "name" : "Waldenström macroglobulinemia", + "name" : "Waldenström macroglobulinemia", "expression" : { "items" : [ { "concept" : { "CONCEPT_ID" : 4098597, - "CONCEPT_NAME" : "Waldenström macroglobulinemia", + "CONCEPT_NAME" : "Waldenström macroglobulinemia", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", diff --git a/inst/cohorts/64.json b/inst/cohorts/64.json index 60d2d23d..875512bc 100644 --- a/inst/cohorts/64.json +++ b/inst/cohorts/64.json @@ -156,7 +156,7 @@ "ConceptSets" : [ { "id" : 1, - "name" : "Fever (38.0°C or higher) pre-coordinated measurement and conditions", + "name" : "Fever (38.0°C or higher) pre-coordinated measurement and conditions", "expression" : { "items" : [ { @@ -929,7 +929,7 @@ }, { "id" : 2, - "name" : "Fever (38.0°C or higher) measurement and observation", + "name" : "Fever (38.0°C or higher) measurement and observation", "expression" : { "items" : [ { diff --git a/inst/cohorts/645.json b/inst/cohorts/645.json index ad4118fd..0be585fe 100644 --- a/inst/cohorts/645.json +++ b/inst/cohorts/645.json @@ -20,13 +20,13 @@ "ConceptSets" : [ { "id" : 0, - "name" : "Guillain-Barré syndrome", + "name" : "Guillain-Barré syndrome", "expression" : { "items" : [ { "concept" : { "CONCEPT_ID" : 4164770, - "CONCEPT_NAME" : "Guillain-Barré syndrome", + "CONCEPT_NAME" : "Guillain-Barré syndrome", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", diff --git a/inst/cohorts/720.json b/inst/cohorts/720.json index 333d8cbb..449e3835 100644 --- a/inst/cohorts/720.json +++ b/inst/cohorts/720.json @@ -633,7 +633,7 @@ "Type" : "First" }, "ExpressionLimit" : { - "Type" : "First" + "Type" : "All" }, "InclusionRules" : [ { diff --git a/inst/cohorts/723.json b/inst/cohorts/723.json index 87800836..7551adef 100644 --- a/inst/cohorts/723.json +++ b/inst/cohorts/723.json @@ -19,6 +19,294 @@ } }, "ConceptSets" : [ + { + "id" : 2, + "name" : "Disorder caused by alcohol", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 36714559, + "CONCEPT_NAME" : "Disorder caused by alcohol", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "719848005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4042860, + "CONCEPT_NAME" : "Finding relating to alcohol drinking behavior", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "228273003", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 435140, + "CONCEPT_NAME" : "Toxic effect of alcohol", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "67426006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46269816, + "CONCEPT_NAME" : "Ascites due to alcoholic cirrhosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "1082601000119104", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 37311131, + "CONCEPT_NAME" : "Alcohol detoxification", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "827094004", + "DOMAIN_ID" : "Procedure", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Procedure" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058714, + "CONCEPT_NAME" : "H/O: alcoholism", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "161466001", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46269817, + "CONCEPT_NAME" : "Ascites due to alcoholic hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "1082611000119101", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 195300, + "CONCEPT_NAME" : "Alcoholic gastritis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "2043009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 318773, + "CONCEPT_NAME" : "Dilated cardiomyopathy secondary to alcohol", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "83521008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 37016176, + "CONCEPT_NAME" : "Cerebral degeneration due to alcoholism", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "135761000119101", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 45757783, + "CONCEPT_NAME" : "Gastric hemorrhage due to alcoholic gastritis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "40241000119109", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 44788725, + "CONCEPT_NAME" : "Hazardous alcohol use", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "198421000000108", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 40484946, + "CONCEPT_NAME" : "High alcohol level in blood", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "442766007", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 3661461, + "CONCEPT_NAME" : "Adverse reaction to alcohol", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "836464003", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 44788726, + "CONCEPT_NAME" : "Harmful alcohol use", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "198431000000105", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 5, + "name" : "Hepatic coma due to viral hepatitis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 196029, + "CONCEPT_NAME" : "Hepatic coma due to viral hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "40946000", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, { "id" : 6, "name" : "Chronic Hepatic Failure", @@ -172,19 +460,19 @@ } }, { - "id" : 21, - "name" : "Acute Hepatic Failure, adding Sequela of chronic liver disease to capture potential cases in icd-9 ", + "id" : 8, + "name" : "Liver Fibrosis", "expression" : { "items" : [ { "concept" : { - "CONCEPT_ID" : 4029488, - "CONCEPT_NAME" : "Hepatic encephalopathy", + "CONCEPT_ID" : 4267417, + "CONCEPT_NAME" : "Hepatic fibrosis", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "13920009", + "CONCEPT_CODE" : "62484002", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -195,13 +483,13 @@ }, { "concept" : { - "CONCEPT_ID" : 4245975, - "CONCEPT_NAME" : "Hepatic failure", + "CONCEPT_ID" : 4058695, + "CONCEPT_NAME" : "Toxic liver disease with fibrosis and cirrhosis of liver", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "59927004", + "CONCEPT_CODE" : "197362001", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -209,16 +497,24 @@ "isExcluded" : false, "includeDescendants" : true, "includeMapped" : false - }, + } + ] + } + }, + { + "id" : 10, + "name" : "Steatosis of liver, not including non-alcoholic", + "expression" : { + "items" : [ { "concept" : { - "CONCEPT_ID" : 4340390, - "CONCEPT_NAME" : "Chronic hepatic failure", + "CONCEPT_ID" : 4026131, + "CONCEPT_NAME" : "Non-alcoholic fatty liver", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "235886005", + "CONCEPT_CODE" : "197315008", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -229,26 +525,751 @@ }, { "concept" : { - "CONCEPT_ID" : 40481531, - "CONCEPT_NAME" : "Sequela of chronic liver disease", + "CONCEPT_ID" : 4059290, + "CONCEPT_NAME" : "Steatosis of liver", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "444918006", + "CONCEPT_CODE" : "197321007", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" }, "isExcluded" : false, - "includeDescendants" : false, + "includeDescendants" : true, "includeMapped" : false } ] } }, { - "id" : 25, + "id" : 11, + "name" : "Non-Alcoholic Fatty Liver Disease", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4026131, + "CONCEPT_NAME" : "Non-alcoholic fatty liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197315008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 40484532, + "CONCEPT_NAME" : "Nonalcoholic steatohepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "442685003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 12, + "name" : "Other Liver problems", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4326594, + "CONCEPT_NAME" : "Abnormal liver function", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "75183008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058725, + "CONCEPT_NAME" : "H/O: liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "161535005", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4113557, + "CONCEPT_NAME" : "Liver problem", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "300338006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 194984, + "CONCEPT_NAME" : "Disease of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "235856003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 15, + "name" : "Malignancies that spread to liver (breast, esophageal, stomach, pancreatic, lung, kidney, melanoma, primary malignancy of liver)", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4112853, + "CONCEPT_NAME" : "Malignant tumor of breast", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "254837009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4162276, + "CONCEPT_NAME" : "Malignant melanoma", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "372244006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 40493428, + "CONCEPT_NAME" : "Malignant neoplasm of respiratory system", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "449096009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 43021272, + "CONCEPT_NAME" : "History of malignant neoplasm of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "473067009", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4101758, + "CONCEPT_NAME" : "Hepatocellular carcinoma", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "25370001", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Morph Abnormality" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 435506, + "CONCEPT_NAME" : "Benign neoplastic disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "20376005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : true, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4180793, + "CONCEPT_NAME" : "Malignant tumor of pancreas", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "363418001", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4181343, + "CONCEPT_NAME" : "Malignant tumor of esophagus", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "363402007", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 196653, + "CONCEPT_NAME" : "Malignant tumor of kidney", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "363518003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 43021272, + "CONCEPT_NAME" : "History of malignant neoplasm of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "473067009", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46273375, + "CONCEPT_NAME" : "History of malignant neoplasm of pancreas", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "73761000119105", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4178769, + "CONCEPT_NAME" : "History of malignant neoplasm of esophagus", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "429410000", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058705, + "CONCEPT_NAME" : "H/O Malignant melanoma", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "161432005", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4187205, + "CONCEPT_NAME" : "History of malignant neoplasm of lung", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "415082004", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4324190, + "CONCEPT_NAME" : "History of malignant neoplasm of breast", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "429087003", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 16, + "name" : "Alcoholic hepatitis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4340383, + "CONCEPT_NAME" : "Alcoholic hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "235875008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 201343, + "CONCEPT_NAME" : "Acute alcoholic liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "9953008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : false, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46269835, + "CONCEPT_NAME" : "Hepatic ascites due to chronic alcoholic hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "1085021000119106", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 17, + "name" : "Wilsons disease", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4229262, + "CONCEPT_NAME" : "Wilson's disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "88518009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 18, + "name" : "Autoimmune Hepatitis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 200762, + "CONCEPT_NAME" : "Autoimmune hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "408335007", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 19, + "name" : "Hemochromatosis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4163735, + "CONCEPT_NAME" : "Hemochromatosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "399187006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 20, + "name" : "Primary Biliary Cholangitis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4135822, + "CONCEPT_NAME" : "Primary biliary cholangitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "31712002", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 21, + "name" : "Acute Hepatic Failure, adding Sequela of chronic liver disease to capture potential cases in icd-9 ", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4029488, + "CONCEPT_NAME" : "Hepatic encephalopathy", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "13920009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4245975, + "CONCEPT_NAME" : "Hepatic failure", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "59927004", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4340390, + "CONCEPT_NAME" : "Chronic hepatic failure", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "235886005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : true, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 40481531, + "CONCEPT_NAME" : "Sequela of chronic liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "444918006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : false, + "includeMapped" : false + } + ] + } + }, + { + "id" : 22, + "name" : "Ascites", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 200528, + "CONCEPT_NAME" : "Ascites", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "389026000", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 23, + "name" : "Toxic Liver Disease", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4055224, + "CONCEPT_NAME" : "Toxic liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197354009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4055223, + "CONCEPT_NAME" : "Toxic hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197352008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 24, + "name" : "Portal Hypertension", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 192680, + "CONCEPT_NAME" : "Portal hypertension", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "34742003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46270558, + "CONCEPT_NAME" : "History of portal hypertension", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "59701000119109", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 25, "name" : "Liver Transplant", "expression" : { "items" : [ @@ -271,6 +1292,123 @@ } ] } + }, + { + "id" : 26, + "name" : "Neoplasm of liver", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4130518, + "CONCEPT_NAME" : "Neoplasm of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "126851005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 27, + "name" : "Cholestasis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4143915, + "CONCEPT_NAME" : "Cholestasis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "33688009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058694, + "CONCEPT_NAME" : "Toxic liver disease with cholestasis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197355005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 30, + "name" : "Hepatic Necrosis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4337543, + "CONCEPT_NAME" : "Hepatic necrosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "87248009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 31, + "name" : "Chronic Liver Disease", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4212540, + "CONCEPT_NAME" : "Chronic liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "328383001", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } } ], "QualifiedLimit" : { diff --git a/inst/cohorts/724.json b/inst/cohorts/724.json index 6a9873f6..1f8f7f7b 100644 --- a/inst/cohorts/724.json +++ b/inst/cohorts/724.json @@ -19,6 +19,269 @@ } }, "ConceptSets" : [ + { + "id" : 2, + "name" : "Disorder caused by alcohol", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 36714559, + "CONCEPT_NAME" : "Disorder caused by alcohol", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "719848005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4042860, + "CONCEPT_NAME" : "Finding relating to alcohol drinking behavior", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "228273003", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 435140, + "CONCEPT_NAME" : "Toxic effect of alcohol", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "67426006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46269816, + "CONCEPT_NAME" : "Ascites due to alcoholic cirrhosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "1082601000119104", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 37311131, + "CONCEPT_NAME" : "Alcohol detoxification", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "827094004", + "DOMAIN_ID" : "Procedure", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Procedure" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058714, + "CONCEPT_NAME" : "H/O: alcoholism", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "161466001", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46269817, + "CONCEPT_NAME" : "Ascites due to alcoholic hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "1082611000119101", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 195300, + "CONCEPT_NAME" : "Alcoholic gastritis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "2043009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 318773, + "CONCEPT_NAME" : "Dilated cardiomyopathy secondary to alcohol", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "83521008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 37016176, + "CONCEPT_NAME" : "Cerebral degeneration due to alcoholism", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "135761000119101", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 45757783, + "CONCEPT_NAME" : "Gastric hemorrhage due to alcoholic gastritis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "40241000119109", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 44788725, + "CONCEPT_NAME" : "Hazardous alcohol use", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "198421000000108", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 40484946, + "CONCEPT_NAME" : "High alcohol level in blood", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "442766007", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 3661461, + "CONCEPT_NAME" : "Adverse reaction to alcohol", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "836464003", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 44788726, + "CONCEPT_NAME" : "Harmful alcohol use", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "198431000000105", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, { "id" : 5, "name" : "Viral hepatitis", @@ -231,19 +494,19 @@ } }, { - "id" : 16, - "name" : "Alcoholic hepatitis or alcoholic liver failure ", + "id" : 8, + "name" : "Liver Fibrosis", "expression" : { "items" : [ { "concept" : { - "CONCEPT_ID" : 4340383, - "CONCEPT_NAME" : "Alcoholic hepatitis", + "CONCEPT_ID" : 4267417, + "CONCEPT_NAME" : "Hepatic fibrosis", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "235875008", + "CONCEPT_CODE" : "62484002", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -254,30 +517,13 @@ }, { "concept" : { - "CONCEPT_ID" : 201343, - "CONCEPT_NAME" : "Acute alcoholic liver disease", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "9953008", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : false, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 46269835, - "CONCEPT_NAME" : "Hepatic ascites due to chronic alcoholic hepatitis", + "CONCEPT_ID" : 4058695, + "CONCEPT_NAME" : "Toxic liver disease with fibrosis and cirrhosis of liver", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "1085021000119106", + "CONCEPT_CODE" : "197362001", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -285,33 +531,41 @@ "isExcluded" : false, "includeDescendants" : true, "includeMapped" : false - }, + } + ] + } + }, + { + "id" : 10, + "name" : "Steatosis of liver, not including non-alcoholic", + "expression" : { + "items" : [ { "concept" : { - "CONCEPT_ID" : 46269818, - "CONCEPT_NAME" : "Hepatic coma due to alcoholic liver failure", + "CONCEPT_ID" : 4026131, + "CONCEPT_NAME" : "Non-alcoholic fatty liver", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "1082621000119108", + "CONCEPT_CODE" : "197315008", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" }, - "isExcluded" : false, + "isExcluded" : true, "includeDescendants" : true, "includeMapped" : false }, { "concept" : { - "CONCEPT_ID" : 4340386, - "CONCEPT_NAME" : "Alcoholic hepatic failure", + "CONCEPT_ID" : 4059290, + "CONCEPT_NAME" : "Steatosis of liver", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "235881000", + "CONCEPT_CODE" : "197321007", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -324,14 +578,722 @@ } }, { - "id" : 25, - "name" : "Liver Transplant", + "id" : 11, + "name" : "Non-Alcoholic Fatty Liver Disease", "expression" : { "items" : [ { "concept" : { - "CONCEPT_ID" : 42537742, - "CONCEPT_NAME" : "Transplanted liver present", + "CONCEPT_ID" : 4026131, + "CONCEPT_NAME" : "Non-alcoholic fatty liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197315008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 40484532, + "CONCEPT_NAME" : "Nonalcoholic steatohepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "442685003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 12, + "name" : "Other Liver problems", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4326594, + "CONCEPT_NAME" : "Abnormal liver function", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "75183008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058725, + "CONCEPT_NAME" : "H/O: liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "161535005", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4113557, + "CONCEPT_NAME" : "Liver problem", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "300338006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 194984, + "CONCEPT_NAME" : "Disease of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "235856003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 15, + "name" : "Malignancies that spread to liver (breast, esophageal, stomach, pancreatic, lung, kidney, melanoma, primary malignancy of liver)", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4112853, + "CONCEPT_NAME" : "Malignant tumor of breast", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "254837009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4162276, + "CONCEPT_NAME" : "Malignant melanoma", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "372244006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 40493428, + "CONCEPT_NAME" : "Malignant neoplasm of respiratory system", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "449096009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 43021272, + "CONCEPT_NAME" : "History of malignant neoplasm of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "473067009", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4101758, + "CONCEPT_NAME" : "Hepatocellular carcinoma", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "25370001", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Morph Abnormality" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 435506, + "CONCEPT_NAME" : "Benign neoplastic disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "20376005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : true, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4180793, + "CONCEPT_NAME" : "Malignant tumor of pancreas", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "363418001", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4181343, + "CONCEPT_NAME" : "Malignant tumor of esophagus", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "363402007", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 196653, + "CONCEPT_NAME" : "Malignant tumor of kidney", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "363518003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 43021272, + "CONCEPT_NAME" : "History of malignant neoplasm of liver", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "473067009", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46273375, + "CONCEPT_NAME" : "History of malignant neoplasm of pancreas", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "73761000119105", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4178769, + "CONCEPT_NAME" : "History of malignant neoplasm of esophagus", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "429410000", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058705, + "CONCEPT_NAME" : "H/O Malignant melanoma", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "161432005", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4187205, + "CONCEPT_NAME" : "History of malignant neoplasm of lung", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "415082004", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4324190, + "CONCEPT_NAME" : "History of malignant neoplasm of breast", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "429087003", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 16, + "name" : "Alcoholic hepatitis or alcoholic liver failure ", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4340383, + "CONCEPT_NAME" : "Alcoholic hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "235875008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 201343, + "CONCEPT_NAME" : "Acute alcoholic liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "9953008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : false, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46269835, + "CONCEPT_NAME" : "Hepatic ascites due to chronic alcoholic hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "1085021000119106", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46269818, + "CONCEPT_NAME" : "Hepatic coma due to alcoholic liver failure", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "1082621000119108", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4340386, + "CONCEPT_NAME" : "Alcoholic hepatic failure", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "235881000", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 17, + "name" : "Wilsons disease", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4229262, + "CONCEPT_NAME" : "Wilson's disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "88518009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 18, + "name" : "Autoimmune Hepatitis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 200762, + "CONCEPT_NAME" : "Autoimmune hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "408335007", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 19, + "name" : "Hemochromatosis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4163735, + "CONCEPT_NAME" : "Hemochromatosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "399187006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 20, + "name" : "Primary Biliary Cholangitis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4135822, + "CONCEPT_NAME" : "Primary biliary cholangitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "31712002", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 21, + "name" : "\n\nHepatic failure ", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4245975, + "CONCEPT_NAME" : "Hepatic failure", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "59927004", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 22, + "name" : "Ascites", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 200528, + "CONCEPT_NAME" : "Ascites", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "389026000", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 23, + "name" : "Toxic Liver Disease", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4055224, + "CONCEPT_NAME" : "Toxic liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197354009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4055223, + "CONCEPT_NAME" : "Toxic hepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197352008", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 24, + "name" : "Portal Hypertension", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 192680, + "CONCEPT_NAME" : "Portal hypertension", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "34742003", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 46270558, + "CONCEPT_NAME" : "History of portal hypertension", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "59701000119109", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Context-dependent" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 25, + "name" : "Liver Transplant", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 42537742, + "CONCEPT_NAME" : "Transplanted liver present", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", @@ -373,6 +1335,157 @@ ] } }, + { + "id" : 27, + "name" : "Cholestasis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4143915, + "CONCEPT_NAME" : "Cholestasis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "33688009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4058694, + "CONCEPT_NAME" : "Toxic liver disease with cholestasis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "197355005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 30, + "name" : "Hepatic Necrosis", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4337543, + "CONCEPT_NAME" : "Hepatic necrosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "87248009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 31, + "name" : "Chronic Liver Disease", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4212540, + "CONCEPT_NAME" : "Chronic liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "328383001", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 32, + "name" : "Acute Hepatic Failure", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 4029488, + "CONCEPT_NAME" : "Hepatic encephalopathy", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "13920009", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4245975, + "CONCEPT_NAME" : "Hepatic failure", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "59927004", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4340390, + "CONCEPT_NAME" : "Chronic hepatic failure", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "235886005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : true, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, { "id" : 33, "name" : "Acute Hepatic Failure, adding Sequela of chronic liver disease to capture potential cases in icd-9", diff --git a/inst/cohorts/725.json b/inst/cohorts/725.json index d9cfb5e3..bb794be7 100644 --- a/inst/cohorts/725.json +++ b/inst/cohorts/725.json @@ -287,7 +287,7 @@ }, { "id" : 9, - "name" : "Kidney transplant?conditions", + "name" : "Kidney transplant conditions", "expression" : { "items" : [ { diff --git a/inst/cohorts/726.json b/inst/cohorts/726.json index 2bde2439..235f6c50 100644 --- a/inst/cohorts/726.json +++ b/inst/cohorts/726.json @@ -2046,7 +2046,7 @@ }, { "id" : 8, - "name" : "Accidental poisoning", + "name" : "Accidental poisoning", "expression" : { "items" : [ { @@ -2575,6 +2575,82 @@ ] } }, + { + "id" : 17, + "name" : "Allergy or substance adverse event (Criterion 3)", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 43021227, + "CONCEPT_NAME" : "Allergic condition", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "473011001", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4019380, + "CONCEPT_NAME" : "Atopy", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "115665000", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 4188970, + "CONCEPT_NAME" : "Chronic disease of immune function", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "413834006", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : true, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 441207, + "CONCEPT_NAME" : "Adverse reaction to drug", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "62014003", + "DOMAIN_ID" : "Observation", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, { "id" : 18, "name" : "Cardio Pulmonary Resuscitation CPR", @@ -3284,7 +3360,7 @@ } }, { - "name" : "Accidental poisoning", + "name" : "Accidental poisoning", "expression" : { "Type" : "ALL", "CriteriaList" : [ diff --git a/inst/cohorts/728.json b/inst/cohorts/728.json index 28b6ba10..cf69b0aa 100644 --- a/inst/cohorts/728.json +++ b/inst/cohorts/728.json @@ -20,7 +20,7 @@ "ConceptSets" : [ { "id" : 0, - "name" : "Autoimmune hemolytic anemia\n", + "name" : "Autoimmune hemolytic anemia\named Concept Set", "expression" : { "items" : [ { diff --git a/inst/cohorts/736.json b/inst/cohorts/736.json index 02656e32..9cb41a1e 100644 --- a/inst/cohorts/736.json +++ b/inst/cohorts/736.json @@ -719,19 +719,19 @@ } }, { - "id" : 35, - "name" : "Viral hepatitis", + "id" : 37, + "name" : "Alcoholic hepatitis or alcoholic liver failure or other alcoholic liver damage ", "expression" : { "items" : [ { "concept" : { - "CONCEPT_ID" : 4291005, - "CONCEPT_NAME" : "Viral hepatitis", + "CONCEPT_ID" : 4340383, + "CONCEPT_NAME" : "Alcoholic hepatitis", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "3738000", + "CONCEPT_CODE" : "235875008", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -739,24 +739,16 @@ "isExcluded" : false, "includeDescendants" : true, "includeMapped" : false - } - ] - } - }, - { - "id" : 36, - "name" : "Viral hepatitis", - "expression" : { - "items" : [ + }, { "concept" : { - "CONCEPT_ID" : 4291005, - "CONCEPT_NAME" : "Viral hepatitis", + "CONCEPT_ID" : 46269835, + "CONCEPT_NAME" : "Hepatic ascites due to chronic alcoholic hepatitis", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "3738000", + "CONCEPT_CODE" : "1085021000119106", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -767,13 +759,13 @@ }, { "concept" : { - "CONCEPT_ID" : 196029, - "CONCEPT_NAME" : "Hepatic coma due to viral hepatitis", + "CONCEPT_ID" : 46269818, + "CONCEPT_NAME" : "Hepatic coma due to alcoholic liver failure", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "40946000", + "CONCEPT_CODE" : "1082621000119108", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -784,13 +776,30 @@ }, { "concept" : { - "CONCEPT_ID" : 4093637, - "CONCEPT_NAME" : "Sequelae of viral hepatitis", + "CONCEPT_ID" : 4340386, + "CONCEPT_NAME" : "Alcoholic hepatic failure", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "187260009", + "CONCEPT_CODE" : "235881000", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 201343, + "CONCEPT_NAME" : "Acute alcoholic liver disease", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "9953008", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -798,24 +807,58 @@ "isExcluded" : false, "includeDescendants" : true, "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 196463, + "CONCEPT_NAME" : "Alcoholic cirrhosis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "420054005", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + }, + { + "concept" : { + "CONCEPT_ID" : 201612, + "CONCEPT_NAME" : "Alcoholic liver damage", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "41309000", + "DOMAIN_ID" : "Condition", + "VOCABULARY_ID" : "SNOMED", + "CONCEPT_CLASS_ID" : "Clinical Finding" + }, + "isExcluded" : false, + "includeDescendants" : false, + "includeMapped" : false } ] } }, { - "id" : 37, - "name" : "Alcoholic hepatitis or alcoholic liver failure", + "id" : 38, + "name" : "Hepatitis due to infection", "expression" : { "items" : [ { "concept" : { - "CONCEPT_ID" : 4340383, - "CONCEPT_NAME" : "Alcoholic hepatitis", + "CONCEPT_ID" : 4093637, + "CONCEPT_NAME" : "Sequelae of viral hepatitis", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "235875008", + "CONCEPT_CODE" : "187260009", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -826,30 +869,30 @@ }, { "concept" : { - "CONCEPT_ID" : 201343, - "CONCEPT_NAME" : "Acute alcoholic liver disease", + "CONCEPT_ID" : 194087, + "CONCEPT_NAME" : "Hepatitis due to infection", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "9953008", + "CONCEPT_CODE" : "235862008", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" }, "isExcluded" : false, - "includeDescendants" : false, + "includeDescendants" : true, "includeMapped" : false }, { "concept" : { - "CONCEPT_ID" : 46269835, - "CONCEPT_NAME" : "Hepatic ascites due to chronic alcoholic hepatitis", + "CONCEPT_ID" : 196029, + "CONCEPT_NAME" : "Hepatic coma due to viral hepatitis", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "1085021000119106", + "CONCEPT_CODE" : "40946000", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -857,16 +900,49 @@ "isExcluded" : false, "includeDescendants" : true, "includeMapped" : false - }, + } + ] + } + }, + { + "id" : 39, + "name" : "measurement suggesting viral hepatitis present ", + "expression" : { + "items" : [ { "concept" : { - "CONCEPT_ID" : 46269818, - "CONCEPT_NAME" : "Hepatic coma due to alcoholic liver failure", + "CONCEPT_ID" : 2213087, + "CONCEPT_NAME" : "Infectious agent antigen detection by immunoassay technique, (eg, enzyme immunoassay [EIA], enzyme-linked immunosorbent assay [ELISA], immunochemiluminometric assay [IMCA]) qualitative or semiquantitative, multiple-step method; hepatitis B surface antigen", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "1082621000119108", + "CONCEPT_CODE" : "87340", + "DOMAIN_ID" : "Measurement", + "VOCABULARY_ID" : "CPT4", + "CONCEPT_CLASS_ID" : "CPT4" + }, + "isExcluded" : false, + "includeDescendants" : true, + "includeMapped" : false + } + ] + } + }, + { + "id" : 40, + "name" : "steatohepatitis ", + "expression" : { + "items" : [ + { + "concept" : { + "CONCEPT_ID" : 40482277, + "CONCEPT_NAME" : "Steatohepatitis", + "STANDARD_CONCEPT" : "S", + "STANDARD_CONCEPT_CAPTION" : "Standard", + "INVALID_REASON" : "V", + "INVALID_REASON_CAPTION" : "Valid", + "CONCEPT_CODE" : "442191002", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" @@ -874,22 +950,30 @@ "isExcluded" : false, "includeDescendants" : true, "includeMapped" : false - }, + } + ] + } + }, + { + "id" : 41, + "name" : "alcohol abuse ", + "expression" : { + "items" : [ { "concept" : { - "CONCEPT_ID" : 4340386, - "CONCEPT_NAME" : "Alcoholic hepatic failure", + "CONCEPT_ID" : 433753, + "CONCEPT_NAME" : "Alcohol abuse", "STANDARD_CONCEPT" : "S", "STANDARD_CONCEPT_CAPTION" : "Standard", "INVALID_REASON" : "V", "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "235881000", + "CONCEPT_CODE" : "15167005", "DOMAIN_ID" : "Condition", "VOCABULARY_ID" : "SNOMED", "CONCEPT_CLASS_ID" : "Clinical Finding" }, "isExcluded" : false, - "includeDescendants" : true, + "includeDescendants" : false, "includeMapped" : false } ] @@ -941,24 +1025,51 @@ } }, { - "name" : "cooccurring viral hepatitis around the same time ", + "name" : "cooccurring Hepatitis due to infection around the same time ", "expression" : { - "Type" : "ALL", + "Type" : "ANY", "CriteriaList" : [ { "Criteria" : { "ConditionOccurrence" : { - "CodesetId" : 36, + "CodesetId" : 38, "ConditionTypeExclude" : false } }, "StartWindow" : { "Start" : { - "Days" : 3, + "Days" : 7, "Coeff" : -1 }, "End" : { - "Days" : 3, + "Days" : 7, + "Coeff" : 1 + }, + "UseIndexEnd" : false, + "UseEventEnd" : false + }, + "RestrictVisit" : false, + "IgnoreObservationPeriod" : false, + "Occurrence" : { + "Type" : 0, + "Count" : 0, + "IsDistinct" : false + } + }, + { + "Criteria" : { + "Measurement" : { + "CodesetId" : 39, + "MeasurementTypeExclude" : false + } + }, + "StartWindow" : { + "Start" : { + "Days" : 7, + "Coeff" : -1 + }, + "End" : { + "Days" : 7, "Coeff" : 1 }, "UseIndexEnd" : false, @@ -991,11 +1102,85 @@ }, "StartWindow" : { "Start" : { - "Days" : 3, + "Days" : 7, + "Coeff" : -1 + }, + "End" : { + "Days" : 7, + "Coeff" : 1 + }, + "UseIndexEnd" : false, + "UseEventEnd" : false + }, + "RestrictVisit" : false, + "IgnoreObservationPeriod" : false, + "Occurrence" : { + "Type" : 0, + "Count" : 0, + "IsDistinct" : false + } + } + ], + "DemographicCriteriaList" : [], + "Groups" : [] + } + }, + { + "name" : "steatohepatitis ", + "expression" : { + "Type" : "ALL", + "CriteriaList" : [ + { + "Criteria" : { + "ConditionOccurrence" : { + "CodesetId" : 40, + "ConditionTypeExclude" : false + } + }, + "StartWindow" : { + "Start" : { + "Days" : 7, + "Coeff" : -1 + }, + "End" : { + "Days" : 7, + "Coeff" : 1 + }, + "UseIndexEnd" : false, + "UseEventEnd" : false + }, + "RestrictVisit" : false, + "IgnoreObservationPeriod" : false, + "Occurrence" : { + "Type" : 0, + "Count" : 0, + "IsDistinct" : false + } + } + ], + "DemographicCriteriaList" : [], + "Groups" : [] + } + }, + { + "name" : "have no alcohol abuse around the same time ", + "expression" : { + "Type" : "ALL", + "CriteriaList" : [ + { + "Criteria" : { + "ConditionOccurrence" : { + "CodesetId" : 41, + "ConditionTypeExclude" : false + } + }, + "StartWindow" : { + "Start" : { + "Days" : 7, "Coeff" : -1 }, "End" : { - "Days" : 3, + "Days" : 7, "Coeff" : 1 }, "UseIndexEnd" : false, diff --git a/inst/cohorts/737.json b/inst/cohorts/737.json index 5b43bfd6..90454178 100644 --- a/inst/cohorts/737.json +++ b/inst/cohorts/737.json @@ -396,7 +396,7 @@ "ConceptSets" : [ { "id" : 1, - "name" : "Fever (38.0?C or higher) pre-coordinated measurement and conditions", + "name" : "Fever (38.0°C or higher) pre-coordinated measurement and conditions", "expression" : { "items" : [ { @@ -1169,7 +1169,7 @@ }, { "id" : 2, - "name" : "Fever (38.0?C or higher) measurement and observation", + "name" : "Fever (38.0°C or higher) measurement and observation", "expression" : { "items" : [ { @@ -2603,13 +2603,13 @@ "EndStrategy" : { "DateOffset" : { "DateField" : "EndDate", - "Offset" : 0 + "Offset" : 3 } }, "CensoringCriteria" : [], "CollapseSettings" : { "CollapseType" : "ERA", - "EraPad" : 0 + "EraPad" : 90 }, "CensorWindow" : {} } \ No newline at end of file diff --git a/inst/cohorts/740.json b/inst/cohorts/740.json index 744693b6..b9a47542 100644 --- a/inst/cohorts/740.json +++ b/inst/cohorts/740.json @@ -80,7 +80,7 @@ "ConceptSets" : [ { "id" : 8, - "name" : "Pulmonary Hypertension Echocardiography", + "name" : "Echocardiography", "expression" : { "items" : [ { @@ -989,7 +989,7 @@ }, { "id" : 9, - "name" : "Pulmonary Hypertension Right Heart Catheterization procedures", + "name" : "Right heart catherization (RHC)", "expression" : { "items" : [ { @@ -1447,10 +1447,10 @@ } ], "QualifiedLimit" : { - "Type" : "All" + "Type" : "First" }, "ExpressionLimit" : { - "Type" : "All" + "Type" : "First" }, "InclusionRules" : [], "CensoringCriteria" : [], diff --git a/inst/cohorts/741.json b/inst/cohorts/741.json index 67be88ac..66876d8d 100644 --- a/inst/cohorts/741.json +++ b/inst/cohorts/741.json @@ -273,541 +273,6 @@ ] } }, - { - "id" : 13, - "name" : "Bone marrow hyperplasia, infiltration including lymphoma, leukemia", - "expression" : { - "items" : [ - { - "concept" : { - "CONCEPT_ID" : 317510, - "CONCEPT_NAME" : "Leukemia", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "93143009", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 432571, - "CONCEPT_NAME" : "Malignant lymphoma", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "118600007", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 437233, - "CONCEPT_NAME" : "Multiple myeloma", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "109989006", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 3654297, - "CONCEPT_NAME" : "Anaplastic lymphoma kinase fusion oncogene negative non-small cell lung cancer", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "830055006", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 3654352, - "CONCEPT_NAME" : "Anaplastic lymphoma kinase fusion oncogene positive non-small cell lung cancer", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "830151004", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4005251, - "CONCEPT_NAME" : "Bone marrow hyperplasia", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "10138007", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4030264, - "CONCEPT_NAME" : "Chronic myelomonocytic leukemia", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "128831004", - "DOMAIN_ID" : "Observation", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Morph Abnormality" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4043444, - "CONCEPT_NAME" : "Bone marrow erythropoiesis hyperplasia", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "167922001", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4043445, - "CONCEPT_NAME" : "Bone marrow myeloid hyperplasia", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "167927007", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4043713, - "CONCEPT_NAME" : "Neuropathy due to multiple myeloma", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "230586003", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4058706, - "CONCEPT_NAME" : "History of leukemia", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "161436008", - "DOMAIN_ID" : "Observation", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Context-dependent" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4156433, - "CONCEPT_NAME" : "Myelosuppression", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "370569000", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4161020, - "CONCEPT_NAME" : "Surgical circumferential margin involved by lymphoma", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "399457008", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4161138, - "CONCEPT_NAME" : "Surgical margin uninvolved by lymphoma", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "399570001", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4161560, - "CONCEPT_NAME" : "Surgical distal margin involved by lymphoma", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "399545001", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4161665, - "CONCEPT_NAME" : "Lymphoma finding", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "399600009", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4164159, - "CONCEPT_NAME" : "Surgical margin involvement by lymphoma cannot be assessed", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "399676002", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4221907, - "CONCEPT_NAME" : "Precursor T cell lymphoblastic leukemia/lymphoblastic lymphoma", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "420890002", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4224628, - "CONCEPT_NAME" : "Amyloid light chain amyloidosis due to multiple myeloma", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "402453006", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4241295, - "CONCEPT_NAME" : "High grade (lymphoma)", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "369767007", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4295651, - "CONCEPT_NAME" : "Lymphoma stage finding", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "385389007", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4301659, - "CONCEPT_NAME" : "Lymphomatoid papulosis type C (anaplastic large-cell lymphoma-like)", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "404105000", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4301780, - "CONCEPT_NAME" : "Leukemic infiltration of skin", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "404156009", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4323972, - "CONCEPT_NAME" : "Plasma cell hyperplasia of bone marrow", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "70958007", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 4347562, - "CONCEPT_NAME" : "Splenic schistosomal giant cell lymphoma", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "240794006", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 36680584, - "CONCEPT_NAME" : "Autosomal dominant aplasia and myelodysplasia", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "778006008", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 37016161, - "CONCEPT_NAME" : "Light chain nephropathy due to multiple myeloma", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "127911000119105", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 37204530, - "CONCEPT_NAME" : "Non-chronic lymphocytic leukemia monoclonal B-cell lymphocytosis", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "783211008", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 37206728, - "CONCEPT_NAME" : "Monoclonal B-cell lymphocytosis chronic lymphocytic leukemia-type", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "786855003", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 42538056, - "CONCEPT_NAME" : "Anaplastic lymphoma kinase positive anaplastic large cell lymphoma", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "738770003", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - }, - { - "concept" : { - "CONCEPT_ID" : 45767656, - "CONCEPT_NAME" : "Gingivitis due to leukemia", - "STANDARD_CONCEPT" : "S", - "STANDARD_CONCEPT_CAPTION" : "Standard", - "INVALID_REASON" : "V", - "INVALID_REASON_CAPTION" : "Valid", - "CONCEPT_CODE" : "705127009", - "DOMAIN_ID" : "Condition", - "VOCABULARY_ID" : "SNOMED", - "CONCEPT_CLASS_ID" : "Clinical Finding" - }, - "isExcluded" : false, - "includeDescendants" : true, - "includeMapped" : false - } - ] - } - }, { "id" : 17, "name" : "Thrombotic microangiopathy or Microangiopathic hemolytic anemia", diff --git a/inst/cohorts/780.json b/inst/cohorts/780.json index 99694aa1..58c5256a 100644 --- a/inst/cohorts/780.json +++ b/inst/cohorts/780.json @@ -20,7 +20,7 @@ "ConceptSets" : [ { "id" : 0, - "name" : "Raynaud’s disease or Raynaud's phenomenon", + "name" : "Raynaud’s disease or Raynaud's phenomenon", "expression" : { "items" : [ { diff --git a/inst/cohorts/862.json b/inst/cohorts/862.json index 19611f3c..e74c024e 100644 --- a/inst/cohorts/862.json +++ b/inst/cohorts/862.json @@ -560,7 +560,7 @@ }, { "id" : 6, - "name" : "Other specific dementia diagnosis (e.g., VD, Pick’s disease, or Lewy body dementia [LBD])", + "name" : "Other specific dementia diagnosis (e.g., VD, Pick’s disease, or Lewy body dementia [LBD])", "expression" : { "items" : [ { diff --git a/inst/cohorts/InclusionRules.csv b/inst/cohorts/InclusionRules.csv index 51252123..aef8ddee 100644 --- a/inst/cohorts/InclusionRules.csv +++ b/inst/cohorts/InclusionRules.csv @@ -263,6 +263,9 @@ cohortName,ruleSequence,ruleName,cohortId 1315,0,Age above 18 years,1315 1315,1,Atrial fibrillation (any) within 14d of surgery,1315 1315,2,No prior atrial fibrillation ,1315 +1316,0,Chronic Hepatic Failure ,1316 +1316,1,History of Liver Cirrhosis,1316 +1316,2,History of Liver Transplant,1316 134,0,has at least one condition record of ADHD,134 207,0,No congenital or genetic anemia,207 207,1,No Constitutional Pure Red Cell Aplasia,207 @@ -599,8 +602,10 @@ cohortName,ruleSequence,ruleName,cohortId 733,0,has no events in prior 'clean window' - 365 days,733 735,0,have no chronic hepatic failure on the day of diagnosis ,735 736,0,have no chronic hepatic failure on the day of diagnosis ,736 -736,1,cooccurring viral hepatitis around the same time ,736 +736,1,cooccurring Hepatitis due to infection around the same time ,736 736,2,cooccurring Alcoholic hepatitis or alcoholic liver failure ,736 +736,3,steatohepatitis ,736 +736,4,have no alcohol abuse around the same time ,736 737,0,Inpatient Visit,737 737,1,No Normal Neutrophil count (ANC ),737 739,0,washout period of 365 days ,739 diff --git a/inst/sql/sql_server/10.sql b/inst/sql/sql_server/10.sql index 39941957..e8828dfa 100644 --- a/inst/sql/sql_server/10.sql +++ b/inst/sql/sql_server/10.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (31967,4158495,4101344,4012500,201218) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (31967,4158495,4101344,4012500,201218)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (31967,4158495,4101344,4012500,201218) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (31967,4158495,4101344,4012500,201218)) ) I ) C; @@ -125,49 +125,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/100.sql b/inst/sql/sql_server/100.sql index 855c0020..1c92d68a 100644 --- a/inst/sql/sql_server/100.sql +++ b/inst/sql/sql_server/100.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (378419) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (378419)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (378419) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (378419)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1000.sql b/inst/sql/sql_server/1000.sql index ddee6c13..0225535d 100644 --- a/inst/sql/sql_server/1000.sql +++ b/inst/sql/sql_server/1000.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (31967) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (31967)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (31967) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (31967)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (30284) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (30284)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (30284) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (30284)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1001.sql b/inst/sql/sql_server/1001.sql index 851bf953..d2eaee64 100644 --- a/inst/sql/sql_server/1001.sql +++ b/inst/sql/sql_server/1001.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (433595,133299) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (433595,133299)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (433595,133299) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (433595,133299)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1002.sql b/inst/sql/sql_server/1002.sql index ab2a6886..7b787a06 100644 --- a/inst/sql/sql_server/1002.sql +++ b/inst/sql/sql_server/1002.sql @@ -7,17 +7,17 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4234104) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4234104)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4234104) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4234104)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4300445,4263325,4031007,442179,37312586,138825,4304266,4064057,141374,4031006,439096,4070156,4290728,4241471,36674412,4293437,4066470,4119822,4033832,37116482,37116483,4290729,4239682,4242265,36715275,4230340,4300796,141650,4301164,4299673,4234867,36715367,4308081,42709861,4112749,4300444,4031005,4116197,4299672,4080922,4293560,4293562,4300794,4300795,4293563,4293561,37110331,4006157,37110590,4292224,4293593,4290732,42537710,4318376,42537712,42537711,4290730,4298594,4298593,4270722,42539382,42709860,4080921,4176424,4223992,4204365,4195589,4278846,4297664,4296207,4066838,4031625,4185267,4031162,4217502,4296189,4033831,4031004,4296206) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4300445,4263325,4031007,442179,37312586,138825,4304266,4064057,141374,4031006,439096,4070156,4290728,4241471,36674412,4293437,4066470,4119822,4033832,37116482,37116483,4290729,4239682,4242265,36715275,4230340,4300796,141650,4301164,4299673,4234867,36715367,4308081,42709861,4112749,4300444,4031005,4116197,4299672,4080922,4293560,4293562,4300794,4300795,4293563,4293561,37110331,4006157,37110590,4292224,4293593,4290732,42537710,4318376,42537712,42537711,4290730,4298594,4298593,4270722,42539382,42709860,4080921,4176424,4223992,4204365,4195589,4278846,4297664,4296207,4066838,4031625,4185267,4031162,4217502,4296189,4033831,4031004,4296206)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -117,49 +117,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1003.sql b/inst/sql/sql_server/1003.sql index 81ca05e0..d612166a 100644 --- a/inst/sql/sql_server/1003.sql +++ b/inst/sql/sql_server/1003.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (198985,4215373) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (198985,4215373)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (198985) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (198985)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1004.sql b/inst/sql/sql_server/1004.sql index fa5936df..c38693f4 100644 --- a/inst/sql/sql_server/1004.sql +++ b/inst/sql/sql_server/1004.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4131909) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4131909)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4131909) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4131909)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1005.sql b/inst/sql/sql_server/1005.sql index 68307101..320a06df 100644 --- a/inst/sql/sql_server/1005.sql +++ b/inst/sql/sql_server/1005.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440417,254662,444247,44834756) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440417,254662,444247,44834756)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440417,254662,444247) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440417,254662,444247)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435616,435887,196715,4062269,442055,433832,435026,440477,318137,199837,438820,4235812,195294,4187790) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435616,435887,196715,4062269,442055,433832,435026,440477,318137,199837,438820,4235812,195294,4187790)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435616,435887,196715,4062269,442055,433832,435026,440477,318137,199837,438820,4235812,195294,4187790) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435616,435887,196715,4062269,442055,433832,435026,440477,318137,199837,438820,4235812,195294,4187790)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1006.sql b/inst/sql/sql_server/1006.sql index 65de10d5..b7c8a950 100644 --- a/inst/sql/sql_server/1006.sql +++ b/inst/sql/sql_server/1006.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441408) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441408)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441408) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441408)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40480290,4216862,440785) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40480290,4216862,440785)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40480290,4216862,440785) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40480290,4216862,440785)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1007.sql b/inst/sql/sql_server/1007.sql index c786e40c..c228f988 100644 --- a/inst/sql/sql_server/1007.sql +++ b/inst/sql/sql_server/1007.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4197485,4029498) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4197485,4029498)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4197485,4029498) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4197485,4029498)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435875,380533,443700,4202330,37109948,4176652,4044227) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435875,380533,443700,4202330,37109948,4176652,4044227)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435875,380533,443700,4202330,37109948) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435875,380533,443700,4202330,37109948)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1009.sql b/inst/sql/sql_server/1009.sql index d6f1a7f1..d78b8086 100644 --- a/inst/sql/sql_server/1009.sql +++ b/inst/sql/sql_server/1009.sql @@ -7,122 +7,122 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436665,4333677,437249) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436665,4333677,437249)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436665,4333677,437249) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436665,4333677,437249)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432590,436073,435783) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432590,436073,435783)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432590,436073,435783) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432590,436073,435783)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434900,375229,4333667,441540,380986) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434900,375229,4333667,441540,380986)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434900) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434900)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (757688,800878,785788,703244,766814,735979,712615) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (757688,800878,785788,703244,766814,735979,712615)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (757688,800878,785788,703244,766814,735979,712615) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (757688,800878,785788,703244,766814,735979,712615)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (755695) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (755695)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (755695) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (755695)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372608,375239,4182210,4043378,436092,373179,435088) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372608,375239,4182210,4043378,436092,373179,435088)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4182210) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4182210)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (378726,376095,377788,372610) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (378726,376095,377788,372610)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376095,377788,372610) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376095,377788,372610)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36878783,19032424,710062,713109,750982,19039883,797617,798834,716968,717607,19023846,19037989,738156,715259,715939,755695,751412,778268,19122204,781705,19091830,794147,19110751,19007737,19080226,725131,714684,19127550,721724,19129635,36427294,722031,733896,754270,19098514,19084693,766209,739138,1398039,19041910,703470,703547,705755,19006186,743670,40234834,19008261,44507700) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36878783,19032424,710062,713109,750982,19039883,797617,798834,716968,717607,19023846,19037989,738156,715259,715939,755695,751412,778268,19122204,781705,19091830,794147,19110751,19007737,19080226,725131,714684,19127550,721724,19129635,36427294,722031,733896,754270,19098514,19084693,766209,739138,1398039,19041910,703470,703547,705755,19006186,743670,40234834,19008261,44507700)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36878783,19032424,710062,713109,750982,19039883,797617,798834,716968,717607,19023846,19037989,738156,715259,715939,755695,751412,778268,19122204,781705,19091830,794147,19110751,19007737,19080226,725131,714684,19127550,721724,19129635,36427294,722031,733896,754270,19098514,19084693,766209,739138,1398039,19041910,703470,703547,705755,19006186,743670,40234834,19008261,44507700) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36878783,19032424,710062,713109,750982,19039883,797617,798834,716968,717607,19023846,19037989,738156,715259,715939,755695,751412,778268,19122204,781705,19091830,794147,19110751,19007737,19080226,725131,714684,19127550,721724,19129635,36427294,722031,733896,754270,19098514,19084693,766209,739138,1398039,19041910,703470,703547,705755,19006186,743670,40234834,19008261,44507700)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440383) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440383)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440383) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440383)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (438727,436665,40481798,435520,4224940) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (438727,436665,40481798,435520,4224940)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (438727,436665,40481798,435520,4224940) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (438727,436665,40481798,435520,4224940)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1366610) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1366610)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1366610) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1366610)) ) I ) C; @@ -1332,49 +1332,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1010.sql b/inst/sql/sql_server/1010.sql index c7417a3d..d0d1ff9f 100644 --- a/inst/sql/sql_server/1010.sql +++ b/inst/sql/sql_server/1010.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4120445,2789432,2789464,2788927,2788960,2789179,2789211,2788671,2788704,2789460,2785921,2788955,2788988,2789207,2789428,2788699,2788732,2789462,2785923,2788957,2789177,2789209,2789430,2788701,2788734,2788926,2788959,2788483,2788703,2789433,2789465,2788928,2788961,2789180,2789212,2788672,2788705,2789461,2785922,2788956,2789176,2789208,2789429,2788700,2788733,2789463,2785924,2788958,2789178,2789210,2789431,2788702,2788925,42537745,4121274,4125659,45566479,45537646,45585326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4120445,2789432,2789464,2788927,2788960,2789179,2789211,2788671,2788704,2789460,2785921,2788955,2788988,2789207,2789428,2788699,2788732,2789462,2785923,2788957,2789177,2789209,2789430,2788701,2788734,2788926,2788959,2788483,2788703,2789433,2789465,2788928,2788961,2789180,2789212,2788672,2788705,2789461,2785922,2788956,2789176,2789208,2789429,2788700,2788733,2789463,2785924,2788958,2789178,2789210,2789431,2788702,2788925,42537745,4121274,4125659,45566479,45537646,45585326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4120445,42537745,4121274,4125659) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4120445,42537745,4121274,4125659)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108458,43527933,2617352,2721123,2108456,2108457,46272967) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108458,43527933,2617352,2721123,2108456,2108457,46272967)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108458,43527933,2617352,2721123,2108456,2108457,46272967) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108458,43527933,2617352,2721123,2108456,2108457,46272967)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434314,45595782) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434314,45595782)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434314) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434314)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44828814,45537943) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44828814,45537943)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44828814,45537943) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44828814,45537943)) ) I ) C; @@ -238,49 +238,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1011.sql b/inst/sql/sql_server/1011.sql index 38f363de..943ba81c 100644 --- a/inst/sql/sql_server/1011.sql +++ b/inst/sql/sql_server/1011.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40490918,35622279) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40490918,35622279)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40490918,35622279) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40490918,35622279)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1012.sql b/inst/sql/sql_server/1012.sql index 22603ae4..251838eb 100644 --- a/inst/sql/sql_server/1012.sql +++ b/inst/sql/sql_server/1012.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435502,4141255,4029658,35622279) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435502,4141255,4029658,35622279)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435502,4029658,35622279) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435502,4029658,35622279)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1013.sql b/inst/sql/sql_server/1013.sql index a698a47e..56ca0051 100644 --- a/inst/sql/sql_server/1013.sql +++ b/inst/sql/sql_server/1013.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437082) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437082)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437082) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437082)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4083681,4079735,37017494) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4083681,4079735,37017494)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4083681,4079735) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4083681,4079735)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1016.sql b/inst/sql/sql_server/1016.sql index 199cf531..2e4de8b2 100644 --- a/inst/sql/sql_server/1016.sql +++ b/inst/sql/sql_server/1016.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4195770,4132809,42535177,4132810,72714,4218311) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4195770,4132809,42535177,4132810,72714,4218311)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4195770,4132809,42535177,4132810,72714,4218311) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4195770,4132809,42535177,4132810,72714,4218311)) ) I ) C; @@ -106,49 +106,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1017.sql b/inst/sql/sql_server/1017.sql index 15219662..49d05e98 100644 --- a/inst/sql/sql_server/1017.sql +++ b/inst/sql/sql_server/1017.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435076,4133984,4221109,4195579,4172999,4234257) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435076,4133984,4221109,4195579,4172999,4234257)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435076,4133984) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435076,4133984)) ) I ) C; @@ -105,49 +105,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1018.sql b/inst/sql/sql_server/1018.sql index 1cc27fe8..247446f6 100644 --- a/inst/sql/sql_server/1018.sql +++ b/inst/sql/sql_server/1018.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4219853) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4219853)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4219853) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4219853)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4160887,4146936,4098017,4131917,4098754,436956) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4160887,4146936,4098017,4131917,4098754,436956)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4160887,4146936,4098017,4131917,4098754,436956) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4160887,4146936,4098017,4131917,4098754,436956)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1019.sql b/inst/sql/sql_server/1019.sql index 55c3423c..405ab104 100644 --- a/inst/sql/sql_server/1019.sql +++ b/inst/sql/sql_server/1019.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (433603,199891,4028774) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (433603,199891,4028774)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (433603,199891,4028774) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (433603,199891,4028774)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443213,437611,4067106,433260) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443213,437611,4067106,433260)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443213,437611,4067106,433260) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443213,437611,4067106,433260)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443213,437611,4067106,433260) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443213,437611,4067106,433260)) ) I ) C; @@ -224,49 +224,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1020.sql b/inst/sql/sql_server/1020.sql index 4e07c52d..c8820144 100644 --- a/inst/sql/sql_server/1020.sql +++ b/inst/sql/sql_server/1020.sql @@ -7,100 +7,100 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440383,4175329,40546087,4191716,4212469) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440383,4175329,40546087,4191716,4212469)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440383,4175329,40546087,4191716,4212469) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440383,4175329,40546087,4191716,4212469)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436665) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436665)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436665) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436665)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4286201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4286201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4286201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4286201)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (433734,435235,433742,435783,440077) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (433734,435235,433742,435783,440077)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (433734,435235,433742,435783,440077) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (433734,435235,433742,435783,440077)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434318) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434318)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434318) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434318)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4182210,372608,4043378,373179,4104700,435088,4168666,380701,374009,4009705) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4182210,372608,4043378,373179,4104700,435088,4168666,380701,374009,4009705)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4182210,4043378,373179) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4182210,4043378,373179)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4152048,376095,37116464,36717598,377788,42535731,37311999,372610) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4152048,376095,37116464,36717598,377788,42535731,37311999,372610)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4152048,376095,37116464,36717598,377788,42535731,37311999,372610) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4152048,376095,37116464,36717598,377788,42535731,37311999,372610)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436073) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436073)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436073) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436073)) ) I ) C; @@ -645,49 +645,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1021.sql b/inst/sql/sql_server/1021.sql index 82a039e2..58ab97bd 100644 --- a/inst/sql/sql_server/1021.sql +++ b/inst/sql/sql_server/1021.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (76685,4045732) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (76685,4045732)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (76685,4045732) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (76685,4045732)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4046355,4204694,4046356,4101899,81400,4046357) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4046355,4204694,4046356,4101899,81400,4046357)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4046355,4204694,4046356,4101899,81400,4046357) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4046355,4204694,4046356,4101899,81400,4046357)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (759740) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (759740)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (759740) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (759740)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C; @@ -412,49 +412,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1022.sql b/inst/sql/sql_server/1022.sql index 124f3300..44a6ec48 100644 --- a/inst/sql/sql_server/1022.sql +++ b/inst/sql/sql_server/1022.sql @@ -7,55 +7,55 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44798390,4287868,4220636,4115402,4204989,40481897,4312903,4104980,4113205,44810442,4045772,4099949,435524,4132137,4175644) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44798390,4287868,4220636,4115402,4204989,40481897,4312903,4104980,4113205,44810442,4045772,4099949,435524,4132137,4175644)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44798390,4287868,4220636,4115402,4204989,40481897,4312903,4104980,4113205,44810442,4045772,4099949,435524,4132137,4175644) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44798390,4287868,4220636,4115402,4204989,40481897,4312903,4104980,4113205,44810442,4045772,4099949,435524,4132137,4175644)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46269699,375794,4044240,4121694,35623409,36716323,43021812,43021860,43020464,43020467,37110489,4009650,4210451,437854,4086499,37018652,37110294,37110295,43531585,439794,37110296,37016175,4331287,319793,43530733,42535241,43530616,44784627,44784625,435792,444300,36714658,438134,37016174,434891,436669,4143701,4047912,439150,37110490,4180282,43531627,40483183,40482713,40481299,37016173,434172,37110297,4043564,436100,42536721,43531721,4137847,42872389,42872388,442588,4230779,40481372,40482247,43531594,440087,37016172,37110493,434904,43022069,4262584,4262580,443528,40482198,762958,762960,762959,4181303,4239812,37109055,313459,37119151,40483220,4139210,435238,43021811,37110298,443393,437260) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46269699,375794,4044240,4121694,35623409,36716323,43021812,43021860,43020464,43020467,37110489,4009650,4210451,437854,4086499,37018652,37110294,37110295,43531585,439794,37110296,37016175,4331287,319793,43530733,42535241,43530616,44784627,44784625,435792,444300,36714658,438134,37016174,434891,436669,4143701,4047912,439150,37110490,4180282,43531627,40483183,40482713,40481299,37016173,434172,37110297,4043564,436100,42536721,43531721,4137847,42872389,42872388,442588,4230779,40481372,40482247,43531594,440087,37016172,37110493,434904,43022069,4262584,4262580,443528,40482198,762958,762960,762959,4181303,4239812,37109055,313459,37119151,40483220,4139210,435238,43021811,37110298,443393,437260)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46269699,375794,4044240,4121694,35623409,36716323,43021812,43021860,43020464,43020467,37110489,4009650,4210451,437854,4086499,37018652,37110294,37110295,43531585,439794,37110296,37016175,4331287,319793,43530733,42535241,43530616,44784627,44784625,435792,444300,36714658,438134,37016174,434891,436669,4143701,4047912,439150,37110490,4180282,43531627,40483183,40482713,40481299,37016173,434172,37110297,4043564,436100,42536721,43531721,4137847,42872389,42872388,442588,4230779,40481372,40482247,43531594,440087,37016172,37110493,434904,43022069,4262584,4262580,443528,40482198,762958,762960,762959,4181303,4239812,37109055,313459,37119151,40483220,4139210,435238,43021811,37110298,443393,437260) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46269699,375794,4044240,4121694,35623409,36716323,43021812,43021860,43020464,43020467,37110489,4009650,4210451,437854,4086499,37018652,37110294,37110295,43531585,439794,37110296,37016175,4331287,319793,43530733,42535241,43530616,44784627,44784625,435792,444300,36714658,438134,37016174,434891,436669,4143701,4047912,439150,37110490,4180282,43531627,40483183,40482713,40481299,37016173,434172,37110297,4043564,436100,42536721,43531721,4137847,42872389,42872388,442588,4230779,40481372,40482247,43531594,440087,37016172,37110493,434904,43022069,4262584,4262580,443528,40482198,762958,762960,762959,4181303,4239812,37109055,313459,37119151,40483220,4139210,435238,43021811,37110298,443393,437260)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440383,4175329,40546087,4191716,4212469) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440383,4175329,40546087,4191716,4212469)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440383,4175329,40546087,4191716,4212469) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440383,4175329,40546087,4191716,4212469)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -308,49 +308,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1023.sql b/inst/sql/sql_server/1023.sql index ff101eee..6b2c8205 100644 --- a/inst/sql/sql_server/1023.sql +++ b/inst/sql/sql_server/1023.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439235,4181216,444362,4273391,440925,4303690,4009713,4219484,435446,4058281,4021339,4216115,4092411,4152408) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439235,4181216,444362,4273391,440925,4303690,4009713,4219484,435446,4058281,4021339,4216115,4092411,4152408)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439235,4181216,444362,4273391,440925,4303690,4009713,4219484,435446,4058281,4021339,4216115,4092411,4152408) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439235,4181216,444362,4273391,440925,4303690,4009713,4219484,435446,4058281,4021339,4216115,4092411,4152408)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440383,4175329,40546087,4191716,4212469) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440383,4175329,40546087,4191716,4212469)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440383,4175329,40546087,4191716,4212469) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440383,4175329,40546087,4191716,4212469)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -424,49 +424,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1024.sql b/inst/sql/sql_server/1024.sql index 60c5dc55..638155f2 100644 --- a/inst/sql/sql_server/1024.sql +++ b/inst/sql/sql_server/1024.sql @@ -7,39 +7,39 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4102935) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4102935)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440383,4175329,40546087,4191716,4212469) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440383,4175329,40546087,4191716,4212469)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440383,4175329,40546087,4191716,4212469) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440383,4175329,40546087,4191716,4212469)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -292,49 +292,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1025.sql b/inst/sql/sql_server/1025.sql index 62fa1b4f..0ea9fe49 100644 --- a/inst/sql/sql_server/1025.sql +++ b/inst/sql/sql_server/1025.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44813054,40480225,4262921,45765570,4047120,4085043) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44813054,40480225,4262921,45765570,4047120,4085043)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44813054,40480225,4262921,45765570,4047120,4085043) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44813054,40480225,4262921,45765570,4047120,4085043)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (714785,742185,719311,705944,709567,19090984,1398937,731533,19008261,1344965,704053,710650,37002370,1537411) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (714785,742185,719311,705944,709567,19090984,1398937,731533,19008261,1344965,704053,710650,37002370,1537411)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (714785,742185,719311,705944,709567,19090984,1398937,731533,19008261,1344965,704053,710650,37002370,1537411) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (714785,742185,719311,705944,709567,19090984,1398937,731533,19008261,1344965,704053,710650,37002370,1537411)) ) I ) C; @@ -256,49 +256,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1026.sql b/inst/sql/sql_server/1026.sql index e2028170..390938fc 100644 --- a/inst/sql/sql_server/1026.sql +++ b/inst/sql/sql_server/1026.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374919,44784474,765565,761978) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374919,44784474,765565,761978)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374919,44784474,765565,761978) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374919,44784474,765565,761978)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1027.sql b/inst/sql/sql_server/1027.sql index 7a7ec84f..30fe98d8 100644 --- a/inst/sql/sql_server/1027.sql +++ b/inst/sql/sql_server/1027.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4002356,138379) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4002356,138379)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4002356,138379) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4002356,138379)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4038845,4173974,4001331,4079683,44783718) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4038845,4173974,4001331,4079683,44783718)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4038845,4173974,4001331,4079683,44783718) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4038845,4173974,4001331,4079683,44783718)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1028.sql b/inst/sql/sql_server/1028.sql index a0582a2a..90129980 100644 --- a/inst/sql/sql_server/1028.sql +++ b/inst/sql/sql_server/1028.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197508,4177230,192855) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197508,4177230,192855)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197508,4177230,192855) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197508,4177230,192855)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4312149,4312802,4313210,4314336,4313925,4314491,4313221,4313222,4314494,37016119,4113112,4111028,37116429,36713671,4080733,4175529,4315813) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4312149,4312802,4313210,4314336,4313925,4314491,4313221,4313222,4314494,37016119,4113112,4111028,37116429,36713671,4080733,4175529,4315813)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4312149,4312802,4313210,4314336,4313925,4314491,4313221,4313222,4314494,37016119,4113112,4111028,37116429,36713671,4080733,4175529,4315813) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4312149,4312802,4313210,4314336,4313925,4314491,4313221,4313222,4314494,37016119,4113112,4111028,37116429,36713671,4080733,4175529,4315813)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1029.sql b/inst/sql/sql_server/1029.sql index b8b52b35..130e9771 100644 --- a/inst/sql/sql_server/1029.sql +++ b/inst/sql/sql_server/1029.sql @@ -7,28 +7,28 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45590943) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45590943)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40481901) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40481901)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40481901) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40481901)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440058,435758,440058,135204,194878,40487528,135759) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440058,435758,440058,135204,194878,40487528,135759)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440058,435758,440058,135204,194878,40487528,135759) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440058,435758,440058,135204,194878,40487528,135759)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -135,49 +135,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1030.sql b/inst/sql/sql_server/1030.sql index 21dbbca1..a2fc0998 100644 --- a/inst/sql/sql_server/1030.sql +++ b/inst/sql/sql_server/1030.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4163261) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163261)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4163261) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163261)) ) I ) C; @@ -105,49 +105,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1031.sql b/inst/sql/sql_server/1031.sql index 5e7c290a..78719709 100644 --- a/inst/sql/sql_server/1031.sql +++ b/inst/sql/sql_server/1031.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43020660,4185932,37109911,4177223,4127089,37109912,42537729,438172,316995,4108678,4124687,45766165,4108220,4058723,44783188,4080593,4108680,37109910,318443,44809539,45766212,37312532) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43020660,4185932,37109911,4177223,4127089,37109912,42537729,438172,316995,4108678,4124687,45766165,4108220,4058723,44783188,4080593,4108680,37109910,318443,44809539,45766212,37312532)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43020660,4185932,37109911,4177223,4127089,37109912,42537729,438172,316995,4108678,4124687,45766165,4108220,4058723,44783188,4080593,4108680,37109910,318443,44809539,45766212) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43020660,4185932,37109911,4177223,4127089,37109912,42537729,438172,316995,4108678,4124687,45766165,4108220,4058723,44783188,4080593,4108680,37109910,318443,44809539,45766212)) ) I ) C; @@ -118,49 +118,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1032.sql b/inst/sql/sql_server/1032.sql index bb635d23..84828181 100644 --- a/inst/sql/sql_server/1032.sql +++ b/inst/sql/sql_server/1032.sql @@ -7,67 +7,67 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443238,201820,442793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443238,201820,442793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443238,201820,442793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443238,201820,442793)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40484648,201254,435216,201254,195771,4058243,761051) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40484648,201254,435216,201254,195771,4058243,761051)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40484648,201254,435216,201254,195771,4058243,761051) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40484648,201254,435216,201254,195771,4058243,761051)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195771) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195771)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (195771) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (195771)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37059902,4184637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37059902,4184637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37059902,4184637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37059902,4184637)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21600744) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21600744)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21600744) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21600744)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216)) ) I ) C; @@ -363,49 +363,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1033.sql b/inst/sql/sql_server/1033.sql index 51c2820a..08697bc5 100644 --- a/inst/sql/sql_server/1033.sql +++ b/inst/sql/sql_server/1033.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4276586,44783356,439727) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4276586,44783356,439727)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4276586,44783356,439727) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4276586,44783356,439727)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013105,432554) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013105,432554)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013105,432554) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013105,432554)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1736971,1789428,1727223,964008,42874220,1756831,1747157,1724869,43560385,35200446,1738135,42874212,1703069,1717002,1758536,1736829,42544019,1711523,1704183,1738170,1787101,1715472,1769389,1712889,40238930,1748921,1746244,1781406,1710281,1736999,1724827,1710612) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1736971,1789428,1727223,964008,42874220,1756831,1747157,1724869,43560385,35200446,1738135,42874212,1703069,1717002,1758536,1736829,42544019,1711523,1704183,1738170,1787101,1715472,1769389,1712889,40238930,1748921,1746244,1781406,1710281,1736999,1724827,1710612)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1736971,1789428,1727223,964008,42874220,1756831,1747157,1724869,43560385,35200446,1738135,42874212,1703069,1717002,1758536,1736829,42544019,1711523,1704183,1738170,1787101,1715472,1769389,1712889,40238930,1748921,1746244,1781406,1710281,1736999,1724827,1710612) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1736971,1789428,1727223,964008,42874220,1756831,1747157,1724869,43560385,35200446,1738135,42874212,1703069,1717002,1758536,1736829,42544019,1711523,1704183,1738170,1787101,1715472,1769389,1712889,40238930,1748921,1746244,1781406,1710281,1736999,1724827,1710612)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2212882,2212884,2212876,40792567,40792354,42529218,4038851,40762145,21491519,21493662,21491520,21491518,3030461,21491517,3044830,2213092,42742380,2213141,2213140,2213142) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2212882,2212884,2212876,40792567,40792354,42529218,4038851,40762145,21491519,21493662,21491520,21491518,3030461,21491517,3044830,2213092,42742380,2213141,2213140,2213142)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2212882,2212884,2212876,40792567,40792354,42529218,4038851,40762145,21491519,21493662,21491520,21491518,3030461,21491517,3044830,2213092,42742380,2213141,2213140,2213142) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2212882,2212884,2212876,40792567,40792354,42529218,4038851,40762145,21491519,21493662,21491520,21491518,3030461,21491517,3044830,2213092,42742380,2213141,2213140,2213142)) ) I ) C; @@ -336,49 +336,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1034.sql b/inst/sql/sql_server/1034.sql index 76b544a9..5095ed1e 100644 --- a/inst/sql/sql_server/1034.sql +++ b/inst/sql/sql_server/1034.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437222) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437222)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437222) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437222)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1035.sql b/inst/sql/sql_server/1035.sql index a5cb8dbb..3d653100 100644 --- a/inst/sql/sql_server/1035.sql +++ b/inst/sql/sql_server/1035.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1395058,974166,978555,907013) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1395058,974166,978555,907013)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1395058,974166,978555,907013) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1395058,974166,978555,907013)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1036.sql b/inst/sql/sql_server/1036.sql index de1c8b96..32e10555 100644 --- a/inst/sql/sql_server/1036.sql +++ b/inst/sql/sql_server/1036.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1037.sql b/inst/sql/sql_server/1037.sql index aa03b9d4..60310240 100644 --- a/inst/sql/sql_server/1037.sql +++ b/inst/sql/sql_server/1037.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (793293,43526465,44785829,45774751) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (793293,43526465,44785829,45774751)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (793293,43526465,44785829,45774751) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (793293,43526465,44785829,45774751)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1038.sql b/inst/sql/sql_server/1038.sql index 22953d89..df120acf 100644 --- a/inst/sql/sql_server/1038.sql +++ b/inst/sql/sql_server/1038.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45774435,44816332,40170911,793143,1583722,44506754) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45774435,44816332,40170911,793143,1583722,44506754)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45774435,44816332,40170911,793143,1583722,44506754) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45774435,44816332,40170911,793143,1583722,44506754)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1039.sql b/inst/sql/sql_server/1039.sql index f6e9d325..17ad3fec 100644 --- a/inst/sql/sql_server/1039.sql +++ b/inst/sql/sql_server/1039.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40166035,40239216,43013884,19122137,1580747) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40166035,40239216,43013884,19122137,1580747)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40166035,40239216,43013884,19122137,1580747) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40166035,40239216,43013884,19122137,1580747)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1040.sql b/inst/sql/sql_server/1040.sql index 7d5dbc56..40e741e2 100644 --- a/inst/sql/sql_server/1040.sql +++ b/inst/sql/sql_server/1040.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (19041065,912263,937368,1151789,1119119) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (19041065,912263,937368,1151789,1119119)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1041.sql b/inst/sql/sql_server/1041.sql index 58a46b5d..ea78808c 100644 --- a/inst/sql/sql_server/1041.sql +++ b/inst/sql/sql_server/1041.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1510627,40244464,42904205) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1510627,40244464,42904205)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1510627,40244464,42904205) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1510627,40244464,42904205)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1042.sql b/inst/sql/sql_server/1042.sql index 49233e91..543f7640 100644 --- a/inst/sql/sql_server/1042.sql +++ b/inst/sql/sql_server/1042.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35200139,1511348,1593700) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35200139,1511348,1593700)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35200139,1511348,1593700) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35200139,1511348,1593700)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1043.sql b/inst/sql/sql_server/1043.sql index 0d2d0c39..3ad581fc 100644 --- a/inst/sql/sql_server/1043.sql +++ b/inst/sql/sql_server/1043.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1721543,35198003,1747032,19041153,1592954,1716721,923081,19050750,1712549,35197938,36878831,40161662,43009030,1743222,35834909,35198165,1789276,1797513,1742253,1716903,35197897,19027679,1733765,1707800) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1721543,35198003,1747032,19041153,1592954,1716721,923081,19050750,1712549,35197938,36878831,40161662,43009030,1743222,35834909,35198165,1789276,1797513,1742253,1716903,35197897,19027679,1733765,1707800)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1721543,35198003,1747032,19041153,1592954,1716721,923081,19050750,1712549,35197938,36878831,40161662,43009030,1743222,35834909,35198165,1789276,1797513,1742253,1716903,35197897,19027679,1733765,1707800) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1721543,35198003,1747032,19041153,1592954,1716721,923081,19050750,1712549,35197938,36878831,40161662,43009030,1743222,35834909,35198165,1789276,1797513,1742253,1716903,35197897,19027679,1733765,1707800)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42613186,2909524,40161667,40028718,40028720,35860696,35858962,40059607,35861002,40001157,40059318,40057467,40066892,40066893,43695029,40069651,35851732,42961482,42479725,40028359,42629035,43258666,40028361,40160496,35605255,35860990,35144130,40069655,42965658,36269500,35857832,35857838,35860698,35862078,35862084,2052955,43678347,35154779,35141912,35861725,35851383,35851392,35856292) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42613186,2909524,40161667,40028718,40028720,35860696,35858962,40059607,35861002,40001157,40059318,40057467,40066892,40066893,43695029,40069651,35851732,42961482,42479725,40028359,42629035,43258666,40028361,40160496,35605255,35860990,35144130,40069655,42965658,36269500,35857832,35857838,35860698,35862078,35862084,2052955,43678347,35154779,35141912,35861725,35851383,35851392,35856292)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42613186,2909524,40161667,40028718,40028720,35860696,35858962,40059607,35861002,40001157,40059318,40057467,40066892,40066893,43695029,40069651,35851732,42961482,42479725,40028359,42629035,43258666,40028361,40160496,35605255,35860990,35144130,40069655,42965658,36269500,35857832,35857838,35860698,35862078,35862084,2052955,43678347,35154779,35141912,35861725,35851383,35851392,35856292) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42613186,2909524,40161667,40028718,40028720,35860696,35858962,40059607,35861002,40001157,40059318,40057467,40066892,40066893,43695029,40069651,35851732,42961482,42479725,40028359,42629035,43258666,40028361,40160496,35605255,35860990,35144130,40069655,42965658,36269500,35857832,35857838,35860698,35862078,35862084,2052955,43678347,35154779,35141912,35861725,35851383,35851392,35856292)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -124,38 +124,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -184,49 +166,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1044.sql b/inst/sql/sql_server/1044.sql index beaa70c6..82869789 100644 --- a/inst/sql/sql_server/1044.sql +++ b/inst/sql/sql_server/1044.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40798709,1796435,40798704,19072255,43008993,19028286,19072857,1773402,19028288,1774470,1774932,19051271,1775741,43009045,1749008,1738366,43009083,19051345,1776684,35198137,43008994,1749083,1777254,1777806,1778162,1786621,19052683,19086759,19086790,1786842,43009087,1708100,19126622,1768849,1769535,19070174,19070680,40798700,1771162,43009082,43009044,1796458,1747005,19028241) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40798709,1796435,40798704,19072255,43008993,19028286,19072857,1773402,19028288,1774470,1774932,19051271,1775741,43009045,1749008,1738366,43009083,19051345,1776684,35198137,43008994,1749083,1777254,1777806,1778162,1786621,19052683,19086759,19086790,1786842,43009087,1708100,19126622,1768849,1769535,19070174,19070680,40798700,1771162,43009082,43009044,1796458,1747005,19028241)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40798709,1796435,40798704,19072255,43008993,19028286,19072857,1773402,19028288,1774470,1774932,19051271,1775741,43009045,1749008,1738366,43009083,19051345,1776684,35198137,43008994,1749083,1777254,1777806,1778162,1786621,19052683,19086759,19086790,1786842,43009087,1708100,19126622,1768849,1769535,19070174,19070680,40798700,1771162,43009082,43009044,1796458,1747005,19028241) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40798709,1796435,40798704,19072255,43008993,19028286,19072857,1773402,19028288,1774470,1774932,19051271,1775741,43009045,1749008,1738366,43009083,19051345,1776684,35198137,43008994,1749083,1777254,1777806,1778162,1786621,19052683,19086759,19086790,1786842,43009087,1708100,19126622,1768849,1769535,19070174,19070680,40798700,1771162,43009082,43009044,1796458,1747005,19028241)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35129269,35160132,2035392,21132307,40020954) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35129269,35160132,2035392,21132307,40020954)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35129269,35160132,2035392,21132307,40020954) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35129269,35160132,2035392,21132307,40020954)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -124,38 +124,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -184,49 +166,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1045.sql b/inst/sql/sql_server/1045.sql index 6db36f33..4181a4b7 100644 --- a/inst/sql/sql_server/1045.sql +++ b/inst/sql/sql_server/1045.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40081374,36882762,40220482,35153537,40147374,40081379,40081388,1705674) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40081374,36882762,40220482,35153537,40147374,40081379,40081388,1705674)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40081374,36882762,40220482,35153537,40147374,40081379,40081388,1705674) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40081374,36882762,40220482,35153537,40147374,40081379,40081388,1705674)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40073114,40073115,40180925) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40073114,40073115,40180925)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40073114,40073115,40180925) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40073114,40073115,40180925)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -124,38 +124,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -184,49 +166,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1046.sql b/inst/sql/sql_server/1046.sql index 8499ba7b..31e886d2 100644 --- a/inst/sql/sql_server/1046.sql +++ b/inst/sql/sql_server/1046.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1395058,974166,978555,907013) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1395058,974166,978555,907013)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1395058,974166,978555,907013) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1395058,974166,978555,907013)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (320128,316866) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (320128,316866)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (320128,316866) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (320128,316866)) ) I ) C; @@ -174,38 +174,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -234,49 +216,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1047.sql b/inst/sql/sql_server/1047.sql index dc01d25b..82c61a71 100644 --- a/inst/sql/sql_server/1047.sql +++ b/inst/sql/sql_server/1047.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1332418,1353776,1326012,1318137,1318853,1319880) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1332418,1353776,1326012,1318137,1318853,1319880)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1332418,1353776,1326012,1318137,1318853,1319880) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1332418,1353776,1326012,1318137,1318853,1319880)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (320128,316866) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (320128,316866)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (320128,316866) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (320128,316866)) ) I ) C; @@ -174,38 +174,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -234,49 +216,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1048.sql b/inst/sql/sql_server/1048.sql index ac154fa3..3e4017ba 100644 --- a/inst/sql/sql_server/1048.sql +++ b/inst/sql/sql_server/1048.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1332418,1353776,1326012,1318137,1318853,1319880) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1332418,1353776,1326012,1318137,1318853,1319880)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1332418,1353776,1326012,1318137,1318853,1319880) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1332418,1353776,1326012,1318137,1318853,1319880)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1049.sql b/inst/sql/sql_server/1049.sql index 4199f21e..01411dbe 100644 --- a/inst/sql/sql_server/1049.sql +++ b/inst/sql/sql_server/1049.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (320128,316866) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (320128,316866)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (320128,316866) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (320128,316866)) ) I ) C; @@ -174,38 +174,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -234,49 +216,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1050.sql b/inst/sql/sql_server/1050.sql index 7012bac5..a71e15d2 100644 --- a/inst/sql/sql_server/1050.sql +++ b/inst/sql/sql_server/1050.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442310,4195785,444031,443587,439846,443580,444101,319835,43020910) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442310,4195785,444031,443587,439846,443580,444101,319835,43020910)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442310,4195785,444031,443587,439846,443580,444101,319835,43020910) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442310,4195785,444031,443587,439846,443580,444101,319835,43020910)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37309625,4215446,4233424,4284562,4014159,44782713,312927,608954) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37309625,4215446,4233424,4284562,4014159,44782713,312927,608954)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37309625,4215446,4233424,4284562,4014159,44782713,312927,608954) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37309625,4215446,4233424,4284562,4014159,44782713,312927,608954)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -185,38 +185,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -245,49 +227,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1051.sql b/inst/sql/sql_server/1051.sql index 24e5f4c2..28aab04a 100644 --- a/inst/sql/sql_server/1051.sql +++ b/inst/sql/sql_server/1051.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (793293,43526465,44785829,45774751) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (793293,43526465,44785829,45774751)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (793293,43526465,44785829,45774751) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (793293,43526465,44785829,45774751)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442310,4195785,444031,443587,439846,443580,444101,319835,43020910) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442310,4195785,444031,443587,439846,443580,444101,319835,43020910)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442310,4195785,444031,443587,439846,443580,444101,319835,43020910) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442310,4195785,444031,443587,439846,443580,444101,319835,43020910)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37309625,4215446,4233424,4284562,4014159,44782713,312927,608954) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37309625,4215446,4233424,4284562,4014159,44782713,312927,608954)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37309625,4215446,4233424,4284562,4014159,44782713,312927,608954) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37309625,4215446,4233424,4284562,4014159,44782713,312927,608954)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -185,38 +185,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -245,49 +227,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1052.sql b/inst/sql/sql_server/1052.sql index e3f063ef..9a7131c2 100644 --- a/inst/sql/sql_server/1052.sql +++ b/inst/sql/sql_server/1052.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1319998,1314002,1322081,1338005,1346823,1386957,1307046,1313200,1314577,1327978,1345858,1353766)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C; @@ -269,38 +269,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -329,49 +311,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1053.sql b/inst/sql/sql_server/1053.sql index 32016abf..cfe5d35f 100644 --- a/inst/sql/sql_server/1053.sql +++ b/inst/sql/sql_server/1053.sql @@ -7,56 +7,56 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45774435,44816332,40170911,793143,1583722,44506754) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45774435,44816332,40170911,793143,1583722,44506754)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45774435,44816332,40170911,793143,1583722,44506754) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45774435,44816332,40170911,793143,1583722,44506754)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443238,201820,442793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443238,201820,442793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443238,201820,442793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443238,201820,442793)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40484648,201254,435216,201254,195771,4058243,761051) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40484648,201254,435216,201254,195771,4058243,761051)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40484648,201254,435216,201254,195771,4058243,761051) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40484648,201254,435216,201254,195771,4058243,761051)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195771) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195771)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (195771) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (195771)) ) I ) C; @@ -356,38 +356,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -416,49 +398,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1054.sql b/inst/sql/sql_server/1054.sql index 00f9bce5..c6ef4d64 100644 --- a/inst/sql/sql_server/1054.sql +++ b/inst/sql/sql_server/1054.sql @@ -7,56 +7,56 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (793293,43526465,44785829,45774751) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (793293,43526465,44785829,45774751)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (793293,43526465,44785829,45774751) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (793293,43526465,44785829,45774751)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443238,201820,442793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443238,201820,442793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443238,201820,442793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443238,201820,442793)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40484648,201254,435216,201254,195771,4058243,761051) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40484648,201254,435216,201254,195771,4058243,761051)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40484648,201254,435216,201254,195771,4058243,761051) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40484648,201254,435216,201254,195771,4058243,761051)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195771) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195771)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (195771) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (195771)) ) I ) C; @@ -356,38 +356,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -416,49 +398,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1055.sql b/inst/sql/sql_server/1055.sql index ba5af120..2dfc55cb 100644 --- a/inst/sql/sql_server/1055.sql +++ b/inst/sql/sql_server/1055.sql @@ -7,56 +7,56 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40166035,40239216,43013884,19122137,1580747) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40166035,40239216,43013884,19122137,1580747)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40166035,40239216,43013884,19122137,1580747) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40166035,40239216,43013884,19122137,1580747)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443238,201820,442793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443238,201820,442793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443238,201820,442793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443238,201820,442793)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40484648,201254,435216,201254,195771,4058243,761051) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40484648,201254,435216,201254,195771,4058243,761051)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40484648,201254,435216,201254,195771,4058243,761051) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40484648,201254,435216,201254,195771,4058243,761051)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195771) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195771)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (195771) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (195771)) ) I ) C; @@ -356,38 +356,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -416,49 +398,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1056.sql b/inst/sql/sql_server/1056.sql index fabe1227..d83c4627 100644 --- a/inst/sql/sql_server/1056.sql +++ b/inst/sql/sql_server/1056.sql @@ -7,55 +7,55 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45774435,44816332,40170911,793143,1583722,44506754) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45774435,44816332,40170911,793143,1583722,44506754)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45774435,44816332,40170911,793143,1583722,44506754) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45774435,44816332,40170911,793143,1583722,44506754)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4215968,4176962) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4215968,4176962)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4215968,4176962) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4215968,4176962)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3038553,36304833) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3038553,36304833)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3038553,36304833) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3038553,36304833)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3025315,4099154,3013762,3027492,3023166) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3025315,4099154,3013762,3027492,3023166)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3025315,4099154,3013762,3027492,3023166) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3025315,4099154,3013762,3027492,3023166)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4264825) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4264825)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4264825) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4264825)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -305,38 +305,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -365,49 +347,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1057.sql b/inst/sql/sql_server/1057.sql index d442bc0d..2628ea39 100644 --- a/inst/sql/sql_server/1057.sql +++ b/inst/sql/sql_server/1057.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35200139,1511348,1593700) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35200139,1511348,1593700)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35200139,1511348,1593700) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35200139,1511348,1593700)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140168,4307925,4063431) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140168,4307925,4063431)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4307925,4063431) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4307925,4063431)) ) I ) C; @@ -174,38 +174,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -234,49 +216,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1058.sql b/inst/sql/sql_server/1058.sql index 5f783a5a..93b25ab7 100644 --- a/inst/sql/sql_server/1058.sql +++ b/inst/sql/sql_server/1058.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (19041065,912263,937368,1151789,1119119) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (19041065,912263,937368,1151789,1119119)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140168,4307925,4063431) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140168,4307925,4063431)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4307925,4063431) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4307925,4063431)) ) I ) C; @@ -174,38 +174,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -234,49 +216,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1059.sql b/inst/sql/sql_server/1059.sql index 78f9ddfa..7cdb87c6 100644 --- a/inst/sql/sql_server/1059.sql +++ b/inst/sql/sql_server/1059.sql @@ -7,51 +7,51 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (19041065,912263,937368,1151789,1119119) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (19041065,912263,937368,1151789,1119119)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81931,40319772) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81931,40319772)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81931,40319772) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81931,40319772)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4025831) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4025831)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140168) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140168)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140168) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140168)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (80809,81097,72714,75621,72705,75622,75897,79903,4153359,437082) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (80809,81097,72714,75621,72705,75622,75897,79903,4153359,437082)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (80809,81097,72714,75621,72705,75622,75897,79903,4153359,437082) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (80809,81097,72714,75621,72705,75622,75897,79903,4153359,437082)) ) I ) C; @@ -299,38 +299,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -359,49 +341,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1060.sql b/inst/sql/sql_server/1060.sql index 23c6424d..79702b87 100644 --- a/inst/sql/sql_server/1060.sql +++ b/inst/sql/sql_server/1060.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1721543,35198003,1747032,19041153,1592954,1716721,923081,19050750,1712549,35197938,36878831,40161662,43009030,1743222,35834909,35198165,1789276,1797513,1742253,1716903,35197897,19027679,1733765,1707800) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1721543,35198003,1747032,19041153,1592954,1716721,923081,19050750,1712549,35197938,36878831,40161662,43009030,1743222,35834909,35198165,1789276,1797513,1742253,1716903,35197897,19027679,1733765,1707800)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1721543,35198003,1747032,19041153,1592954,1716721,923081,19050750,1712549,35197938,36878831,40161662,43009030,1743222,35834909,35198165,1789276,1797513,1742253,1716903,35197897,19027679,1733765,1707800) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1721543,35198003,1747032,19041153,1592954,1716721,923081,19050750,1712549,35197938,36878831,40161662,43009030,1743222,35834909,35198165,1789276,1797513,1742253,1716903,35197897,19027679,1733765,1707800)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42613186,2909524,40161667,40028718,40028720,35860696,35858962,40059607,35861002,40001157,40059318,40057467,40066892,40066893,43695029,40069651,35851732,42961482,42479725,40028359,42629035,43258666,40028361,40160496,35605255,35860990,35144130,40069655,42965658,36269500,35857832,35857838,35860698,35862078,35862084,2052955,43678347,35154779,35141912,35861725,35851383,35851392,35856292) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42613186,2909524,40161667,40028718,40028720,35860696,35858962,40059607,35861002,40001157,40059318,40057467,40066892,40066893,43695029,40069651,35851732,42961482,42479725,40028359,42629035,43258666,40028361,40160496,35605255,35860990,35144130,40069655,42965658,36269500,35857832,35857838,35860698,35862078,35862084,2052955,43678347,35154779,35141912,35861725,35851383,35851392,35856292)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42613186,2909524,40161667,40028718,40028720,35860696,35858962,40059607,35861002,40001157,40059318,40057467,40066892,40066893,43695029,40069651,35851732,42961482,42479725,40028359,42629035,43258666,40028361,40160496,35605255,35860990,35144130,40069655,42965658,36269500,35857832,35857838,35860698,35862078,35862084,2052955,43678347,35154779,35141912,35861725,35851383,35851392,35856292) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42613186,2909524,40161667,40028718,40028720,35860696,35858962,40059607,35861002,40001157,40059318,40057467,40066892,40066893,43695029,40069651,35851732,42961482,42479725,40028359,42629035,43258666,40028361,40160496,35605255,35860990,35144130,40069655,42965658,36269500,35857832,35857838,35860698,35862078,35862084,2052955,43678347,35154779,35141912,35861725,35851383,35851392,35856292)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81902,77340,4126297,195588) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81902,77340,4126297,195588)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81902,77340,4126297,195588) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81902,77340,4126297,195588)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4167328,4265485,198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4167328,4265485,198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4167328,4265485,198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4167328,4265485,198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -196,38 +196,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -256,49 +238,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1061.sql b/inst/sql/sql_server/1061.sql index 4c193781..347d01fa 100644 --- a/inst/sql/sql_server/1061.sql +++ b/inst/sql/sql_server/1061.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40798709,1796435,40798704,19072255,43008993,19028286,19072857,1773402,19028288,1774470,1774932,19051271,1775741,43009045,1749008,1738366,43009083,19051345,1776684,35198137,43008994,1749083,1777254,1777806,1778162,1786621,19052683,19086759,19086790,1786842,43009087,1708100,19126622,1768849,1769535,19070174,19070680,40798700,1771162,43009082,43009044,1796458,1747005,19028241) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40798709,1796435,40798704,19072255,43008993,19028286,19072857,1773402,19028288,1774470,1774932,19051271,1775741,43009045,1749008,1738366,43009083,19051345,1776684,35198137,43008994,1749083,1777254,1777806,1778162,1786621,19052683,19086759,19086790,1786842,43009087,1708100,19126622,1768849,1769535,19070174,19070680,40798700,1771162,43009082,43009044,1796458,1747005,19028241)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40798709,1796435,40798704,19072255,43008993,19028286,19072857,1773402,19028288,1774470,1774932,19051271,1775741,43009045,1749008,1738366,43009083,19051345,1776684,35198137,43008994,1749083,1777254,1777806,1778162,1786621,19052683,19086759,19086790,1786842,43009087,1708100,19126622,1768849,1769535,19070174,19070680,40798700,1771162,43009082,43009044,1796458,1747005,19028241) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40798709,1796435,40798704,19072255,43008993,19028286,19072857,1773402,19028288,1774470,1774932,19051271,1775741,43009045,1749008,1738366,43009083,19051345,1776684,35198137,43008994,1749083,1777254,1777806,1778162,1786621,19052683,19086759,19086790,1786842,43009087,1708100,19126622,1768849,1769535,19070174,19070680,40798700,1771162,43009082,43009044,1796458,1747005,19028241)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35129269,35160132,2035392,21132307,40020954) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35129269,35160132,2035392,21132307,40020954)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35129269,35160132,2035392,21132307,40020954) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35129269,35160132,2035392,21132307,40020954)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81902,77340,4126297,195588) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81902,77340,4126297,195588)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81902,77340,4126297,195588) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81902,77340,4126297,195588)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4167328,4265485,198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4167328,4265485,198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4167328,4265485,198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4167328,4265485,198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -196,38 +196,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -256,49 +238,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1062.sql b/inst/sql/sql_server/1062.sql index 577ca393..7660c4e8 100644 --- a/inst/sql/sql_server/1062.sql +++ b/inst/sql/sql_server/1062.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40081374,36882762,40220482,35153537,40147374,40081379,40081388,1705674) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40081374,36882762,40220482,35153537,40147374,40081379,40081388,1705674)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40081374,36882762,40220482,35153537,40147374,40081379,40081388,1705674) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40081374,36882762,40220482,35153537,40147374,40081379,40081388,1705674)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40073114,40073115,40180925) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40073114,40073115,40180925)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40073114,40073115,40180925) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40073114,40073115,40180925)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81902,77340,4126297,195588) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81902,77340,4126297,195588)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81902,77340,4126297,195588) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81902,77340,4126297,195588)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4167328,4265485,198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4167328,4265485,198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4167328,4265485,198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4167328,4265485,198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -196,38 +196,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -256,49 +238,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1063.sql b/inst/sql/sql_server/1063.sql index 07f30b28..39a1f447 100644 --- a/inst/sql/sql_server/1063.sql +++ b/inst/sql/sql_server/1063.sql @@ -7,56 +7,56 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1721543,35198003,1747032,19041153,1592954,1716721,923081,19050750,1712549,35197938,36878831,40161662,43009030,1743222,35834909,35198165,1789276,1797513,1742253,1716903,35197897,19027679,1733765,1707800) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1721543,35198003,1747032,19041153,1592954,1716721,923081,19050750,1712549,35197938,36878831,40161662,43009030,1743222,35834909,35198165,1789276,1797513,1742253,1716903,35197897,19027679,1733765,1707800)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1721543,35198003,1747032,19041153,1592954,1716721,923081,19050750,1712549,35197938,36878831,40161662,43009030,1743222,35834909,35198165,1789276,1797513,1742253,1716903,35197897,19027679,1733765,1707800) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1721543,35198003,1747032,19041153,1592954,1716721,923081,19050750,1712549,35197938,36878831,40161662,43009030,1743222,35834909,35198165,1789276,1797513,1742253,1716903,35197897,19027679,1733765,1707800)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42613186,2909524,40161667,40028718,40028720,35860696,35858962,40059607,35861002,40001157,40059318,40057467,40066892,40066893,43695029,40069651,35851732,42961482,42479725,40028359,42629035,43258666,40028361,40160496,35605255,35860990,35144130,40069655,42965658,36269500,35857832,35857838,35860698,35862078,35862084,2052955,43678347,35154779,35141912,35861725,35851383,35851392,35856292) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42613186,2909524,40161667,40028718,40028720,35860696,35858962,40059607,35861002,40001157,40059318,40057467,40066892,40066893,43695029,40069651,35851732,42961482,42479725,40028359,42629035,43258666,40028361,40160496,35605255,35860990,35144130,40069655,42965658,36269500,35857832,35857838,35860698,35862078,35862084,2052955,43678347,35154779,35141912,35861725,35851383,35851392,35856292)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42613186,2909524,40161667,40028718,40028720,35860696,35858962,40059607,35861002,40001157,40059318,40057467,40066892,40066893,43695029,40069651,35851732,42961482,42479725,40028359,42629035,43258666,40028361,40160496,35605255,35860990,35144130,40069655,42965658,36269500,35857832,35857838,35860698,35862078,35862084,2052955,43678347,35154779,35141912,35861725,35851383,35851392,35856292) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42613186,2909524,40161667,40028718,40028720,35860696,35858962,40059607,35861002,40001157,40059318,40057467,40066892,40066893,43695029,40069651,35851732,42961482,42479725,40028359,42629035,43258666,40028361,40160496,35605255,35860990,35144130,40069655,42965658,36269500,35857832,35857838,35860698,35862078,35862084,2052955,43678347,35154779,35141912,35861725,35851383,35851392,35856292)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4318404) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4318404)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4318404) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4318404)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46269693,4193174,36712839,4273378,256622) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46269693,4193174,36712839,4273378,256622)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46269693,4193174,36712839,4273378,256622) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46269693,4193174,36712839,4273378,256622)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36712839,4193174,256622,46269693,4273378) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36712839,4193174,256622,46269693,4273378)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36712839,4193174,256622,46269693,4273378) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36712839,4193174,256622,46269693,4273378)) ) I ) C; @@ -233,38 +233,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -293,49 +275,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1064.sql b/inst/sql/sql_server/1064.sql index 84169ce0..49fe690e 100644 --- a/inst/sql/sql_server/1064.sql +++ b/inst/sql/sql_server/1064.sql @@ -7,56 +7,56 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40798709,1796435,40798704,19072255,43008993,19028286,19072857,1773402,19028288,1774470,1774932,19051271,1775741,43009045,1749008,1738366,43009083,19051345,1776684,35198137,43008994,1749083,1777254,1777806,1778162,1786621,19052683,19086759,19086790,1786842,43009087,1708100,19126622,1768849,1769535,19070174,19070680,40798700,1771162,43009082,43009044,1796458,1747005,19028241) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40798709,1796435,40798704,19072255,43008993,19028286,19072857,1773402,19028288,1774470,1774932,19051271,1775741,43009045,1749008,1738366,43009083,19051345,1776684,35198137,43008994,1749083,1777254,1777806,1778162,1786621,19052683,19086759,19086790,1786842,43009087,1708100,19126622,1768849,1769535,19070174,19070680,40798700,1771162,43009082,43009044,1796458,1747005,19028241)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40798709,1796435,40798704,19072255,43008993,19028286,19072857,1773402,19028288,1774470,1774932,19051271,1775741,43009045,1749008,1738366,43009083,19051345,1776684,35198137,43008994,1749083,1777254,1777806,1778162,1786621,19052683,19086759,19086790,1786842,43009087,1708100,19126622,1768849,1769535,19070174,19070680,40798700,1771162,43009082,43009044,1796458,1747005,19028241) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40798709,1796435,40798704,19072255,43008993,19028286,19072857,1773402,19028288,1774470,1774932,19051271,1775741,43009045,1749008,1738366,43009083,19051345,1776684,35198137,43008994,1749083,1777254,1777806,1778162,1786621,19052683,19086759,19086790,1786842,43009087,1708100,19126622,1768849,1769535,19070174,19070680,40798700,1771162,43009082,43009044,1796458,1747005,19028241)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35129269,35160132,2035392,21132307,40020954) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35129269,35160132,2035392,21132307,40020954)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35129269,35160132,2035392,21132307,40020954) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35129269,35160132,2035392,21132307,40020954)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4318404) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4318404)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4318404) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4318404)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46269693,4193174,36712839,4273378,256622) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46269693,4193174,36712839,4273378,256622)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46269693,4193174,36712839,4273378,256622) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46269693,4193174,36712839,4273378,256622)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36712839,4193174,256622,46269693,4273378) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36712839,4193174,256622,46269693,4273378)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36712839,4193174,256622,46269693,4273378) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36712839,4193174,256622,46269693,4273378)) ) I ) C; @@ -233,38 +233,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -293,49 +275,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1065.sql b/inst/sql/sql_server/1065.sql index 60e2c852..2bedd67e 100644 --- a/inst/sql/sql_server/1065.sql +++ b/inst/sql/sql_server/1065.sql @@ -7,56 +7,56 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40081374,36882762,40220482,35153537,40147374,40081379,40081388,1705674) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40081374,36882762,40220482,35153537,40147374,40081379,40081388,1705674)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40081374,36882762,40220482,35153537,40147374,40081379,40081388,1705674) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40081374,36882762,40220482,35153537,40147374,40081379,40081388,1705674)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40073114,40073115,40180925) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40073114,40073115,40180925)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40073114,40073115,40180925) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40073114,40073115,40180925)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4318404) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4318404)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4318404) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4318404)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46269693,4193174,36712839,4273378,256622) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46269693,4193174,36712839,4273378,256622)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46269693,4193174,36712839,4273378,256622) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46269693,4193174,36712839,4273378,256622)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36712839,4193174,256622,46269693,4273378) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36712839,4193174,256622,46269693,4273378)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36712839,4193174,256622,46269693,4273378) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36712839,4193174,256622,46269693,4273378)) ) I ) C; @@ -233,38 +233,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -293,49 +275,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1066.sql b/inst/sql/sql_server/1066.sql index 5c8b0709..45af5613 100644 --- a/inst/sql/sql_server/1066.sql +++ b/inst/sql/sql_server/1066.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (19041065,912263,937368,1151789,1119119) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (19041065,912263,937368,1151789,1119119)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611)) ) I ) C; @@ -198,38 +198,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -258,49 +240,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1067.sql b/inst/sql/sql_server/1067.sql index 920f16c6..58c73e62 100644 --- a/inst/sql/sql_server/1067.sql +++ b/inst/sql/sql_server/1067.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1510627,40244464,42904205) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1510627,40244464,42904205)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1510627,40244464,42904205) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1510627,40244464,42904205)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46273477,46273478,81893,75580,46269847,46269843) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46273477,46273478,81893,75580,46269847,46269843)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46273477,46273478,81893,75580,46269847,46269843) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46273477,46273478,81893,75580,46269847,46269843)) ) I ) C; @@ -174,38 +174,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -234,49 +216,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1068.sql b/inst/sql/sql_server/1068.sql index e33a2c6e..f7a6a001 100644 --- a/inst/sql/sql_server/1068.sql +++ b/inst/sql/sql_server/1068.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (19041065,912263,937368,1151789,1119119) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (19041065,912263,937368,1151789,1119119)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46273477,46273478,81893,75580,46269847,46269843) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46273477,46273478,81893,75580,46269847,46269843)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46273477,46273478,81893,75580,46269847,46269843) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46273477,46273478,81893,75580,46269847,46269843)) ) I ) C; @@ -174,38 +174,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -234,49 +216,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1069.sql b/inst/sql/sql_server/1069.sql index 6ad47304..21557e2e 100644 --- a/inst/sql/sql_server/1069.sql +++ b/inst/sql/sql_server/1069.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (19041065,912263,937368,1151789,1119119) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (19041065,912263,937368,1151789,1119119)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46269889,201606,4340812) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46269889,201606,4340812)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46269889,201606,4340812) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46269889,201606,4340812)) ) I ) C; @@ -174,38 +174,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -234,49 +216,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1070.sql b/inst/sql/sql_server/1070.sql index 425a9167..0b2a2aae 100644 --- a/inst/sql/sql_server/1070.sql +++ b/inst/sql/sql_server/1070.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1510627,40244464,42904205) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1510627,40244464,42904205)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1510627,40244464,42904205) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1510627,40244464,42904205)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611)) ) I ) C; @@ -198,38 +198,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 90,EVENT_DATE) as END_DATE -- unpad the end date by 90 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 90 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,90,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 90, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(90 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -258,49 +240,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1071.sql b/inst/sql/sql_server/1071.sql index 70b9cd9a..64a71cf9 100644 --- a/inst/sql/sql_server/1071.sql +++ b/inst/sql/sql_server/1071.sql @@ -633,49 +633,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1072.sql b/inst/sql/sql_server/1072.sql index 3eda986b..c56d7eb3 100644 --- a/inst/sql/sql_server/1072.sql +++ b/inst/sql/sql_server/1072.sql @@ -7,28 +7,28 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36309671,4143091,4122252,4140156,3049944,40764963,37073281,3035833,4138900,4146128) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36309671,4143091,4122252,4140156,3049944,40764963,37073281,3035833,4138900,4146128)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -37,70 +37,70 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4161546,4183040,439014,438411,761352,4265035,761351,761350,761349,761348,3657772,3657771,3657770,37312551,4212319,4104214,4104213,4211820,3657843,3657842,3657841,4234762,4228115,433757,437850,4109410,433765,433762,434274,4152407,4152406,4322865,3657796,3655858,3655856,4338890,3655855,44783667,3655854,3655853,44783669,44783668,4230371,4042904,4198123,4198124,4195053,4195054,3655301,3655813,4224242,4319477,4319476,4187784,4186870,373963,4219534,373972,4213393,608987,608986,4195992,378078,436967,4214437,4330151,434927,4259500,4259502,439017,36676800,40480902,4233536,46273984,37309749,4212083,380721,4335988,4215673,4213114,4090114,4221187,35624273,435541,3657060,4334872,4334873,37207894,4174680,36684637,434033,440715,4102049,4102047,37207954,37311893,4167058,3663239,36684701,439736,4162559,4087293,3662320,434638,4213641,3662329,3662328,438740,761311,3662319,3662318,3655660,443867,3657173,37208019,761315,761314,761313,44783425,432621,761312,44783424,4215212,432630,36684767,432631,4253619,761343,761342,37208000,37208014,4307553,4338889,37310633,44783671,4108960,4150996,4150995,4196116,1340301,4109407,4338888,438971,4259505,4079919,4217692,4152067,4216286,4213657,4253622) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4161546,4183040,439014,438411,761352,4265035,761351,761350,761349,761348,3657772,3657771,3657770,37312551,4212319,4104214,4104213,4211820,3657843,3657842,3657841,4234762,4228115,433757,437850,4109410,433765,433762,434274,4152407,4152406,4322865,3657796,3655858,3655856,4338890,3655855,44783667,3655854,3655853,44783669,44783668,4230371,4042904,4198123,4198124,4195053,4195054,3655301,3655813,4224242,4319477,4319476,4187784,4186870,373963,4219534,373972,4213393,608987,608986,4195992,378078,436967,4214437,4330151,434927,4259500,4259502,439017,36676800,40480902,4233536,46273984,37309749,4212083,380721,4335988,4215673,4213114,4090114,4221187,35624273,435541,3657060,4334872,4334873,37207894,4174680,36684637,434033,440715,4102049,4102047,37207954,37311893,4167058,3663239,36684701,439736,4162559,4087293,3662320,434638,4213641,3662329,3662328,438740,761311,3662319,3662318,3655660,443867,3657173,37208019,761315,761314,761313,44783425,432621,761312,44783424,4215212,432630,36684767,432631,4253619,761343,761342,37208000,37208014,4307553,4338889,37310633,44783671,4108960,4150996,4150995,4196116,1340301,4109407,4338888,438971,4259505,4079919,4217692,4152067,4216286,4213657,4253622)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4130903,4163983,4322821,4281245,4081069,4338094) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130903,4163983,4322821,4281245,4081069,4338094)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4082268,4317991,4082269,3019458,3004523) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4082268,4317991,4082269,3019458,3004523)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4122252,37394108,4163737) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4122252,37394108,4163737)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4122252,44808404,4046130) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4122252,44808404,4046130)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35205780,35205781,440032) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35205780,35205781,440032)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35205780,35205781,440032) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35205780,35205781,440032)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35205780,35205781,440032) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35205780,35205781,440032)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35205780,35205781,440032) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35205780,35205781,440032)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -865,49 +865,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1073.sql b/inst/sql/sql_server/1073.sql index 2ccf3656..4649ea50 100644 --- a/inst/sql/sql_server/1073.sql +++ b/inst/sql/sql_server/1073.sql @@ -7,56 +7,56 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4326255,193522,4326601,4050869,132736,436339,435613,193814,195453,435318,4345447,378143,441589,4101468,256036,45770836,76034,195317,4231983,4262720,434866,4027461,435785,141663,373412,438350,255848,444099,36712850,192670,433957,253954,198199,196328,132797,196236,195461,4091167,4206579) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4326255,193522,4326601,4050869,132736,436339,435613,193814,195453,435318,4345447,378143,441589,4101468,256036,45770836,76034,195317,4231983,4262720,434866,4027461,435785,141663,373412,438350,255848,444099,36712850,192670,433957,253954,198199,196328,132797,196236,195461,4091167,4206579)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4326255,193522,4326601,4050869,132736,436339,435613,193814,195453,435318,4345447,378143,441589,4101468,256036,45770836,76034,195317,4231983,4262720,434866,4027461,435785,141663,373412,438350,255848,444099,36712850,192670,433957,253954,198199,196328,132797,196236,195461,4091167,4206579) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4326255,193522,4326601,4050869,132736,436339,435613,193814,195453,435318,4345447,378143,441589,4101468,256036,45770836,76034,195317,4231983,4262720,434866,4027461,435785,141663,373412,438350,255848,444099,36712850,192670,433957,253954,198199,196328,132797,196236,195461,4091167,4206579)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4324289,4176250,4094215,192674,4068969,443406,4098889,195306,4273378,42872891,4169568) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4324289,4176250,4094215,192674,4068969,443406,4098889,195306,4273378,42872891,4169568)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4324289,4176250,4094215,192674,4068969,443406,4098889,195306,4273378,42872891,4169568) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4324289,4176250,4094215,192674,4068969,443406,4098889,195306,4273378,42872891,4169568)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4087776,434281,440330,433146,433415,260041,28974,260034,437217,440035,4329093,4029319,4205455,45757252,4051338,443943,138682,4045976,45770836,437489,440323,436336,440329,433134,436040,438077,4097550,438059,440631,4174281,373412,438350,256909,433957,443741,434859,434557,4211951) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4087776,434281,440330,433146,433415,260041,28974,260034,437217,440035,4329093,4029319,4205455,45757252,4051338,443943,138682,4045976,45770836,437489,440323,436336,440329,433134,436040,438077,4097550,438059,440631,4174281,373412,438350,256909,433957,443741,434859,434557,4211951)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4087776,434281,440330,433146,433415,260041,28974,260034,437217,440035,4329093,4029319,4205455,45757252,4051338,443943,138682,4045976,45770836,437489,440323,436336,440329,433134,436040,438077,4097550,438059,440631,4174281,373412,438350,256909,433957,443741,434859,434557,4211951) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4087776,434281,440330,433146,433415,260041,28974,260034,437217,440035,4329093,4029319,4205455,45757252,4051338,443943,138682,4045976,45770836,437489,440323,436336,440329,433134,436040,438077,4097550,438059,440631,4174281,373412,438350,256909,433957,443741,434859,434557,4211951)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192549,43530817,444249,436020,437899,435563,198978,4001819,374947,4115044,374925,4307774,4051332,133002,135350,4001282,141662,141944,141666,133570,4087776,4280571,196735,4158412,257011,258453,4331815,194560,76022,437936,4188108,37108588,192259,434281,439730,4167984,4196020,4197765,193402,441500,436339,4094504,438064,432545,436091,258458,257315,442574,4200680,4150302,4084966,4199600,372247,433968,260041,29735,133414,28974,80951,198363,4212079,4069115,444418,200171,438066,72245,4126282,4127408,437221,4344638,4021397,260730,201503,193132,135722,380407,198671,4344376,373200,4110056,134735,137077,46271951,134454,4122186,134141,46270395,137367,260034,4096917,377886,4269363,199872,375290,42537043,4307981,193688,437217,433401,4241576,372241,260134,432310,440035,4276193,200017,140654,137213,135473,137497,432251,435742,443739,432250,4347525,4154415,434570,4346971,374352,4238808,261883,198334,443462,199718,197223,4345206,4345354,138346,135745,199067,4161947,4220002,4238732,4324705,198822,4106878,132391,4071026,759835,436188,37396146,79732,77340,81357,80778,74415,437202,45757250,199726,260754,437538,194087,378078,433134,373972,443204,140480,4160460,4340497,40480515,43021258,43021283,40478938,40481816,4200532,434872,4309542,441786,443535,440320,4157605,432249,4050438,436180,4176170,72410,40483549,40481969,40481970,40480731,40485376,4067312,201093,4159147,4063038,4060295,4060296,198337,4180167,192964,4214438,440716,4262590,40481620,40483813,4177365,40481619,37117135,4180873,40483847,4119460,76508,4001126,4001124,381859,443410,441799,260936,134284,137441,192815,195462,198678,4214519,438077,4137770,4346970,4092828,4112820,443600,4141757,440638,440473,438067,437881,443291,436621,440940,434559,376422,440631,436900,440431,433701,133566,4047937,375738,4030846,201792,194685,4174281,137425,136575,201136,140648,432248,141663,133853,138847,137648,140191,134137,195901,133003,133296,4001298,373412,378753,195460,137057,40480261,436897,132835,139737,257778,440328,258785,438350,254066,257908,260430,258180,4299862,253790,46270027,46274035,252351,261324,261053,259048,437474,4308715,36712821,4153877,199863,435457,256909,432541,433405,260026,4245409,443741,258684,256622,253954,437943,432621,376712,198189,198199,133547,72988,4188413,73838,81099,78829,80177,36715557,4174994,4323342,45771090,261774,196328,141213,4030847,312823,132797,40486631,40486629,40487064,40493038,40486059,40491960,40491961,40493415,40487059,40489907,40489908,40489910,40489912,40487616,196236,37394658,440647,201780,434575,4009329,195461,435459,259852,132392,437779,28060,4212727,4143698,4120302,4284844,73068,77156,436285,441170,4077081,80482,318689,373962,4224968,4160328,4084964,80946,134865,4163280,133141,201214,4090114,194871,434557,198674,374267,134851,260630,256018,260315,4153291,192819,4181583,197919,4146482,81902,78073,440158,440029,433960,132834,4154776,4344398) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192549,43530817,444249,436020,437899,435563,198978,4001819,374947,4115044,374925,4307774,4051332,133002,135350,4001282,141662,141944,141666,133570,4087776,4280571,196735,4158412,257011,258453,4331815,194560,76022,437936,4188108,37108588,192259,434281,439730,4167984,4196020,4197765,193402,441500,436339,4094504,438064,432545,436091,258458,257315,442574,4200680,4150302,4084966,4199600,372247,433968,260041,29735,133414,28974,80951,198363,4212079,4069115,444418,200171,438066,72245,4126282,4127408,437221,4344638,4021397,260730,201503,193132,135722,380407,198671,4344376,373200,4110056,134735,137077,46271951,134454,4122186,134141,46270395,137367,260034,4096917,377886,4269363,199872,375290,42537043,4307981,193688,437217,433401,4241576,372241,260134,432310,440035,4276193,200017,140654,137213,135473,137497,432251,435742,443739,432250,4347525,4154415,434570,4346971,374352,4238808,261883,198334,443462,199718,197223,4345206,4345354,138346,135745,199067,4161947,4220002,4238732,4324705,198822,4106878,132391,4071026,759835,436188,37396146,79732,77340,81357,80778,74415,437202,45757250,199726,260754,437538,194087,378078,433134,373972,443204,140480,4160460,4340497,40480515,43021258,43021283,40478938,40481816,4200532,434872,4309542,441786,443535,440320,4157605,432249,4050438,436180,4176170,72410,40483549,40481969,40481970,40480731,40485376,4067312,201093,4159147,4063038,4060295,4060296,198337,4180167,192964,4214438,440716,4262590,40481620,40483813,4177365,40481619,37117135,4180873,40483847,4119460,76508,4001126,4001124,381859,443410,441799,260936,134284,137441,192815,195462,198678,4214519,438077,4137770,4346970,4092828,4112820,443600,4141757,440638,440473,438067,437881,443291,436621,440940,434559,376422,440631,436900,440431,433701,133566,4047937,375738,4030846,201792,194685,4174281,137425,136575,201136,140648,432248,141663,133853,138847,137648,140191,134137,195901,133003,133296,4001298,373412,378753,195460,137057,40480261,436897,132835,139737,257778,440328,258785,438350,254066,257908,260430,258180,4299862,253790,46270027,46274035,252351,261324,261053,259048,437474,4308715,36712821,4153877,199863,435457,256909,432541,433405,260026,4245409,443741,258684,256622,253954,437943,432621,376712,198189,198199,133547,72988,4188413,73838,81099,78829,80177,36715557,4174994,4323342,45771090,261774,196328,141213,4030847,312823,132797,40486631,40486629,40487064,40493038,40486059,40491960,40491961,40493415,40487059,40489907,40489908,40489910,40489912,40487616,196236,37394658,440647,201780,434575,4009329,195461,435459,259852,132392,437779,28060,4212727,4143698,4120302,4284844,73068,77156,436285,441170,4077081,80482,318689,373962,4224968,4160328,4084964,80946,134865,4163280,133141,201214,4090114,194871,434557,198674,374267,134851,260630,256018,260315,4153291,192819,4181583,197919,4146482,81902,78073,440158,440029,433960,132834,4154776,4344398)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (132797,440029) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (132797,440029)) ) I ) C; @@ -297,49 +297,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1074.sql b/inst/sql/sql_server/1074.sql index 4601e831..90dad0be 100644 --- a/inst/sql/sql_server/1074.sql +++ b/inst/sql/sql_server/1074.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4326255,193522,4326601,4050869,132736,436339,435613,193814,195453,435318,4345447,378143,441589,4101468,256036,45770836,76034,195317,4231983,4262720,434866,4027461,435785,141663,373412,438350,255848,444099,36712850,192670,433957,253954,198199,196328,132797,196236,195461,4091167,4206579) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4326255,193522,4326601,4050869,132736,436339,435613,193814,195453,435318,4345447,378143,441589,4101468,256036,45770836,76034,195317,4231983,4262720,434866,4027461,435785,141663,373412,438350,255848,444099,36712850,192670,433957,253954,198199,196328,132797,196236,195461,4091167,4206579)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4326255,193522,4326601,4050869,132736,436339,435613,193814,195453,435318,4345447,378143,441589,4101468,256036,45770836,76034,195317,4231983,4262720,434866,4027461,435785,141663,373412,438350,255848,444099,36712850,192670,433957,253954,198199,196328,132797,196236,195461,4091167,4206579) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4326255,193522,4326601,4050869,132736,436339,435613,193814,195453,435318,4345447,378143,441589,4101468,256036,45770836,76034,195317,4231983,4262720,434866,4027461,435785,141663,373412,438350,255848,444099,36712850,192670,433957,253954,198199,196328,132797,196236,195461,4091167,4206579)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4324289,4176250,4094215,192674,4068969,443406,4098889,195306,4273378,42872891,4169568) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4324289,4176250,4094215,192674,4068969,443406,4098889,195306,4273378,42872891,4169568)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4324289,4176250,4094215,192674,4068969,443406,4098889,195306,4273378,42872891,4169568) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4324289,4176250,4094215,192674,4068969,443406,4098889,195306,4273378,42872891,4169568)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -281,49 +281,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1075.sql b/inst/sql/sql_server/1075.sql index 7fca3fa9..36656931 100644 --- a/inst/sql/sql_server/1075.sql +++ b/inst/sql/sql_server/1075.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437854,436100) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437854,436100)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437854,436100) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437854,436100)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1076.sql b/inst/sql/sql_server/1076.sql index 22e1085e..5a5eb671 100644 --- a/inst/sql/sql_server/1076.sql +++ b/inst/sql/sql_server/1076.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441202,442038) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441202,442038)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442038) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442038)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1077.sql b/inst/sql/sql_server/1077.sql index 8461b500..bb51b8ac 100644 --- a/inst/sql/sql_server/1077.sql +++ b/inst/sql/sql_server/1077.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4032658,4084639,4221182,4193788,441202,42536383) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4032658,4084639,4221182,4193788,441202,42536383)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4032658,4084639,4193788,42536383) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4032658,4084639,4193788,42536383)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201,9203)) ) I ) C; @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1078.sql b/inst/sql/sql_server/1078.sql index 47fddf3b..d40c362a 100644 --- a/inst/sql/sql_server/1078.sql +++ b/inst/sql/sql_server/1078.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4091559) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4091559)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4091559) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4091559)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4048018,36716396) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4048018,36716396)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4048018,36716396) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4048018,36716396)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1079.sql b/inst/sql/sql_server/1079.sql index e62c556a..c9c6f2fe 100644 --- a/inst/sql/sql_server/1079.sql +++ b/inst/sql/sql_server/1079.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372615,378143,4147498,373189,4190307,379792,4330496,138965) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372615,378143,4147498,373189,4190307,379792,4330496,138965)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (372615,4147498,373189,379792,4330496) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (372615,4147498,373189,379792,4330496)) ) I ) C; @@ -342,49 +342,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1080.sql b/inst/sql/sql_server/1080.sql index de58a6bf..eb68379e 100644 --- a/inst/sql/sql_server/1080.sql +++ b/inst/sql/sql_server/1080.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374925,4164770,4070552) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374925,4164770,4070552)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374925,4164770,4070552) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374925,4164770,4070552)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C; @@ -342,49 +342,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1081.sql b/inst/sql/sql_server/1081.sql index 341cefa7..81683e0a 100644 --- a/inst/sql/sql_server/1081.sql +++ b/inst/sql/sql_server/1081.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847,4108680,4108678,438172,4124687,45766212,37109910,37109911,37109912) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847,4108680,4108678,438172,4124687,45766212,37109910,37109911,37109912)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847,4108680,4108678,438172,4124687,45766212,37109910,37109911,37109912) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847,4108680,4108678,438172,4124687,45766212,37109910,37109911,37109912)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -353,49 +353,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1082.sql b/inst/sql/sql_server/1082.sql index 687a36f6..298d94af 100644 --- a/inst/sql/sql_server/1082.sql +++ b/inst/sql/sql_server/1082.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4289908,4138837,314383,4149913,318072,44782774) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4289908,4138837,314383,4149913,318072,44782774)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4289908,4138837,314383,4149913,318072,44782774) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4289908,4138837,314383,4149913,318072,44782774)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1083.sql b/inst/sql/sql_server/1083.sql index f30b0ff3..f7ae7a36 100644 --- a/inst/sql/sql_server/1083.sql +++ b/inst/sql/sql_server/1083.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4159749,4103532,4119134) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4159749,4103532,4119134)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4159749,4103532,4119134) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4159749,4103532,4119134)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1084.sql b/inst/sql/sql_server/1084.sql index 7096a36c..7eb47dd5 100644 --- a/inst/sql/sql_server/1084.sql +++ b/inst/sql/sql_server/1084.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436093) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436093)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436093) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436093)) ) I ) C; @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1085.sql b/inst/sql/sql_server/1085.sql index 554c761e..fa78a863 100644 --- a/inst/sql/sql_server/1085.sql +++ b/inst/sql/sql_server/1085.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440448) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440448)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440448) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440448)) ) I ) C; @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1086.sql b/inst/sql/sql_server/1086.sql index 5bb1ae28..876394c2 100644 --- a/inst/sql/sql_server/1086.sql +++ b/inst/sql/sql_server/1086.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443904) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443904)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443904) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443904)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1087.sql b/inst/sql/sql_server/1087.sql index 09c1db33..e6d04e54 100644 --- a/inst/sql/sql_server/1087.sql +++ b/inst/sql/sql_server/1087.sql @@ -7,28 +7,28 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439847,432923,4148906,4144154,4111709,42535426,43530728,43530727) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439847,432923,4148906,4144154,4111709,42535426,43530728,43530727)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376713,4174299,36716544,4345688) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376713,4174299,36716544,4345688)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4174299,36716544,4345688) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4174299,36716544,4345688)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -348,49 +348,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1088.sql b/inst/sql/sql_server/1088.sql index c80df68f..d04e0894 100644 --- a/inst/sql/sql_server/1088.sql +++ b/inst/sql/sql_server/1088.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4133004,4149782,444247,40481089,435565,193512,44782752,44782751) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4133004,4149782,444247,40481089,435565,193512,44782752,44782751)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4133004,40481089,435565,193512,44782752,44782751) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4133004,40481089,435565,193512,44782752,44782751)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (77310,36712971,435887,438820,4179911) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (77310,36712971,435887,438820,4179911)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (77310,36712971,435887,438820) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (77310,36712971,435887,438820)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1089.sql b/inst/sql/sql_server/1089.sql index b859aaff..a2a6bf3f 100644 --- a/inst/sql/sql_server/1089.sql +++ b/inst/sql/sql_server/1089.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443454) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443454)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40479572,4046360) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40479572,4046360)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40479572,4046360) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40479572,4046360)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -353,49 +353,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1090.sql b/inst/sql/sql_server/1090.sql index 417ff8e8..8e759b12 100644 --- a/inst/sql/sql_server/1090.sql +++ b/inst/sql/sql_server/1090.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254662,36713113,440417) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254662,36713113,440417)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254662,36713113,440417) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254662,36713113,440417)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435616,435887,196715,4062269,442055,433832,435026,440477,318137,199837,438820,4235812,195294,4187790,444247,44782732,40479606) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435616,435887,196715,4062269,442055,433832,435026,440477,318137,199837,438820,4235812,195294,4187790,444247,44782732,40479606)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435616,435887,196715,4062269,442055,433832,435026,440477,318137,199837,438820,4235812,195294,4187790,444247,44782732,40479606) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435616,435887,196715,4062269,442055,433832,435026,440477,318137,199837,438820,4235812,195294,4187790,444247,44782732,40479606)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1091.sql b/inst/sql/sql_server/1091.sql index 3ffa3f40..a9e8dee2 100644 --- a/inst/sql/sql_server/1091.sql +++ b/inst/sql/sql_server/1091.sql @@ -7,276 +7,276 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37397537,432870) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37397537,432870)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37397537,432870) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37397537,432870)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3007461,3031586,3024929,3039827,3024386,4267147,37393863) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3007461,3031586,3024929,3039827,3024386,4267147,37393863)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3007461,3031586,3024929,3039827,3024386,4267147,37393863) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3007461,3031586,3024929,3039827,3024386,4267147,37393863)) ) I ) C UNION ALL SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44782752,435565,40481089,193512,4133004,4149782,44782762,762049,762048,46271900,4317289,4124856,4318407,4055089,45757410,45757409,4203836,44782759,4205652,762046,762051,44811347,4033521,45773536,4203618,762047,36712892,4096099) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44782752,435565,40481089,193512,4133004,4149782,44782762,762049,762048,46271900,4317289,4124856,4318407,4055089,45757410,45757409,4203836,44782759,4205652,762046,762051,44811347,4033521,45773536,4203618,762047,36712892,4096099)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44782752,40481089,4133004) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44782752,40481089,4133004)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36712971,435887,4179911,435031,4062264,438820,4089917,4269051) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36712971,435887,4179911,435031,4062264,438820,4089917,4269051)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36712971,435887,435031,4062264,438820) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36712971,435887,435031,4062264,438820)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 34 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (320741,4096099,44782752,44811347,45757409,4203836,4205652,4124856,4203618,4318407,762047,44782762,435565,45757410,4033521,762049,4055089,440738,444247,40481089,193512,45773536,36712892,4234997,439838,4133004,44782759,444097,4327889,4149782,762048,4317289) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (320741,4096099,44782752,44811347,45757409,4203836,4205652,4124856,4203618,4318407,762047,44782762,435565,45757410,4033521,762049,4055089,440738,444247,40481089,193512,45773536,36712892,4234997,439838,4133004,44782759,444097,4327889,4149782,762048,4317289)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44782752,40481089,4133004) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44782752,40481089,4133004)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36712971,435887,438820,4179911,4089917) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36712971,435887,438820,4179911,4089917)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36712971,435887,438820,4089917) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36712971,435887,438820,4089917)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 35 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254662,36713113,440417,4236271) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254662,36713113,440417,4236271)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254662,36713113,440417) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254662,36713113,440417)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435616,435887,196715,4062269,442055,433832,435026,440477,318137,199837,438820,4235812,195294,4187790,444247,44782732,40479606,4240832) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435616,435887,196715,4062269,442055,433832,435026,440477,318137,199837,438820,4235812,195294,4187790,444247,44782732,40479606,4240832)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435616,435887,196715,4062269,442055,433832,435026,440477,318137,199837,438820,4235812,195294,4187790,444247,44782732,40479606) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435616,435887,196715,4062269,442055,433832,435026,440477,318137,199837,438820,4235812,195294,4187790,444247,44782732,40479606)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 40 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443454) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443454)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40479572,4046360,372435,377254,379778,443790,443864,444091,4046089,4046090,4129534) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40479572,4046360,372435,377254,379778,443790,443864,444091,4046089,4046090,4129534)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40479572,4046360) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40479572,4046360)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 41 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439847,432923,4148906,4144154,4111709,42535426,43530728,43530727,4108952,4111708,35609033) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439847,432923,4148906,4144154,4111709,42535426,43530728,43530727,4108952,4111708,35609033)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376713,4174299,36716544,4345688) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376713,4174299,36716544,4345688)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4174299,36716544,4345688) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4174299,36716544,4345688)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847,4108680,4108678,438172,4124687,45766212,37109910,37109911,37109912) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847,4108680,4108678,438172,4124687,45766212,37109910,37109911,37109912)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847,4108680,4108678,438172,4124687,45766212,37109910,37109911,37109912) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847,4108680,4108678,438172,4124687,45766212,37109910,37109911,37109912)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 44 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4195665,4148299,4173167,4317289,4319280,4144032,45757410,45757409,44811741,44811740,37117790,37016198,35622081,35622080,4345926,4342767,4341648,4341646,4340939,4340378,4340375,4318537,4318407,4240850,4239942,4237654,4215949,4214720,4192856,4188336,4174014,4149013,4148257,4148256,4124856,4055089,4055025,4045408,201894,192673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4195665,4148299,4173167,4317289,4319280,4144032,45757410,45757409,44811741,44811740,37117790,37016198,35622081,35622080,4345926,4342767,4341648,4341646,4340939,4340378,4340375,4318537,4318407,4240850,4239942,4237654,4215949,4214720,4192856,4188336,4174014,4149013,4148257,4148256,4124856,4055089,4055025,4045408,201894,192673)) ) I ) C UNION ALL SELECT 47 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432870) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432870)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432870) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432870)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37397537,36713112,40321716,435076,4239484,137829,4133981,436956,4316372,42536958,4247776,440982,42537688,437242,4221109,432881,4119134) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37397537,36713112,40321716,435076,4239484,137829,4133981,436956,4316372,42536958,4247776,440982,42537688,437242,4221109,432881,4119134)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37397537,36713112,435076,4239484,137829,4133981,436956,4316372,42536958,4247776,440982,42537688,437242,4221109,432881) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37397537,36713112,435076,4239484,137829,4133981,436956,4316372,42536958,4247776,440982,42537688,437242,4221109,432881)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 49 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4223098,4301208,4111853,196715,4277276) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4223098,4301208,4111853,196715,4277276)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4223098,4301208,4111853,4277276) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4223098,4301208,4111853,4277276)) ) I ) C UNION ALL SELECT 50 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (199837,37111372,4223670,196715,36717492,45757410,45757409,4124856,4173167,4144032,4055089,4318407,4317289) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (199837,37111372,4223670,196715,36717492,45757410,45757409,4124856,4173167,4144032,4055089,4318407,4317289)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (199837,37111372,4223670) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (199837,37111372,4223670)) ) I ) C UNION ALL SELECT 52 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36712891,4033521,35615064,36712892,4044745,4048527) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36712891,4033521,35615064,36712892,4044745,4048527)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36712891,4033521,35615064,36712892,4044745) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36712891,4033521,35615064,36712892,4044745)) ) I ) C UNION ALL SELECT 55 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4111714,4179912) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4111714,4179912)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4111714,4179912) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4111714,4179912)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4061473,4273550,45765438,36717594,4223544) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4061473,4273550,45765438,36717594,4223544)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4061473,4273550,45765438,36717594,4223544) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4061473,4273550,45765438,36717594,4223544)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 56 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (318137,4111714,4045733,4179912) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (318137,4111714,4045733,4179912)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (318137,4111714,4179912) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (318137,4111714,4179912)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4061473,4273550,45765438,36717594,4223544) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4061473,4273550,45765438,36717594,4223544)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4061473,4273550,45765438,36717594,4223544) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4061473,4273550,45765438,36717594,4223544)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 57 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049318,4223670,444264,4207615,4273526) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049318,4223670,444264,4207615,4273526)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4049318,4223670,444264,4207615,4273526) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4049318,4223670,444264,4207615,4273526)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196715,199837,4317289,195294,4033521,4301208,4092406) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196715,199837,4317289,195294,4033521,4301208,4092406)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196715,199837,4317289,195294,4033521,4301208,4092406) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196715,199837,4317289,195294,4033521,4301208,4092406)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -1039,49 +1039,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1093.sql b/inst/sql/sql_server/1093.sql index da27ec15..e10cbec9 100644 --- a/inst/sql/sql_server/1093.sql +++ b/inst/sql/sql_server/1093.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 84 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002250,2730049,2730053,42894733,42894737,2725615,2725619,2729915,2730103,2729917,2730105,2729916,2730104,2002063,2002084,2736486,2736490,2736494,42897039,42897078,42897085,2730884,2730887) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002250,2730049,2730053,42894733,42894737,2725615,2725619,2729915,2730103,2729917,2730105,2729916,2730104,2002063,2002084,2736486,2736490,2736494,42897039,42897078,42897085,2730884,2730887)) ) I ) C; @@ -433,49 +433,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1094.sql b/inst/sql/sql_server/1094.sql index 56e4694c..eac9fb24 100644 --- a/inst/sql/sql_server/1094.sql +++ b/inst/sql/sql_server/1094.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 85 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002187,2729943,2730416,2729923,2730209,2730169,2730456,2729963,2730436,2730189,2730476,2729949,2730422,2729929,2730215,2730175,2730462,2729969,2730442,2730195,2730668,2729952,2730425,2729932,2730218,2730178,2730465,2729972,2730445,2730198,2730671,2729946,2730419,2729926,2730212,2730172,2730459,2729966,2730439,2730192,2730665,2729942,2730415,2729922,2730208,2730168,2730455,2729962,2730435,2730188,2730475,2729948,2730421,2729928,2730214,2730174,2730461,2729968,2730441,2730194,2730667,2729951,2730424,2729931,2730217,2730177,2730464,2729971,2730444,2730197,2730670,2729945,2730418,2729925,2730211,2730171,2730458,2729965,2730438,2730191,2730664,2729954,2730427,2729934,2730220,2730180,2730467,2729974,2730447,2730200,2730673,2729953,2730426,2729933,2730219,2730179,2730466,2729973,2730446,2730199,2730672,2729941,2730414,2729921,2730207,2730167,2730454,2729961,2730434,2730187,2730474,2729947,2730420,2729927,2730213,2730173,2730460,2729967,2730440,2730193,2730666,2729950,2730423,2729930,2730216,2730176,2730463,2729970,2730443,2730196,2730669,2729944,2730417,2729924,2730210,2730170,2730457,2729964,2730437,2730190,2730663,2735223,2735420,2735221,2735227,2735222,2735228,2735225,2735422,2735224,2735421,2735226,2735423,2727323,2727307,2726917,2727339,2726933,2727329,2727313,2726923,2727345,2726939,2727320,2727304,2726914,2727336,2726930,2727326,2727310,2726920,2727342,2726936,2727333,2727317,2726927,2727349,2726943,2727322,2727306,2726916,2727338,2726932,2727328,2727312,2726922,2727344,2726938,2727319,2727303,2726913,2727335,2726929,2727325,2727309,2726919,2727341,2726935,2727331,2727315,2726925,2727347,2726941,2727332,2727316,2726926,2727348,2726942,2727321,2727305,2726915,2727337,2726931,2727327,2727311,2726921,2727343,2726937,2727318,2727302,2726912,2727334,2726928,2727324,2727308,2726918,2727340,2726934,2727330,2727314,2726924,2727346,2726940,2727618,2727617,2727620,2727619,2727621,2734546,2734552,2734544,2734550,2734545,2734551,2734548,2734554,2734547,2734553,2734549,2734555,2727352,2727836,2727384,2727368,2727400,2727358,2727842,2727390,2727374,2727406,2727849,2727833,2727381,2727365,2727397,2727355,2727839,2727387,2727371,2727403,2727362,2727846,2727394,2727378,2727410,2727351,2727835,2727383,2727367,2727399,2727357,2727841,2727389,2727373,2727405,2727848,2727832,2727380,2727364,2727396,2727354,2727838,2727386,2727370,2727402,2727360,2727844,2727392,2727376,2727408,2727361,2727845,2727393,2727377,2727409,2727350,2727834,2727382,2727366,2727398,2727356,2727840,2727388,2727372,2727404,2727847,2727831,2727379,2727363,2727395,2727353,2727837,2727385,2727369,2727401,2727359,2727843,2727391,2727375,2727407,2734060,2734066,2734058,2734064,2734059,2734065,2734062,2734068,2734061,2734067,2734063,2734069,2734295,2734301,2734293,2734299,2734294,2734300,2734297,2734303,2734296,2734302,2734298,2734304,2727436,2727432,2727444,2727440,2727448,2727435,2727431,2727443,2727439,2727447,2727438,2727434,2727446,2727442,2727450,2727437,2727433,2727445,2727441,2727449,2734084,2734090,2734082,2734088,2734083,2734089,2734086,2734092,2734085,2734091,2734087,2734093,2734319,2734325,2734317,2734323,2734318,2734324,2734321,2734327,2734320,2734326,2734322,2734328,2727635,2727633,2727639,2727637,2727641,2731688,2732163,2731668,2731955,2731915,2732203,2731708,2732183,2731935,2732412,2731687,2732162,2731667,2731954,2731914,2732202,2731707,2732182,2731934,2732411,2731686,2732161,2731666,2731953,2731913,2732201,2731706,2732181,2731933,2732410,2735929,2735935,2735927,2735933,2735928,2735934,2735931,2735937,2735930,2735936,2735932,2735938,2727658,2727657,2727660,2727659,2727661,2729777,2730019,2729766,2730008,2729986,2730229,2729788,2730030,2729997,2730240,2729776,2730018,2729765,2730007,2729985,2730228,2729787,2730029,2729996,2730239,2729775,2730017,2729764,2730006,2729984,2730227,2729786,2730028,2729995,2730238,2735953,2735959,2735951,2735957,2735952,2735958,2735955,2735961,2735954,2735960,2735956,2735962,2734594,2734789,2734592,2734787,2734593,2734788,2734596,2734791,2734595,2734790,2734597,2734792,2734831,2734837,2734829,2734835,2734830,2734836,2734833,2734839,2734832,2734838,2734834,2734840,2730531,2730763,2730522,2730754,2730736,2730781,2730727,2730772,2730745,2730977,2730535,2730767,2730526,2730758,2730740,2730785,2730731,2730776,2730749,2730981,2730530,2730762,2730521,2730753,2730735,2730780,2730726,2730771,2730744,2730976,2730536,2730768,2730527,2730759,2730741,2730786,2730732,2730777,2730750,2730982,2730537,2730769,2730528,2730760,2730742,2730787,2730733,2730778,2730751,2730983,2730533,2730765,2730524,2730756,2730738,2730783,2730729,2730774,2730747,2730979,2730532,2730764,2730523,2730755,2730737,2730782,2730728,2730773,2730746,2730978,2730534,2730766,2730525,2730757,2730739,2730784,2730730,2730775,2730748,2730980,2730529,2730761,2730520,2730752,2730734,2730779,2730538,2730770,2730743,2730788,2736186,2736192,2736184,2736190,2736185,2736191,2736188,2736194,2736187,2736193,2736189,2736195,43015480,43015495,43015477,43015492,43015486,43015501,43015483,43015498,43015489,43015504,43015481,43015496,43015478,43015493,43015487,43015502,43015484,43015499,43015490,43015505,43015482,43015497,43015479,43015494,43015488,43015503,43015485,43015500,43015491,43015506,2736443,2736449,2736441,2736447,2736442,2736448,2736445,2736451,2736444,2736450,2736446,2736452,2734343,2734540,2734341,2734538,2734342,2734539,2734536,2734542,2734344,2734541,2734537,2734543,2727648,2727647,2727650,2727649,2727651,2732922,2733166,2732911,2732966,2732944,2733188,2732933,2733177,2732955,2733199,2732921,2733165,2732910,2732965,2732943,2733187,2732932,2733176,2732954,2733198,2732920,2733164,2732909,2732964,2732942,2733186,2732931,2733175,2732953,2733197,2734570,2734576,2734568,2734574,2734569,2734575,2734572,2734578,2734571,2734577,2734573,2734579,43015420,43015435,43015417,43015432,43015426,43015441,43015423,43015438,43015429,43015444,43015421,43015436,43015418,43015433,43015427,43015442,43015424,43015439,43015430,43015445,43015422,43015437,43015419,43015434,43015428,43015443,43015425,43015440,43015431,43015446,2731225,2731250,2731036,2731245,2731235,2731260,2731230,2731255,2731240,2731265,2731226,2731251,2731037,2731246,2731236,2731261,2731231,2731256,2731241,2731266,2731227,2731252,2731038,2731247,2731237,2731262,2731232,2731257,2731242,2731267,2731224,2731249,2731035,2731244,2731234,2731259,2731229,2731254,2731239,2731264,2731223,2731248,2731034,2731243,2731233,2731258,2731228,2731253,2731238,2731263,2727609,2727607,2727613,2727611,2727615,2727610,2727608,2727614,2727612,2727616,2736210,2736216,2736208,2736214,2736209,2736215,2736212,2736218,2736211,2736217,2736213,2736219,2727057,2727039,2727093,2727075,2727738,2727063,2727045,2727726,2727081,2727744,2727054,2727036,2727090,2727072,2727735,2727060,2727042,2727096,2727078,2727741,2727067,2727049,2727730,2727085,2727748,2727056,2727038,2727092,2727074,2727737,2727062,2727044,2727098,2727080,2727743,2727053,2727035,2727089,2727071,2727734,2727059,2727041,2727095,2727077,2727740,2727065,2727047,2727728,2727083,2727746,2727066,2727048,2727729,2727084,2727747,2727055,2727037,2727091,2727073,2727736,2727061,2727043,2727097,2727079,2727742,2727052,2727034,2727088,2727070,2727733,2727058,2727040,2727094,2727076,2727739,2727064,2727046,2727727,2727082,2727745,2727463,2727461,2727467,2727465,2727469,2727464,2727462,2727468,2727466,2727470,2734807,2734813,2734805,2734811,2734806,2734812,2734809,2734815,2734808,2734814,2734810,2734816,2727772,2727756,2727804,2727788,2727820,2727778,2727762,2727810,2727794,2727826,2727769,2727753,2727801,2727785,2727817,2727775,2727759,2727807,2727791,2727823,2727782,2727766,2727814,2727798,2727830,2727771,2727755,2727803,2727787,2727819,2727777,2727761,2727809,2727793,2727825,2727768,2727752,2727800,2727784,2727816,2727774,2727758,2727806,2727790,2727822,2727780,2727764,2727812,2727796,2727828,2727781,2727765,2727813,2727797,2727829,2727770,2727754,2727802,2727786,2727818,2727776,2727760,2727808,2727792,2727824,2727767,2727751,2727799,2727783,2727815,2727773,2727757,2727805,2727789,2727821,2727779,2727763,2727811,2727795,2727827,2734048,2734054,2734046,2734052,2734047,2734053,2734050,2734056,2734049,2734055,2734051,2734057,2734283,2734289,2734094,2734287,2734282,2734288,2734285,2734291,2734284,2734290,2734286,2734292,2727418,2727414,2727426,2727422,2727430,2727416,2727412,2727424,2727420,2727428,2727415,2727411,2727423,2727419,2727427,2727417,2727413,2727425,2727421,2727429,2734072,2734078,2734070,2734076,2734071,2734077,2734074,2734080,2734073,2734079,2734075,2734081,2734307,2734313,2734305,2734311,2734306,2734312,2734309,2734315,2734308,2734314,2734310,2734316,2727625,2727623,2727629,2727627,2727631,2730928,2731214,2730721,2731194,2730968,2731443,2730948,2731423,2731174,2731463,2730927,2731213,2730720,2731193,2730967,2731442,2730947,2731422,2731173,2731462,2730926,2731212,2730719,2731192,2730966,2731441,2730946,2731421,2731172,2731461,2735727,2735733,2735725,2735731,2735726,2735732,2735729,2735735,2735728,2735734,2735730,2735926,2727653,2727652,2727655,2727654,2727656,2733410,2733465,2733210,2733454,2733432,2729744,2733421,2729733,2733443,2729755,2733220,2733464,2733209,2733453,2733431,2729743,2733420,2729732,2733442,2729754,2733219,2733463,2733208,2733452,2733430,2729742,2733419,2729731,2733441,2729753,2735941,2735947,2735939,2735945,2735940,2735946,2735943,2735949,2735942,2735948,2735944,2735950,2734582,2734588,2734580,2734586,2734581,2734587,2734584,2734590,2734583,2734589,2734585,2734591,2734819,2734825,2734817,2734823,2734818,2734824,2734821,2734827,2734820,2734826,2734822,2734828,2730254,2730486,2730245,2730477,2730272,2730504,2730263,2730495,2730281,2730513,2730258,2730490,2730249,2730481,2730276,2730508,2730267,2730499,2730285,2730517,2730253,2730485,2730244,2730289,2730271,2730503,2730262,2730494,2730280,2730512,2730259,2730491,2730250,2730482,2730277,2730509,2730268,2730500,2730286,2730518,2730260,2730492,2730251,2730483,2730278,2730510,2730269,2730501,2730287,2730519,2730256,2730488,2730247,2730479,2730274,2730506,2730265,2730497,2730283,2730515,2730255,2730487,2730246,2730478,2730273,2730505,2730264,2730496,2730282,2730514,2730257,2730489,2730248,2730480,2730275,2730507,2730266,2730498,2730284,2730516,2730252,2730484,2730243,2730288,2730270,2730502,2730261,2730493,2730279,2730511,2736174,2736180,2735987,2736178,2736173,2736179,2736176,2736182,2736175,2736181,2736177,2736183,43015450,43015465,43015447,43015462,43015456,43015471,43015453,43015468,43015459,43015474,43015451,43015466,43015448,43015463,43015457,43015472,43015454,43015469,43015460,43015475,43015452,43015467,43015449,43015464,43015458,43015473,43015455,43015470,43015461,43015476,2736431,2736437,2736429,2736435,2736430,2736436,2736433,2736439,2736432,2736438,2736434,2736440,2734331,2734337,2734329,2734335,2734330,2734336,2734333,2734339,2734332,2734338,2734334,2734340,2735965,2735971,2735963,2735969,2735964,2735970,2735967,2735973,2735966,2735972,2735968,2735974,2727643,2727642,2727645,2727644,2727646,2732434,2732678,2732423,2732667,2732456,2732700,2732445,2732689,2732467,2732711,2732433,2732677,2732422,2732666,2732455,2732699,2732444,2732688,2732466,2732710,2732432,2732676,2732421,2732665,2732454,2732698,2732443,2732687,2732465,2732709,2734558,2734564,2734556,2734562,2734557,2734563,2734560,2734566,2734559,2734565,2734561,2734567,43015390,43015405,43015387,43015402,43015396,43015411,43015393,43015408,43015399,43015414,43015391,43015406,43015388,43015403,43015397,43015412,43015394,43015409,43015400,43015415,43015392,43015407,43015389,43015404,43015398,43015413,43015395,43015410,43015401,43015416,2730991,2731016,2730986,2731011,2731001,2731026,2730996,2731021,2731006,2731031,2730992,2731017,2730987,2731012,2731002,2731027,2730997,2731022,2731007,2731032,2730993,2731018,2730988,2731013,2731003,2731028,2730998,2731023,2731008,2731033,2730990,2731015,2730985,2731010,2731000,2731025,2730995,2731020,2731005,2731030,2730989,2731014,2730984,2731009,2730999,2731024,2730994,2731019,2731004,2731029,2727474,2727472,2727604,2727602,2727606,2727473,2727471,2727603,2727601,2727605,2736198,2736204,2736196,2736202,2736197,2736203,2736200,2736206,2736199,2736205,2736201,2736207,2726967,2726949,2727003,2726985,2727021,2726973,2726955,2727009,2726991,2727027,2726964,2726946,2727000,2726982,2727018,2726970,2726952,2727006,2726988,2727024,2726977,2726959,2727013,2726995,2727031,2726966,2726948,2727002,2726984,2727020,2726972,2726954,2727008,2726990,2727026,2726963,2726945,2726999,2726981,2727017,2726969,2726951,2727005,2726987,2727023,2726975,2726957,2727011,2726993,2727029,2726976,2726958,2727012,2726994,2727030,2726965,2726947,2727001,2726983,2727019,2726971,2726953,2727007,2726989,2727025,2726962,2726944,2726998,2726980,2727016,2726968,2726950,2727004,2726986,2727022,2726974,2726956,2727010,2726992,2727028,2727454,2727452,2727458,2727456,2727460,2727453,2727451,2727457,2727455,2727459,2734795,2734801,2734793,2734799,2734794,2734800,2734797,2734803,2734796,2734802,2734798,2734804,2002191) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002187,2729943,2730416,2729923,2730209,2730169,2730456,2729963,2730436,2730189,2730476,2729949,2730422,2729929,2730215,2730175,2730462,2729969,2730442,2730195,2730668,2729952,2730425,2729932,2730218,2730178,2730465,2729972,2730445,2730198,2730671,2729946,2730419,2729926,2730212,2730172,2730459,2729966,2730439,2730192,2730665,2729942,2730415,2729922,2730208,2730168,2730455,2729962,2730435,2730188,2730475,2729948,2730421,2729928,2730214,2730174,2730461,2729968,2730441,2730194,2730667,2729951,2730424,2729931,2730217,2730177,2730464,2729971,2730444,2730197,2730670,2729945,2730418,2729925,2730211,2730171,2730458,2729965,2730438,2730191,2730664,2729954,2730427,2729934,2730220,2730180,2730467,2729974,2730447,2730200,2730673,2729953,2730426,2729933,2730219,2730179,2730466,2729973,2730446,2730199,2730672,2729941,2730414,2729921,2730207,2730167,2730454,2729961,2730434,2730187,2730474,2729947,2730420,2729927,2730213,2730173,2730460,2729967,2730440,2730193,2730666,2729950,2730423,2729930,2730216,2730176,2730463,2729970,2730443,2730196,2730669,2729944,2730417,2729924,2730210,2730170,2730457,2729964,2730437,2730190,2730663,2735223,2735420,2735221,2735227,2735222,2735228,2735225,2735422,2735224,2735421,2735226,2735423,2727323,2727307,2726917,2727339,2726933,2727329,2727313,2726923,2727345,2726939,2727320,2727304,2726914,2727336,2726930,2727326,2727310,2726920,2727342,2726936,2727333,2727317,2726927,2727349,2726943,2727322,2727306,2726916,2727338,2726932,2727328,2727312,2726922,2727344,2726938,2727319,2727303,2726913,2727335,2726929,2727325,2727309,2726919,2727341,2726935,2727331,2727315,2726925,2727347,2726941,2727332,2727316,2726926,2727348,2726942,2727321,2727305,2726915,2727337,2726931,2727327,2727311,2726921,2727343,2726937,2727318,2727302,2726912,2727334,2726928,2727324,2727308,2726918,2727340,2726934,2727330,2727314,2726924,2727346,2726940,2727618,2727617,2727620,2727619,2727621,2734546,2734552,2734544,2734550,2734545,2734551,2734548,2734554,2734547,2734553,2734549,2734555,2727352,2727836,2727384,2727368,2727400,2727358,2727842,2727390,2727374,2727406,2727849,2727833,2727381,2727365,2727397,2727355,2727839,2727387,2727371,2727403,2727362,2727846,2727394,2727378,2727410,2727351,2727835,2727383,2727367,2727399,2727357,2727841,2727389,2727373,2727405,2727848,2727832,2727380,2727364,2727396,2727354,2727838,2727386,2727370,2727402,2727360,2727844,2727392,2727376,2727408,2727361,2727845,2727393,2727377,2727409,2727350,2727834,2727382,2727366,2727398,2727356,2727840,2727388,2727372,2727404,2727847,2727831,2727379,2727363,2727395,2727353,2727837,2727385,2727369,2727401,2727359,2727843,2727391,2727375,2727407,2734060,2734066,2734058,2734064,2734059,2734065,2734062,2734068,2734061,2734067,2734063,2734069,2734295,2734301,2734293,2734299,2734294,2734300,2734297,2734303,2734296,2734302,2734298,2734304,2727436,2727432,2727444,2727440,2727448,2727435,2727431,2727443,2727439,2727447,2727438,2727434,2727446,2727442,2727450,2727437,2727433,2727445,2727441,2727449,2734084,2734090,2734082,2734088,2734083,2734089,2734086,2734092,2734085,2734091,2734087,2734093,2734319,2734325,2734317,2734323,2734318,2734324,2734321,2734327,2734320,2734326,2734322,2734328,2727635,2727633,2727639,2727637,2727641,2731688,2732163,2731668,2731955,2731915,2732203,2731708,2732183,2731935,2732412,2731687,2732162,2731667,2731954,2731914,2732202,2731707,2732182,2731934,2732411,2731686,2732161,2731666,2731953,2731913,2732201,2731706,2732181,2731933,2732410,2735929,2735935,2735927,2735933,2735928,2735934,2735931,2735937,2735930,2735936,2735932,2735938,2727658,2727657,2727660,2727659,2727661,2729777,2730019,2729766,2730008,2729986,2730229,2729788,2730030,2729997,2730240,2729776,2730018,2729765,2730007,2729985,2730228,2729787,2730029,2729996,2730239,2729775,2730017,2729764,2730006,2729984,2730227,2729786,2730028,2729995,2730238,2735953,2735959,2735951,2735957,2735952,2735958,2735955,2735961,2735954,2735960,2735956,2735962,2734594,2734789,2734592,2734787,2734593,2734788,2734596,2734791,2734595,2734790,2734597,2734792,2734831,2734837,2734829,2734835,2734830,2734836,2734833,2734839,2734832,2734838,2734834,2734840,2730531,2730763,2730522,2730754,2730736,2730781,2730727,2730772,2730745,2730977,2730535,2730767,2730526,2730758,2730740,2730785,2730731,2730776,2730749,2730981,2730530,2730762,2730521,2730753,2730735,2730780,2730726,2730771,2730744,2730976,2730536,2730768,2730527,2730759,2730741,2730786,2730732,2730777,2730750,2730982,2730537,2730769,2730528,2730760,2730742,2730787,2730733,2730778,2730751,2730983,2730533,2730765,2730524,2730756,2730738,2730783,2730729,2730774,2730747,2730979,2730532,2730764,2730523,2730755,2730737,2730782,2730728,2730773,2730746,2730978,2730534,2730766,2730525,2730757,2730739,2730784,2730730,2730775,2730748,2730980,2730529,2730761,2730520,2730752,2730734,2730779,2730538,2730770,2730743,2730788,2736186,2736192,2736184,2736190,2736185,2736191,2736188,2736194,2736187,2736193,2736189,2736195,43015480,43015495,43015477,43015492,43015486,43015501,43015483,43015498,43015489,43015504,43015481,43015496,43015478,43015493,43015487,43015502,43015484,43015499,43015490,43015505,43015482,43015497,43015479,43015494,43015488,43015503,43015485,43015500,43015491,43015506,2736443,2736449,2736441,2736447,2736442,2736448,2736445,2736451,2736444,2736450,2736446,2736452,2734343,2734540,2734341,2734538,2734342,2734539,2734536,2734542,2734344,2734541,2734537,2734543,2727648,2727647,2727650,2727649,2727651,2732922,2733166,2732911,2732966,2732944,2733188,2732933,2733177,2732955,2733199,2732921,2733165,2732910,2732965,2732943,2733187,2732932,2733176,2732954,2733198,2732920,2733164,2732909,2732964,2732942,2733186,2732931,2733175,2732953,2733197,2734570,2734576,2734568,2734574,2734569,2734575,2734572,2734578,2734571,2734577,2734573,2734579,43015420,43015435,43015417,43015432,43015426,43015441,43015423,43015438,43015429,43015444,43015421,43015436,43015418,43015433,43015427,43015442,43015424,43015439,43015430,43015445,43015422,43015437,43015419,43015434,43015428,43015443,43015425,43015440,43015431,43015446,2731225,2731250,2731036,2731245,2731235,2731260,2731230,2731255,2731240,2731265,2731226,2731251,2731037,2731246,2731236,2731261,2731231,2731256,2731241,2731266,2731227,2731252,2731038,2731247,2731237,2731262,2731232,2731257,2731242,2731267,2731224,2731249,2731035,2731244,2731234,2731259,2731229,2731254,2731239,2731264,2731223,2731248,2731034,2731243,2731233,2731258,2731228,2731253,2731238,2731263,2727609,2727607,2727613,2727611,2727615,2727610,2727608,2727614,2727612,2727616,2736210,2736216,2736208,2736214,2736209,2736215,2736212,2736218,2736211,2736217,2736213,2736219,2727057,2727039,2727093,2727075,2727738,2727063,2727045,2727726,2727081,2727744,2727054,2727036,2727090,2727072,2727735,2727060,2727042,2727096,2727078,2727741,2727067,2727049,2727730,2727085,2727748,2727056,2727038,2727092,2727074,2727737,2727062,2727044,2727098,2727080,2727743,2727053,2727035,2727089,2727071,2727734,2727059,2727041,2727095,2727077,2727740,2727065,2727047,2727728,2727083,2727746,2727066,2727048,2727729,2727084,2727747,2727055,2727037,2727091,2727073,2727736,2727061,2727043,2727097,2727079,2727742,2727052,2727034,2727088,2727070,2727733,2727058,2727040,2727094,2727076,2727739,2727064,2727046,2727727,2727082,2727745,2727463,2727461,2727467,2727465,2727469,2727464,2727462,2727468,2727466,2727470,2734807,2734813,2734805,2734811,2734806,2734812,2734809,2734815,2734808,2734814,2734810,2734816,2727772,2727756,2727804,2727788,2727820,2727778,2727762,2727810,2727794,2727826,2727769,2727753,2727801,2727785,2727817,2727775,2727759,2727807,2727791,2727823,2727782,2727766,2727814,2727798,2727830,2727771,2727755,2727803,2727787,2727819,2727777,2727761,2727809,2727793,2727825,2727768,2727752,2727800,2727784,2727816,2727774,2727758,2727806,2727790,2727822,2727780,2727764,2727812,2727796,2727828,2727781,2727765,2727813,2727797,2727829,2727770,2727754,2727802,2727786,2727818,2727776,2727760,2727808,2727792,2727824,2727767,2727751,2727799,2727783,2727815,2727773,2727757,2727805,2727789,2727821,2727779,2727763) or concept_id in (2727811,2727795,2727827,2734048,2734054,2734046,2734052,2734047,2734053,2734050,2734056,2734049,2734055,2734051,2734057,2734283,2734289,2734094,2734287,2734282,2734288,2734285,2734291,2734284,2734290,2734286,2734292,2727418,2727414,2727426,2727422,2727430,2727416,2727412,2727424,2727420,2727428,2727415,2727411,2727423,2727419,2727427,2727417,2727413,2727425,2727421,2727429,2734072,2734078,2734070,2734076,2734071,2734077,2734074,2734080,2734073,2734079,2734075,2734081,2734307,2734313,2734305,2734311,2734306,2734312,2734309,2734315,2734308,2734314,2734310,2734316,2727625,2727623,2727629,2727627,2727631,2730928,2731214,2730721,2731194,2730968,2731443,2730948,2731423,2731174,2731463,2730927,2731213,2730720,2731193,2730967,2731442,2730947,2731422,2731173,2731462,2730926,2731212,2730719,2731192,2730966,2731441,2730946,2731421,2731172,2731461,2735727,2735733,2735725,2735731,2735726,2735732,2735729,2735735,2735728,2735734,2735730,2735926,2727653,2727652,2727655,2727654,2727656,2733410,2733465,2733210,2733454,2733432,2729744,2733421,2729733,2733443,2729755,2733220,2733464,2733209,2733453,2733431,2729743,2733420,2729732,2733442,2729754,2733219,2733463,2733208,2733452,2733430,2729742,2733419,2729731,2733441,2729753,2735941,2735947,2735939,2735945,2735940,2735946,2735943,2735949,2735942,2735948,2735944,2735950,2734582,2734588,2734580,2734586,2734581,2734587,2734584,2734590,2734583,2734589,2734585,2734591,2734819,2734825,2734817,2734823,2734818,2734824,2734821,2734827,2734820,2734826,2734822,2734828,2730254,2730486,2730245,2730477,2730272,2730504,2730263,2730495,2730281,2730513,2730258,2730490,2730249,2730481,2730276,2730508,2730267,2730499,2730285,2730517,2730253,2730485,2730244,2730289,2730271,2730503,2730262,2730494,2730280,2730512,2730259,2730491,2730250,2730482,2730277,2730509,2730268,2730500,2730286,2730518,2730260,2730492,2730251,2730483,2730278,2730510,2730269,2730501,2730287,2730519,2730256,2730488,2730247,2730479,2730274,2730506,2730265,2730497,2730283,2730515,2730255,2730487,2730246,2730478,2730273,2730505,2730264,2730496,2730282,2730514,2730257,2730489,2730248,2730480,2730275,2730507,2730266,2730498,2730284,2730516,2730252,2730484,2730243,2730288,2730270,2730502,2730261,2730493,2730279,2730511,2736174,2736180,2735987,2736178,2736173,2736179,2736176,2736182,2736175,2736181,2736177,2736183,43015450,43015465,43015447,43015462,43015456,43015471,43015453,43015468,43015459,43015474,43015451,43015466,43015448,43015463,43015457,43015472,43015454,43015469,43015460,43015475,43015452,43015467,43015449,43015464,43015458,43015473,43015455,43015470,43015461,43015476,2736431,2736437,2736429,2736435,2736430,2736436,2736433,2736439,2736432,2736438,2736434,2736440,2734331,2734337,2734329,2734335,2734330,2734336,2734333,2734339,2734332,2734338,2734334,2734340,2735965,2735971,2735963,2735969,2735964,2735970,2735967,2735973,2735966,2735972,2735968,2735974,2727643,2727642,2727645,2727644,2727646,2732434,2732678,2732423,2732667,2732456,2732700,2732445,2732689,2732467,2732711,2732433,2732677,2732422,2732666,2732455,2732699,2732444,2732688,2732466,2732710,2732432,2732676,2732421,2732665,2732454,2732698,2732443,2732687,2732465,2732709,2734558,2734564,2734556,2734562,2734557,2734563,2734560,2734566,2734559,2734565,2734561,2734567,43015390,43015405,43015387,43015402,43015396,43015411,43015393,43015408,43015399,43015414,43015391,43015406,43015388,43015403,43015397,43015412,43015394,43015409,43015400,43015415,43015392,43015407,43015389,43015404,43015398,43015413,43015395,43015410,43015401,43015416,2730991,2731016,2730986,2731011,2731001,2731026,2730996,2731021,2731006,2731031,2730992,2731017,2730987,2731012,2731002,2731027,2730997,2731022,2731007,2731032,2730993,2731018,2730988,2731013,2731003,2731028,2730998,2731023,2731008,2731033,2730990,2731015,2730985,2731010,2731000,2731025,2730995,2731020,2731005,2731030,2730989,2731014,2730984,2731009,2730999,2731024,2730994,2731019,2731004,2731029,2727474,2727472,2727604,2727602,2727606,2727473,2727471,2727603,2727601,2727605,2736198,2736204,2736196,2736202,2736197,2736203,2736200,2736206,2736199,2736205,2736201,2736207,2726967,2726949,2727003,2726985,2727021,2726973,2726955,2727009,2726991,2727027,2726964,2726946,2727000,2726982,2727018,2726970,2726952,2727006,2726988,2727024,2726977,2726959,2727013,2726995,2727031,2726966,2726948,2727002,2726984,2727020,2726972,2726954,2727008,2726990,2727026,2726963,2726945,2726999,2726981,2727017,2726969,2726951,2727005,2726987,2727023,2726975,2726957,2727011,2726993,2727029,2726976,2726958,2727012,2726994,2727030,2726965,2726947,2727001,2726983,2727019,2726971,2726953,2727007,2726989,2727025,2726962,2726944,2726998,2726980,2727016,2726968,2726950,2727004,2726986,2727022,2726974,2726956,2727010,2726992,2727028,2727454,2727452,2727458,2727456,2727460,2727453,2727451,2727457,2727455,2727459,2734795,2734801,2734793,2734799,2734794,2734800,2734797,2734803,2734796,2734802,2734798,2734804,2002191)) ) I ) C; @@ -433,49 +433,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1095.sql b/inst/sql/sql_server/1095.sql index 65b7b9a4..45ee966c 100644 --- a/inst/sql/sql_server/1095.sql +++ b/inst/sql/sql_server/1095.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 86 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002027,2728555,2728556,2728557,2728410,2728412,2728546,2728548,2728540,2728542,2728561,2728562,2728563,2728567,2728568,2728569,2728552,2728554,2728407,2728409,2728543,2728545,2728413,2728539,2728558,2728559,2728560,2728564,2728565,2728566,2728549,2728551,2000061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002027,2728555,2728556,2728557,2728410,2728412,2728546,2728548,2728540,2728542,2728561,2728562,2728563,2728567,2728568,2728569,2728552,2728554,2728407,2728409,2728543,2728545,2728413,2728539,2728558,2728559,2728560,2728564,2728565,2728566,2728549,2728551,2000061)) ) I ) C; @@ -433,49 +433,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1097.sql b/inst/sql/sql_server/1097.sql index b32e9ca6..604fe4f7 100644 --- a/inst/sql/sql_server/1097.sql +++ b/inst/sql/sql_server/1097.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 88 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002489,2002487,2002485,2002486,2748708,2748729,2748718,2748739,2748713,2748728,2748734,2748723,2748744,2748710,2748731,2748948,2748720,2748741,2748958,2748715,2748736,2748953,2748725,2748943,2748963,2748712,2748733,2748950,2748722,2748743,2748960,2748717,2748738,2748955,2748727,2748945,2748965,2748711,2748732,2748949,2748721,2748742,2748959,2748716,2748737,2748954,2748726,2748944,2748964,2748709,2748730,2748947,2748719,2748740,2748957,2748714,2748735,2748952,2748724,2748942,2748962,2002462,2746751,2746753,2746757,2746786,2746788,2746790,2746792,2746794,2002470,2002468,2002482,2002466,2002467,2002502,2002491,2002490,2002488,2002483,2002471,2002469,2002463,2753144,2753145,2753146,2753147,2002464,2752710,2752711,2752708,2752709,2752706,2752707) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002489,2002487,2002485,2002486,2748708,2748729,2748718,2748739,2748713,2748728,2748734,2748723,2748744,2748710,2748731,2748948,2748720,2748741,2748958,2748715,2748736,2748953,2748725,2748943,2748963,2748712,2748733,2748950,2748722,2748743,2748960,2748717,2748738,2748955,2748727,2748945,2748965,2748711,2748732,2748949,2748721,2748742,2748959,2748716,2748737,2748954,2748726,2748944,2748964,2748709,2748730,2748947,2748719,2748740,2748957,2748714,2748735,2748952,2748724,2748942,2748962,2002462,2746751,2746753,2746757,2746786,2746788,2746790,2746792,2746794,2002470,2002468,2002482,2002466,2002467,2002502,2002491,2002490,2002488,2002483,2002471,2002469,2002463,2753144,2753145,2753146,2753147,2002464,2752710,2752711,2752708,2752709,2752706,2752707)) ) I ) C; @@ -433,49 +433,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1098.sql b/inst/sql/sql_server/1098.sql index 351cf282..dcc583b9 100644 --- a/inst/sql/sql_server/1098.sql +++ b/inst/sql/sql_server/1098.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 84 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003348,2750943,2750945,2750947,43017182,2003350,2003347,2003362,2003349,2753534,2753535,2003351) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003348,2750943,2750945,2750947,43017182,2003350,2003347,2003362,2003349,2753534,2753535,2003351)) ) I ) C; @@ -433,49 +433,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1099.sql b/inst/sql/sql_server/1099.sql index 137e5476..b418a043 100644 --- a/inst/sql/sql_server/1099.sql +++ b/inst/sql/sql_server/1099.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 83 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43016394,2747030,2747032,2747034,2747036,2747038,43016392,43016398,43016393,2000811,2000834,2000810,2000833,2000832,2000835,2002768,2002751,2002764,2002750,2002763,2002762,2002765,2002769,2002766,2002770,2000836,2753386,2753378,2753379,2753380,2753381,43017217,2753176,2753177,2753368,2753369,2753374,2753375,2753376,2753377,43017215,2753370,2753371,2753372,2753373,2753398,2753399,2753400,2753401,43017218,2753390,2753391,2753392,2753393,43017216) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43016394,2747030,2747032,2747034,2747036,2747038,43016392,43016398,43016393,2000811,2000834,2000810,2000833,2000832,2000835,2002768,2002751,2002764,2002750,2002763,2002762,2002765,2002769,2002766,2002770,2000836,2753386,2753378,2753379,2753380,2753381,43017217,2753176,2753177,2753368,2753369,2753374,2753375,2753376,2753377,43017215,2753370,2753371,2753372,2753373,2753398,2753399,2753400,2753401,43017218,2753390,2753391,2753392,2753393,43017216)) ) I ) C; @@ -433,49 +433,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/11.sql b/inst/sql/sql_server/11.sql index 592d8e56..b8bdcb49 100644 --- a/inst/sql/sql_server/11.sql +++ b/inst/sql/sql_server/11.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4223659,4272240,4309912) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4223659,4272240,4309912)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4223659,4272240,4309912) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4223659,4272240,4309912)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4158491,37396808,4219363,4221911,37205051,37205052,45772721,4225027,40484614,4092860,4090207,44782753) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4158491,37396808,4219363,4221911,37205051,37205052,45772721,4225027,40484614,4092860,4090207,44782753)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4158491,37396808,4219363,4221911,37205051,37205052,45772721,4225027,40484614,4092860,4090207,44782753) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4158491,37396808,4219363,4221911,37205051,37205052,45772721,4225027,40484614,4092860,4090207,44782753)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1100.sql b/inst/sql/sql_server/1100.sql index ef9d3581..b7e7280f 100644 --- a/inst/sql/sql_server/1100.sql +++ b/inst/sql/sql_server/1100.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 85 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2773930,2773932,2773934,2003806,2003803,2003805,2780485,2780486,2776775,2776776,2776777,2776778,2780477,2780478,2780479,2780480,2776783,2776972,2776973,2776974) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2773930,2773932,2773934,2003806,2003803,2003805,2780485,2780486,2776775,2776776,2776777,2776778,2780477,2780478,2780479,2780480,2776783,2776972,2776973,2776974)) ) I ) C; @@ -433,49 +433,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1101.sql b/inst/sql/sql_server/1101.sql index 12d14ce9..197bbcbd 100644 --- a/inst/sql/sql_server/1101.sql +++ b/inst/sql/sql_server/1101.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 84 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003623,2773711,2773713,2773715,2773717,2773719,2773691,2773693,2773695,2773697,2773699,2773701,2773703,2773705,2773707,2773709,2773681,2773683,2773685,2773687,2773689,2003611,2003610,2003608,2003622,2776763,2776764,2776765,2776766,2776755,2776756,2776759,2776760,2776761,2776762,2776753,2776754) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003623,2773711,2773713,2773715,2773717,2773719,2773691,2773693,2773695,2773697,2773699,2773701,2773703,2773705,2773707,2773709,2773681,2773683,2773685,2773687,2773689,2003611,2003610,2003608,2003622,2776763,2776764,2776765,2776766,2776755,2776756,2776759,2776760,2776761,2776762,2776753,2776754)) ) I ) C; @@ -433,49 +433,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1102.sql b/inst/sql/sql_server/1102.sql index 6eed84a9..42b64d39 100644 --- a/inst/sql/sql_server/1102.sql +++ b/inst/sql/sql_server/1102.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 82 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2001513,2001510,2001512,2001511,2001516,2001509,2725357,2725389,2725351,2725383,2725369,2725402,2725363,2725396,42894403,42894409,2725355,2725387,2725349,2725381,2725367,2725400,2725361,2725394,42894401,42894407,2725373,2725406,2724724,2724756,2724718,2724750,2724736,2725215,2724730,2724763,42894245,42894251,2724742,2725221,2724725,2724757,2724719,2724751,2724737,2725216,2724731,2724764,42894246,42894252,2724720,2724752,2724714,2724746,2724732,2724765,2724726,2724759,42894241,42894247,2724738,2725217,2724722,2724754,2724716,2724748,2724734,2725213,2724728,2724761,42894243,42894249,2724740,2725219,2724721,2724753,2724715,2724747,2724733,2724766,2724727,2724760,42894242,42894248,2724739,2725218,2724723,2724755,2724717,2724749,2724735,2725214,2724729,2724762,42894244,42894250,2724741,2725220,2725295,2725327,2725289,2725321,2725307,2725340,2725301,2725334,42894234,42894240,2725293,2725325,2725287,2725319,2725305,2725338,2725299,2725332,42894232,42894238,2725311,2725344,2725233,2725265,2725227,2725259,2725245,2725278,2725239,2725272,42894258,42894228,2725230,2725262,2725224,2725256,2725242,2725275,2725236,2725269,42894255,42894225,2725248,2725281,2725229,2725261,2725223,2725255,2725241,2725274,2725235,2725268,42894254,42894224,2725247,2725280,2725231,2725263,2725225,2725257,2725243,2725276,2725237,2725270,42894256,42894226,2725249,2725282,2725086,2725107,2725085,2725106,2725087,2725108,2725050,2725071,2725044,2725065,2725043,2725064,2725045,2725066,2001508,2001515,2001518,2001517,2001514) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2001513,2001510,2001512,2001511,2001516,2001509,2725357,2725389,2725351,2725383,2725369,2725402,2725363,2725396,42894403,42894409,2725355,2725387,2725349,2725381,2725367,2725400,2725361,2725394,42894401,42894407,2725373,2725406,2724724,2724756,2724718,2724750,2724736,2725215,2724730,2724763,42894245,42894251,2724742,2725221,2724725,2724757,2724719,2724751,2724737,2725216,2724731,2724764,42894246,42894252,2724720,2724752,2724714,2724746,2724732,2724765,2724726,2724759,42894241,42894247,2724738,2725217,2724722,2724754,2724716,2724748,2724734,2725213,2724728,2724761,42894243,42894249,2724740,2725219,2724721,2724753,2724715,2724747,2724733,2724766,2724727,2724760,42894242,42894248,2724739,2725218,2724723,2724755,2724717,2724749,2724735,2725214,2724729,2724762,42894244,42894250,2724741,2725220,2725295,2725327,2725289,2725321,2725307,2725340,2725301,2725334,42894234,42894240,2725293,2725325,2725287,2725319,2725305,2725338,2725299,2725332,42894232,42894238,2725311,2725344,2725233,2725265,2725227,2725259,2725245,2725278,2725239,2725272,42894258,42894228,2725230,2725262,2725224,2725256,2725242,2725275,2725236,2725269,42894255,42894225,2725248,2725281,2725229,2725261,2725223,2725255,2725241,2725274,2725235,2725268,42894254,42894224,2725247,2725280,2725231,2725263,2725225,2725257,2725243,2725276,2725237,2725270,42894256,42894226,2725249,2725282,2725086,2725107,2725085,2725106,2725087,2725108,2725050,2725071,2725044,2725065,2725043,2725064,2725045,2725066,2001508,2001515,2001518,2001517,2001514)) ) I ) C; @@ -433,49 +433,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1103.sql b/inst/sql/sql_server/1103.sql index 5f50506d..926110f7 100644 --- a/inst/sql/sql_server/1103.sql +++ b/inst/sql/sql_server/1103.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 83 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2001435,2001437,2001438,2001439,2001440,2001436,2725485,2725486,2725487,2725494,2725495,2725496,2725503,2725504,2725505,2725512,2725513,2725514,40756791,40756772,40756774,2001450,2001449,2001447,2001452,2001451,2001454,2001453,2001456,2001455,2001448,2001443,2001444,2001445,2001446,2001441,2001442,2001497,40756812,2726005,2726006,2726007,2726008,2726009,2726010,2726011,2726012,2726013,2726014,2726015,2726016,42894764,42894765,42894766,2726158,42894767,42894768,42894769,2726161,2726164,42894770,42894771,42894772,2726786,42898024,42898025,42898026,2726863,2726868,2726875,2726867,2726866,2726874,2726878,2726873,2726865,2726872,2726877,2726871,2726864,2726870,2726876,2726869,2726879,2726884,2726891,2726883,2726882,2726890,2726894,2726889,2726881,2726888,2726893,2726887,2726880,2726886,2726892,2726885,2726895,2726900,2726907,2726899,2726898,2726906,2726910,2726905,2726897,2726904,2726909,2726903,2726896,2726902,2726908,2726901,2726911,43015332,2726417,43015331,2726416,43015338,2726420,43015337,2726415,43015336,2726419,43015335,2726414,43015334,2726418,43015333,43015339,43015340,43015341,2727231,43015349,2727235,2727239,43015353,2727243,2727247,43015357,2727251,2727255,43015361,2727259,2727234,43015352,2727238,2727242,43015356,2727246,2727250,43015360,2727254,2727258,43015364,2727262,2727233,43015351,2727237,2727185,2727186,2727241,43015355,2727245,2727249,43015359,2727253,2727257,43015363,2727261,2727263,2727264,2727232,43015350,2727236,2727240,43015354,2727244,2727248,43015358,2727252,2727256,43015362,2727260,2001494,2726754,40756792,40756793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2001435,2001437,2001438,2001439,2001440,2001436,2725485,2725486,2725487,2725494,2725495,2725496,2725503,2725504,2725505,2725512,2725513,2725514,40756791,40756772,40756774,2001450,2001449,2001447,2001452,2001451,2001454,2001453,2001456,2001455,2001448,2001443,2001444,2001445,2001446,2001441,2001442,2001497,40756812,2726005,2726006,2726007,2726008,2726009,2726010,2726011,2726012,2726013,2726014,2726015,2726016,42894764,42894765,42894766,2726158,42894767,42894768,42894769,2726161,2726164,42894770,42894771,42894772,2726786,42898024,42898025,42898026,2726863,2726868,2726875,2726867,2726866,2726874,2726878,2726873,2726865,2726872,2726877,2726871,2726864,2726870,2726876,2726869,2726879,2726884,2726891,2726883,2726882,2726890,2726894,2726889,2726881,2726888,2726893,2726887,2726880,2726886,2726892,2726885,2726895,2726900,2726907,2726899,2726898,2726906,2726910,2726905,2726897,2726904,2726909,2726903,2726896,2726902,2726908,2726901,2726911,43015332,2726417,43015331,2726416,43015338,2726420,43015337,2726415,43015336,2726419,43015335,2726414,43015334,2726418,43015333,43015339,43015340,43015341,2727231,43015349,2727235,2727239,43015353,2727243,2727247,43015357,2727251,2727255,43015361,2727259,2727234,43015352,2727238,2727242,43015356,2727246,2727250,43015360,2727254,2727258,43015364,2727262,2727233,43015351,2727237,2727185,2727186,2727241,43015355,2727245,2727249,43015359,2727253,2727257,43015363,2727261,2727263,2727264,2727232,43015350,2727236,2727240,43015354,2727244,2727248,43015358,2727252,2727256,43015362,2727260,2001494,2726754,40756792,40756793)) ) I ) C; @@ -433,49 +433,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1104.sql b/inst/sql/sql_server/1104.sql index fe29b062..ca5694a0 100644 --- a/inst/sql/sql_server/1104.sql +++ b/inst/sql/sql_server/1104.sql @@ -7,13 +7,13 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4144461,2008237,2008234,4022173,4117346,4323715,4201540,4079128,4193981,4073411,4125928,44516054,4142651,4137859,4140847,2008236,4035109,4037780) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4144461,2008237,2008234,4022173,4117346,4323715,4201540,4079128,4193981,4073411,4125928,44516054,4142651,4137859,4140847,2008236,4035109,4037780)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4144461,2008237,2008234,4022173,4117346,4323715,4201540,4079128,4193981,4125928,44516054,4142651,4137859,2008236) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4144461,2008237,2008234,4022173,4117346,4323715,4201540,4079128,4193981,4125928,44516054,4142651,4137859,2008236)) ) I ) C; @@ -157,49 +157,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1105.sql b/inst/sql/sql_server/1105.sql index 76588ffa..1eabb06e 100644 --- a/inst/sql/sql_server/1105.sql +++ b/inst/sql/sql_server/1105.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193688,4307981,45763575) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193688,4307981,45763575)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193688,4307981,45763575) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193688,4307981,45763575)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4133765) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4133765)) ) I ) C; @@ -231,49 +231,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1106.sql b/inst/sql/sql_server/1106.sql index 8f18d6fd..3953905b 100644 --- a/inst/sql/sql_server/1106.sql +++ b/inst/sql/sql_server/1106.sql @@ -7,782 +7,782 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4135199,3363351,2107924,2107949,2107837,4283095,4240486,4142641,4234989,4035152,2107740) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135199,3363351,2107924,2107949,2107837,4283095,4240486,4142641,4234989,4035152,2107740)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4135199,3363351,2107924,2107949,2107837,4240486,4142641,4234989) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135199,3363351,2107924,2107949,2107837,4240486,4142641,4234989)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4236706) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4236706)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4236706) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4236706)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4195136) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4195136)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4195136) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4195136)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4021530) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4021530)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4021530) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4021530)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4127886,4127887,4021529,2110177,4023403,42538159,42538160,4032622,2110209,2110211,43018211,4138738,4306298,4306070,4072416,4070209,45769914,45769913,45769911) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4127886,4127887,4021529,2110177,4023403,42538159,42538160,4032622,2110209,2110211,43018211,4138738,4306298,4306070,4072416,4070209,45769914,45769913,45769911)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2110177,4023403,42538159,42538160,43018211,4306298) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2110177,4023403,42538159,42538160,43018211,4306298)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4096783) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4096783)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4096783) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4096783)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 34 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4234536) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4234536)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4234536) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4234536)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 38 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4312749) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4312749)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4312749) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4312749)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 45 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 46 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4101626) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4101626)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4101626) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4101626)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 47 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 48 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4078547,43531648) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4078547,43531648)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43531648) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43531648)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 51 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2811735,2896830,2839189,4345349,4322818,4067461,4069129,4312613,40487106,46270641,4142436,2109316,4251035) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2811735,2896830,2839189,4345349,4322818,4067461,4069129,4312613,40487106,46270641,4142436,2109316,4251035)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2811735,2896830,2839189,4345349) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2811735,2896830,2839189,4345349)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4030150,4314001,4147687,4076862,4311405,4272324,4249893,4304358,4250892,4300528,4138127,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4030150,4314001,4147687,4076862,4311405,4272324,4249893,4304358,4250892,4300528,4138127,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4030150,4314001,4147687,4076862,46273729) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4030150,4314001,4147687,4076862,46273729)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 55 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180074) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180074)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180074) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180074)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 56 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049675,4244434,4236715,42872711,2211642,4052252,2107574,4263586,4294254,4022030,40757028,2733576,4305183,2733582,2733567,4243023,4051031,40493483,40489434,40756876,2107882,2107931,2733577,2733579) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049675,4244434,4236715,42872711,2211642,4052252,2107574,4263586,4294254,4022030,40757028,2733576,4305183,2733582,2733567,4243023,4051031,40493483,40489434,40756876,2107882,2107931,2733577,2733579)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4049675) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4049675)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,46273729) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,46273729)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 57 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872694) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872694)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872694) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872694)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 58 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872696) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872696)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872696) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872696)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 59 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4022030) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4022030)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4022030) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4022030)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 61 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049675,3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049675,3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 62 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4031312,4030825,4120657) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4031312,4030825,4120657)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4031312,4030825,4120657) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4031312,4030825,4120657)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 63 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2006434,2006432,4297155,4001562,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034,2102700,2102701,2102712,3177626,36676345,36676344,40480531,4127484,4302594,4231761,2102734,4301336,2106769,4301338,2106770) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2006434,2006432,4297155,4001562,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034,2102700,2102701,2102712,3177626,36676345,36676344,40480531,4127484,4302594,4231761,2102734,4301336,2106769,4301338,2106770)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2006434,2006432,4297155,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2006434,2006432,4297155,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 64 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4203442,4121242,2002549,2108974,40483096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4203442,4121242,2002549,2108974,40483096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4203442,4121242,2002549,2108974,40483096) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4203442,4121242,2002549,2108974,40483096)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 65 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4141456,2003225,4141110) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4141456,2003225,4141110)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4141456,2003225,4141110) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4141456,2003225,4141110)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 66 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4187533,725062,2108937) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4187533,725062,2108937)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4187533,725062,2108937) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4187533,725062,2108937)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 67 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108486,4120425,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421,4125465,2108482,4012004,4100937,2108485,2102736,4229920,4208330) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108486,4120425,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421,4125465,2108482,4012004,4100937,2108485,2102736,4229920,4208330)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108486,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108486,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 68 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000882) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000882)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000882) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000882)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 69 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917,2108020) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917,2108020)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4138127,4042673,4272324,4300528,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4138127,4042673,4272324,4300528,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 70 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4315036,4286744,43531416) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4315036,4286744,43531416)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4315036,4286744,43531416) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4315036,4286744,43531416)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 71 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4219032,2006227,2006228,4338257,4264289,2105446,2105448,2105450,2105449,2784251,2784250,4143795,2006242,2105451,4119910) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4219032,2006227,2006228,4338257,4264289,2105446,2105448,2105450,2105449,2784251,2784250,4143795,2006242,2105451,4119910)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2006227,2006228) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2006227,2006228)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 72 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000882,2001339,2001342,42742510) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000882,2001339,2001342,42742510)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000882,2001339,2001342,42742510) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000882,2001339,2001342,42742510)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 73 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2722219,4241198) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2722219,4241198)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2722219,4241198) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2722219,4241198)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 74 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2109616,4047234) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2109616,4047234)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2109616,4047234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2109616,4047234)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 75 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216,4059308,4242997,2109368,4033555,4240962,4134888) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216,4059308,4242997,2109368,4033555,4240962,4134888)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673,4272324,4300528,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673,4272324,4300528,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 76 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761)) ) I ) C UNION ALL SELECT 78 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4022807,4021108,4304536,2773682,2773695,2109617,2773685,2109574,4288997,4027426,4270496,4118715,4010266,2109723,2109724,2109715,2773934,2109722,2773938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4022807,4021108,4304536,2773682,2773695,2109617,2773685,2109574,4288997,4027426,4270496,4118715,4010266,2109723,2109724,2109715,2773934,2109722,2773938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4270496,2109723,2109724,2109715,2109722) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4270496,2109723,2109724,2109715,2109722)) ) I ) C UNION ALL SELECT 79 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1201620,1154029,1174888,1126658,1103640,1110410,1124957,1125765,19026459,1103314,1102527) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1201620,1154029,1174888,1126658,1103640,1110410,1124957,1125765,19026459,1103314,1102527)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1201620,1154029,1174888,1126658,1103640,1110410,1124957,1125765,19026459,1103314,1102527) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1201620,1154029,1174888,1126658,1103640,1110410,1124957,1125765,19026459,1103314,1102527)) ) I ) C; @@ -1584,49 +1584,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1150.sql b/inst/sql/sql_server/1150.sql index e364654b..977e774c 100644 --- a/inst/sql/sql_server/1150.sql +++ b/inst/sql/sql_server/1150.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9203,262) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9203,262)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9203,262) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9203,262)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1151.sql b/inst/sql/sql_server/1151.sql index 8c4f6504..2769674a 100644 --- a/inst/sql/sql_server/1151.sql +++ b/inst/sql/sql_server/1151.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439776) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439776)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439776) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439776)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441535,4288480) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441535,4288480)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441535,4288480) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441535,4288480)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1152.sql b/inst/sql/sql_server/1152.sql index d73eb819..b9c7aae0 100644 --- a/inst/sql/sql_server/1152.sql +++ b/inst/sql/sql_server/1152.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (762049,44782752,435565,40481089,193512,4133004,4149782,44782762,762048,46271900,4317289,4124856,4318407,4055089,45757410,45757409,4203836,44782759,4205652,762046,762051,44811347,4033521,45773536,4203618,762047,36712892,4096099) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (762049,44782752,435565,40481089,193512,4133004,4149782,44782762,762048,46271900,4317289,4124856,4318407,4055089,45757410,45757409,4203836,44782759,4205652,762046,762051,44811347,4033521,45773536,4203618,762047,36712892,4096099)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44782752,40481089,4133004) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44782752,40481089,4133004)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36712971,435887,4179911,435031,4062264,438820,4089917,4269051) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36712971,435887,4179911,435031,4062264,438820,4089917,4269051)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36712971,435887,435031,4062264,438820) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36712971,435887,435031,4062264,438820)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1153.sql b/inst/sql/sql_server/1153.sql index 07e2b6ff..9fc3cbf5 100644 --- a/inst/sql/sql_server/1153.sql +++ b/inst/sql/sql_server/1153.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4196708) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4196708)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4196708) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4196708)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1154.sql b/inst/sql/sql_server/1154.sql index a96b3646..06477d96 100644 --- a/inst/sql/sql_server/1154.sql +++ b/inst/sql/sql_server/1154.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316139,40482727,4236658) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316139,40482727,4236658)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316139,40482727,4236658) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316139,40482727,4236658)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315295)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1155.sql b/inst/sql/sql_server/1155.sql index e2dc7c2f..04a924a4 100644 --- a/inst/sql/sql_server/1155.sql +++ b/inst/sql/sql_server/1155.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443454) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443454)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40479572,4046360,372435,377254,379778,443790,443864,444091,4046089,4046090,4129534) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40479572,4046360,372435,377254,379778,443790,443864,444091,4046089,4046090,4129534)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40479572,4046360) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40479572,4046360)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -353,49 +353,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1156.sql b/inst/sql/sql_server/1156.sql index a5e6bc46..d200e3ec 100644 --- a/inst/sql/sql_server/1156.sql +++ b/inst/sql/sql_server/1156.sql @@ -7,28 +7,28 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439847,432923,4148906,4144154,4111709,42535426,43530728,43530727,4108952,4111708,35609033) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439847,432923,4148906,4144154,4111709,42535426,43530728,43530727,4108952,4111708,35609033)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376713,4174299,36716544,4345688) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376713,4174299,36716544,4345688)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4174299,36716544,4345688) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4174299,36716544,4345688)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -348,49 +348,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1157.sql b/inst/sql/sql_server/1157.sql index 31fa3383..9da13e33 100644 --- a/inst/sql/sql_server/1157.sql +++ b/inst/sql/sql_server/1157.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (321052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (321052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (321052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (321052)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1158.sql b/inst/sql/sql_server/1158.sql index e8efd61e..5c6df6a3 100644 --- a/inst/sql/sql_server/1158.sql +++ b/inst/sql/sql_server/1158.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1112807) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1112807)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1112807) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1112807)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1159.sql b/inst/sql/sql_server/1159.sql index e9961370..7715087a 100644 --- a/inst/sql/sql_server/1159.sql +++ b/inst/sql/sql_server/1159.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36712982,315296,4215140,44784623,321318,77670) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36712982,315296,4215140,44784623,321318,77670)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36712982,315296,321318) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36712982,315296,321318)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1160.sql b/inst/sql/sql_server/1160.sql index 1c4791ac..9f066d8a 100644 --- a/inst/sql/sql_server/1160.sql +++ b/inst/sql/sql_server/1160.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1161.sql b/inst/sql/sql_server/1161.sql index 4e07c52d..c8820144 100644 --- a/inst/sql/sql_server/1161.sql +++ b/inst/sql/sql_server/1161.sql @@ -7,100 +7,100 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440383,4175329,40546087,4191716,4212469) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440383,4175329,40546087,4191716,4212469)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440383,4175329,40546087,4191716,4212469) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440383,4175329,40546087,4191716,4212469)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436665,442306,36684319,438727,40481798,443864,4239471,377527,435520,4224940,379784,433440)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436665) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436665)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436665) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436665)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4286201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4286201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4286201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4286201)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (433734,435235,433742,435783,440077) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (433734,435235,433742,435783,440077)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (433734,435235,433742,435783,440077) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (433734,435235,433742,435783,440077)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434318) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434318)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434318) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434318)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4182210,372608,4043378,373179,4104700,435088,4168666,380701,374009,4009705) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4182210,372608,4043378,373179,4104700,435088,4168666,380701,374009,4009705)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4182210,4043378,373179) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4182210,4043378,373179)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4152048,376095,37116464,36717598,377788,42535731,37311999,372610) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4152048,376095,37116464,36717598,377788,42535731,37311999,372610)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4152048,376095,37116464,36717598,377788,42535731,37311999,372610) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4152048,376095,37116464,36717598,377788,42535731,37311999,372610)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436073) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436073)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436073) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436073)) ) I ) C; @@ -645,49 +645,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1162.sql b/inst/sql/sql_server/1162.sql index 5e7c290a..78719709 100644 --- a/inst/sql/sql_server/1162.sql +++ b/inst/sql/sql_server/1162.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43020660,4185932,37109911,4177223,4127089,37109912,42537729,438172,316995,4108678,4124687,45766165,4108220,4058723,44783188,4080593,4108680,37109910,318443,44809539,45766212,37312532) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43020660,4185932,37109911,4177223,4127089,37109912,42537729,438172,316995,4108678,4124687,45766165,4108220,4058723,44783188,4080593,4108680,37109910,318443,44809539,45766212,37312532)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43020660,4185932,37109911,4177223,4127089,37109912,42537729,438172,316995,4108678,4124687,45766165,4108220,4058723,44783188,4080593,4108680,37109910,318443,44809539,45766212) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43020660,4185932,37109911,4177223,4127089,37109912,42537729,438172,316995,4108678,4124687,45766165,4108220,4058723,44783188,4080593,4108680,37109910,318443,44809539,45766212)) ) I ) C; @@ -118,49 +118,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1163.sql b/inst/sql/sql_server/1163.sql index 5165f812..5e30e4dc 100644 --- a/inst/sql/sql_server/1163.sql +++ b/inst/sql/sql_server/1163.sql @@ -7,89 +7,89 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193782,443611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193782,443611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193782,443611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193782,443611)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4146536,4032243,2617342) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4146536,4032243,2617342)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4146536,2617342) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4146536,2617342)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197320,444044) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197320,444044)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197320,444044) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197320,444044)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196455,37116834) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196455,37116834)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196455,37116834) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196455,37116834)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1314323) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1314323)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1314323) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1314323)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43009086,1304643,1301125) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43009086,1304643,1301125)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43009086,1304643,1301125) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43009086,1304643,1301125)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42539502,4324887) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42539502,4324887)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42539502,4324887) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42539502,4324887)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531)) ) I ) C; @@ -533,49 +533,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1164.sql b/inst/sql/sql_server/1164.sql index 7bfd6644..f50a33a2 100644 --- a/inst/sql/sql_server/1164.sql +++ b/inst/sql/sql_server/1164.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317009) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317009)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317009) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317009)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1165.sql b/inst/sql/sql_server/1165.sql index 9c698a23..86d40653 100644 --- a/inst/sql/sql_server/1165.sql +++ b/inst/sql/sql_server/1165.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4218106,4083236,4275257,4299712) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4218106,4083236,4275257,4299712)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4218106,4083236,4275257,4299712) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4218106,4083236,4275257,4299712)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439005) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439005)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439005) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439005)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -143,49 +143,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1166.sql b/inst/sql/sql_server/1166.sql index d03e3691..79aeaec6 100644 --- a/inst/sql/sql_server/1166.sql +++ b/inst/sql/sql_server/1166.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4141787,4021160,46273821,4190573,4216174,4295004,4058137,4209423) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4141787,4021160,46273821,4190573,4216174,4295004,4058137,4209423)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4141787,4021160,46273821,4190573,4216174,4295004,4058137,4209423) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4141787,4021160,46273821,4190573,4216174,4295004,4058137,4209423)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3654548,4103418) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3654548,4103418)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3654548,4103418) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3654548,4103418)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -143,49 +143,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1167.sql b/inst/sql/sql_server/1167.sql index 9fe3163a..b461dc39 100644 --- a/inst/sql/sql_server/1167.sql +++ b/inst/sql/sql_server/1167.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313459) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313459)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313459) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313459)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1168.sql b/inst/sql/sql_server/1168.sql index 03f73326..8f02ea5b 100644 --- a/inst/sql/sql_server/1168.sql +++ b/inst/sql/sql_server/1168.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4118089,4258693,4056272,4262920) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4118089,4258693,4056272,4262920)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4118089,4258693,4056272,4262920) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4118089,4258693,4056272,4262920)) ) I ) C; @@ -243,49 +243,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1169.sql b/inst/sql/sql_server/1169.sql index a6568b63..fe21be26 100644 --- a/inst/sql/sql_server/1169.sql +++ b/inst/sql/sql_server/1169.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200763,4212540) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200763,4212540)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200763,4212540) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200763,4212540)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1170.sql b/inst/sql/sql_server/1170.sql index 8aedc35e..9344d968 100644 --- a/inst/sql/sql_server/1170.sql +++ b/inst/sql/sql_server/1170.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432867) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432867)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432867) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432867)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1171.sql b/inst/sql/sql_server/1171.sql index 6c48f446..22c4a3c9 100644 --- a/inst/sql/sql_server/1171.sql +++ b/inst/sql/sql_server/1171.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140673)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1172.sql b/inst/sql/sql_server/1172.sql index 4023159b..77aea66f 100644 --- a/inst/sql/sql_server/1172.sql +++ b/inst/sql/sql_server/1172.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4281749) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4281749)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4281749) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4281749)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1173.sql b/inst/sql/sql_server/1173.sql index 89a574f0..a2ee27bd 100644 --- a/inst/sql/sql_server/1173.sql +++ b/inst/sql/sql_server/1173.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (194133) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (194133)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (194133) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (194133)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1174.sql b/inst/sql/sql_server/1174.sql index 120ae5dc..2bfe2790 100644 --- a/inst/sql/sql_server/1174.sql +++ b/inst/sql/sql_server/1174.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4301699) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4301699)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4301699) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4301699)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1175.sql b/inst/sql/sql_server/1175.sql index 7a637381..5fdd7175 100644 --- a/inst/sql/sql_server/1175.sql +++ b/inst/sql/sql_server/1175.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436073) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436073)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436073) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436073)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1176.sql b/inst/sql/sql_server/1176.sql index af646b2d..83005b34 100644 --- a/inst/sql/sql_server/1176.sql +++ b/inst/sql/sql_server/1176.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (132797,196236) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (132797,196236)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (132797,196236) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (132797,196236)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1177.sql b/inst/sql/sql_server/1177.sql index a3ed80ed..02644b7d 100644 --- a/inst/sql/sql_server/1177.sql +++ b/inst/sql/sql_server/1177.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46273719,46269690,42539533,46271075,3655976,36716978,35615340,37016114,312940,765888,319049,4266019,4195694,4191650) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46273719,46269690,42539533,46271075,3655976,36716978,35615340,37016114,312940,765888,319049,4266019,4195694,4191650)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46273719,46269690,42539533,46271075,3655976,36716978,35615340,37016114,312940,765888,319049,4266019,4195694,4191650) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46273719,46269690,42539533,46271075,3655976,36716978,35615340,37016114,312940,765888,319049,4266019,4195694,4191650)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1178.sql b/inst/sql/sql_server/1178.sql index 4166445c..7aba02ad 100644 --- a/inst/sql/sql_server/1178.sql +++ b/inst/sql/sql_server/1178.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (318800) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (318800)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (318800) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (318800)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1179.sql b/inst/sql/sql_server/1179.sql index 41f99636..503052c7 100644 --- a/inst/sql/sql_server/1179.sql +++ b/inst/sql/sql_server/1179.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3038553,36304833) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3038553,36304833)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3038553,36304833) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3038553,36304833)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4060985,4256640,45766204,433736,4176962,4081038) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4060985,4256640,45766204,433736,4176962,4081038)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4060985,4256640,45766204,433736,4176962,4081038) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4060985,4256640,45766204,433736,4176962,4081038)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3025315,4099154,3013762,3027492,3023166) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3025315,4099154,3013762,3027492,3023166)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3025315,4099154,3013762,3027492,3023166) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3025315,4099154,3013762,3027492,3023166)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4264825) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4264825)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4264825) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4264825)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -195,49 +195,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1180.sql b/inst/sql/sql_server/1180.sql index 7f074230..21b52080 100644 --- a/inst/sql/sql_server/1180.sql +++ b/inst/sql/sql_server/1180.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4116142,46269889,46273477,201606,37111373,46269952,4074815,46274082,46273478,4055019,81893) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4116142,46269889,46273477,201606,37111373,46269952,4074815,46274082,46273478,4055019,81893)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4116142,46269889,46273477,201606,37111373,46269952,4074815,46274082,46273478,4055019,81893) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4116142,46269889,46273477,201606,37111373,46269952,4074815,46274082,46273478,4055019,81893)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1181.sql b/inst/sql/sql_server/1181.sql index 3bb85e4f..19b43249 100644 --- a/inst/sql/sql_server/1181.sql +++ b/inst/sql/sql_server/1181.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42903427,920458,19050907,1507705,19061907,19086888,19017895,1518254,1555120,19055344,975125,19009116,1506270,19027186,1550557,1551099,19011127,977421,903963) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42903427,920458,19050907,1507705,19061907,19086888,19017895,1518254,1555120,19055344,975125,19009116,1506270,19027186,1550557,1551099,19011127,977421,903963)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42903427,920458,19050907,1507705,19061907,19086888,19017895,1518254,1555120,19055344,975125,19009116,1506270,19027186,1550557,1551099,19011127,977421,903963) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42903427,920458,19050907,1507705,19061907,19086888,19017895,1518254,1555120,19055344,975125,19009116,1506270,19027186,1550557,1551099,19011127,977421,903963)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 60,EVENT_DATE) as END_DATE -- unpad the end date by 60 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 60 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,60,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 60, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(60 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1182.sql b/inst/sql/sql_server/1182.sql index 63cd91b5..39fa7488 100644 --- a/inst/sql/sql_server/1182.sql +++ b/inst/sql/sql_server/1182.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (19021930,19022417,19129648,1189596,19024213,19015787,40799139,1124957,1174888,19050414,1126658,1110410,35197951,1119510,1201620,923829,1125765,1154029,19026459,1103640,1103314,1133201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (19021930,19022417,19129648,1189596,19024213,19015787,40799139,1124957,1174888,19050414,1126658,1110410,35197951,1119510,1201620,923829,1125765,1154029,19026459,1103640,1103314,1133201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (19021930,19022417,19129648,1189596,19024213,19015787,40799139,1124957,1174888,19050414,1126658,1110410,35197951,1119510,1201620,923829,1125765,1154029,19026459,1103640,1103314,1133201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (19021930,19022417,19129648,1189596,19024213,19015787,40799139,1124957,1174888,19050414,1126658,1110410,35197951,1119510,1201620,923829,1125765,1154029,19026459,1103640,1103314,1133201)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1183.sql b/inst/sql/sql_server/1183.sql index 1ec6c5f9..4eb66203 100644 --- a/inst/sql/sql_server/1183.sql +++ b/inst/sql/sql_server/1183.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44507780,42904177,19123696,19112534,19018520,35604901,1510417,740275,37497998,798874,19054995,750119,750146,40239995,795661,753860,713192,797399,19087394,705103,711584,702661,702685,19004254,759401,718122,19021932,19023286,734275,19023842,740910,734354,751347,19095776,19006586,35200286,19000921,715458,742267,19005629,745466,36878958,19020002,744798) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44507780,42904177,19123696,19112534,19018520,35604901,1510417,740275,37497998,798874,19054995,750119,750146,40239995,795661,753860,713192,797399,19087394,705103,711584,702661,702685,19004254,759401,718122,19021932,19023286,734275,19023842,740910,734354,751347,19095776,19006586,35200286,19000921,715458,742267,19005629,745466,36878958,19020002,744798)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44507780,42904177,19123696,19112534,19018520,35604901,1510417,740275,37497998,798874,19054995,750119,750146,40239995,795661,753860,713192,797399,19087394,705103,711584,702661,702685,19004254,759401,718122,19021932,19023286,734275,19023842,740910,734354,751347,19095776,19006586,35200286,19000921,715458,742267,19005629,745466,36878958,19020002,744798) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44507780,42904177,19123696,19112534,19018520,35604901,1510417,740275,37497998,798874,19054995,750119,750146,40239995,795661,753860,713192,797399,19087394,705103,711584,702661,702685,19004254,759401,718122,19021932,19023286,734275,19023842,740910,734354,751347,19095776,19006586,35200286,19000921,715458,742267,19005629,745466,36878958,19020002,744798)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1184.sql b/inst/sql/sql_server/1184.sql index 8dce068b..99073249 100644 --- a/inst/sql/sql_server/1184.sql +++ b/inst/sql/sql_server/1184.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (80180) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (80180)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (80180) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (80180)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (80484,438531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (80484,438531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (80484,438531) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (80484,438531)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1185.sql b/inst/sql/sql_server/1185.sql index d80855e6..9bfc0909 100644 --- a/inst/sql/sql_server/1185.sql +++ b/inst/sql/sql_server/1185.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (80502,40480160) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (80502,40480160)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (80502,40480160) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (80502,40480160)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1186.sql b/inst/sql/sql_server/1186.sql index 398b755b..554bde1d 100644 --- a/inst/sql/sql_server/1186.sql +++ b/inst/sql/sql_server/1186.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81902,194081) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81902,194081)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81902,194081) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81902,194081)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1187.sql b/inst/sql/sql_server/1187.sql index d6784afa..9f69f375 100644 --- a/inst/sql/sql_server/1187.sql +++ b/inst/sql/sql_server/1187.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1125315) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1125315)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1125315) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1125315)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1188.sql b/inst/sql/sql_server/1188.sql index 05964fb1..aea8fd61 100644 --- a/inst/sql/sql_server/1188.sql +++ b/inst/sql/sql_server/1188.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3000963,3027484) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3000963,3027484)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3000963,3027484) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3000963,3027484)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) ) I ) C; @@ -384,49 +384,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 365, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 365, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,365,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,365,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1189.sql b/inst/sql/sql_server/1189.sql index 15c5e4ed..085a9e9f 100644 --- a/inst/sql/sql_server/1189.sql +++ b/inst/sql/sql_server/1189.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36684319,441542) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36684319,441542)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36684319,441542) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36684319,441542)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4272468,4242704,4151704,440374,4021498,436074,4292195,440985,4238682,436676,437537,4229897,4023198,4021792,4021791,440083,4024443,4178928,4138454) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4272468,4242704,4151704,440374,4021498,436074,4292195,440985,4238682,436676,437537,4229897,4023198,4021792,4021791,440083,4024443,4178928,4138454)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4272468,4242704,440374,4021498,436074,4292195,440985,4238682,436676,437537,4229897,4023198,4021792,4021791,440083,4024443,4178928,4138454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4272468,4242704,440374,4021498,436074,4292195,440985,4238682,436676,437537,4229897,4023198,4021792,4021791,440083,4024443,4178928,4138454)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -129,49 +129,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/119.sql b/inst/sql/sql_server/119.sql index 04ab4791..6b44d05d 100644 --- a/inst/sql/sql_server/119.sql +++ b/inst/sql/sql_server/119.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (255891,4300204,4319305,4145240,37016279,46273369) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (255891,4300204,4319305,4145240,37016279,46273369)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (255891,4300204,4319305,4145240,37016279,46273369) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (255891,4300204,4319305,4145240,37016279,46273369)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1777087,1551099,1506270,1550557,1305058,19014878,40236987,1101898,19003999) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1777087,1551099,1506270,1550557,1305058,19014878,40236987,1101898,19003999)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1777087,1551099,1506270,1550557,1305058,19014878,40236987,1101898,19003999) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1777087,1551099,1506270,1550557,1305058,19014878,40236987,1101898,19003999)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (255891,4300204,4319305,4145240,37016279,46273369,439777,140214,45766714,74125,77074,194133,4272240,78517,138525,80809) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (255891,4300204,4319305,4145240,37016279,46273369,439777,140214,45766714,74125,77074,194133,4272240,78517,138525,80809)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (255891,4300204,4319305,4145240,37016279,46273369) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (255891,4300204,4319305,4145240,37016279,46273369)) ) I ) C; @@ -286,49 +286,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1190.sql b/inst/sql/sql_server/1190.sql index 44a61bd6..59dcb3aa 100644 --- a/inst/sql/sql_server/1190.sql +++ b/inst/sql/sql_server/1190.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21602472) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21602472)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21602472) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21602472)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1191.sql b/inst/sql/sql_server/1191.sql index 63ef8466..12066885 100644 --- a/inst/sql/sql_server/1191.sql +++ b/inst/sql/sql_server/1191.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193782,443611,443919,4268532,4300839,4032243,4059475,4324124,4120120,4322471,46270032,42539502,4206254,4206254,4019967,38003418,38003431,44784621) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193782,443611,443919,4268532,4300839,4032243,4059475,4324124,4120120,4322471,46270032,42539502,4206254,4206254,4019967,38003418,38003431,44784621)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193782,443611,443919,4268532,4300839,4032243,4059475,4324124,4120120,4322471,46270032,42539502,4206254,4206254,4019967,38003418,38003431) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193782,443611,443919,4268532,4300839,4032243,4059475,4324124,4120120,4322471,46270032,42539502,4206254,4206254,4019967,38003418,38003431)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192279,192359,193253,194385,195314,195834,201313,261071,444044,4128219,4263367,46271022,4177206,36716270) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192279,192359,193253,194385,195314,195834,201313,261071,444044,4128219,4263367,46271022,4177206,36716270)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192279,192359,194385,195314,195834,201313,261071,444044,4128219,4263367,46271022,4177206,36716270) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192279,192359,194385,195314,195834,201313,261071,444044,4128219,4263367,46271022,4177206,36716270)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197930,43530912,4066005,37116834,195014,195289,45769152,193782,443611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197930,43530912,4066005,37116834,195014,195289,45769152,193782,443611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197930,43530912,4066005,37116834,195014,195289,45769152,193782,443611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197930,43530912,4066005,37116834,195014,195289,45769152,193782,443611)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195072,194152,45768812,199991,197656,133810,192276,37018354,197036,313223,192279,75650,198124,197921,194685,4220238,4059452,46271022,4177206,439696,45757752,193519,4126297,443919,201111,45757477,4128228,36716270) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195072,194152,45768812,199991,197656,133810,192276,37018354,197036,313223,192279,75650,198124,197921,194685,4220238,4059452,46271022,4177206,439696,45757752,193519,4126297,443919,201111,45757477,4128228,36716270)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45768812,199991,133810,192276,192279,75650,4059452,46271022,4177206,439696,45757752,4126297,443919,45757477,4128228) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45768812,199991,133810,192276,192279,75650,4059452,46271022,4177206,439696,45757752,4126297,443919,45757477,4128228)) ) I ) C; @@ -193,49 +193,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1192.sql b/inst/sql/sql_server/1192.sql index 8c77885c..36179a3b 100644 --- a/inst/sql/sql_server/1192.sql +++ b/inst/sql/sql_server/1192.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (255573,258780) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (255573,258780)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (255573,258780) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (255573,258780)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1193.sql b/inst/sql/sql_server/1193.sql index 6049b61a..92610f7f 100644 --- a/inst/sql/sql_server/1193.sql +++ b/inst/sql/sql_server/1193.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435216,201254,40484648) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435216,201254,40484648)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435216,201254,40484648) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435216,201254,40484648)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195771) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195771)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (195771) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (195771)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443732,201826,40482801) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443732,201826,40482801)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443732,201826,40482801) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443732,201826,40482801)) ) I ) C; @@ -233,49 +233,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1194.sql b/inst/sql/sql_server/1194.sql index decc5e1a..64ea4a8a 100644 --- a/inst/sql/sql_server/1194.sql +++ b/inst/sql/sql_server/1194.sql @@ -7,67 +7,67 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443238,201820,442793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443238,201820,442793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443238,201820,442793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443238,201820,442793)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40484648,201254,435216,201254,195771,4058243,761051) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40484648,201254,435216,201254,195771,4058243,761051)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40484648,201254,435216,201254,195771,4058243,761051) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40484648,201254,435216,201254,195771,4058243,761051)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195771) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195771)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (195771) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (195771)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37059902,4184637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37059902,4184637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37059902,4184637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37059902,4184637)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21600744) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21600744)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21600744) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21600744)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216)) ) I ) C; @@ -266,49 +266,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1195.sql b/inst/sql/sql_server/1195.sql index 7310ba69..5bc1ed5b 100644 --- a/inst/sql/sql_server/1195.sql +++ b/inst/sql/sql_server/1195.sql @@ -7,17 +7,17 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (312437,4305080) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (312437,4305080)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (312437,4305080) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (312437,4305080)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4059022,4059021,4190875,4263848,4318857) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4059022,4059021,4190875,4263848,4318857)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -169,49 +169,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1196.sql b/inst/sql/sql_server/1196.sql index 5a9be3f2..d9487080 100644 --- a/inst/sql/sql_server/1196.sql +++ b/inst/sql/sql_server/1196.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (433595) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (433595)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (433595) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (433595)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4297361,4317260,376690,4078925,372903,380102,40482052,22350,438178) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4297361,4317260,376690,4078925,372903,380102,40482052,22350,438178)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4297361,4317260,376690,4078925,372903,380102,40482052,22350,438178) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4297361,4317260,376690,4078925,372903,380102,40482052,22350,438178)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1197.sql b/inst/sql/sql_server/1197.sql index 15a32768..639d9840 100644 --- a/inst/sql/sql_server/1197.sql +++ b/inst/sql/sql_server/1197.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112183,4103703,40482685,192671,2108900,28779,2002608,443530,2108878,4027663,198798) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112183,4103703,40482685,192671,2108900,28779,2002608,443530,2108878,4027663,198798)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112183,4103703,40482685,192671,2108900,28779,2002608,443530,2108878,4027663,198798) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112183,4103703,40482685,192671,2108900,28779,2002608,443530,2108878,4027663,198798)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4138962,4195231,4147683,4163865,195584,4222896,4296611,200769,4177387,434400,438795,4204555,24973,23808,4209746,4248429,4101104,197925,4291028) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4138962,4195231,4147683,4163865,195584,4222896,4296611,200769,4177387,434400,438795,4204555,24973,23808,4209746,4248429,4101104,197925,4291028)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4138962,4195231,4147683,4163865,195584,4222896,4296611,200769,4177387,434400,438795,4204555,24973,23808,4209746,4248429,4101104,197925,4291028) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4138962,4195231,4147683,4163865,195584,4222896,4296611,200769,4177387,434400,438795,4204555,24973,23808,4209746,4248429,4101104,197925,4291028)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -214,49 +214,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1198.sql b/inst/sql/sql_server/1198.sql index ccf91e43..3b0db011 100644 --- a/inst/sql/sql_server/1198.sql +++ b/inst/sql/sql_server/1198.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42709887,316866) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42709887,316866)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42709887,316866) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42709887,316866)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1199.sql b/inst/sql/sql_server/1199.sql index e0ec869e..fe5413b3 100644 --- a/inst/sql/sql_server/1199.sql +++ b/inst/sql/sql_server/1199.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050869,255848) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050869,255848)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050869,255848) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050869,255848)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45770911,4001167,4049965,36712839,252552) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45770911,4001167,4049965,36712839,252552)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45770911,4001167,4049965,36712839,252552) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45770911,4001167,4049965,36712839,252552)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/12.sql b/inst/sql/sql_server/12.sql index 3c464731..eabeb9b7 100644 --- a/inst/sql/sql_server/12.sql +++ b/inst/sql/sql_server/12.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4320791,260427,4283893) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4320791,260427,4283893)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4320791,260427,4283893) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4320791,260427,4283893)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1200.sql b/inst/sql/sql_server/1200.sql index c922e1ef..676df29c 100644 --- a/inst/sql/sql_server/1200.sql +++ b/inst/sql/sql_server/1200.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611)) ) I ) C; @@ -118,49 +118,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1201.sql b/inst/sql/sql_server/1201.sql index 63d8a24a..7ff4ce03 100644 --- a/inst/sql/sql_server/1201.sql +++ b/inst/sql/sql_server/1201.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45892419,902722,1790868,1560047,1836191,915981,1727443,1784749) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45892419,902722,1790868,1560047,1836191,915981,1727443,1784749)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45892419,902722,1790868,1560047,1836191,915981,1727443,1784749) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45892419,902722,1790868,1560047,1836191,915981,1727443,1784749)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1202.sql b/inst/sql/sql_server/1202.sql index 33d4bb8e..1e0f1a93 100644 --- a/inst/sql/sql_server/1202.sql +++ b/inst/sql/sql_server/1202.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1713905,1717963,1778262,1709170) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1713905,1717963,1778262,1709170)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1713905,1717963,1778262,1709170) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1713905,1717963,1778262,1709170)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1203.sql b/inst/sql/sql_server/1203.sql index a6698cd1..7c389096 100644 --- a/inst/sql/sql_server/1203.sql +++ b/inst/sql/sql_server/1203.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1769535,1771162,1786621,1768849,1774932,1775741,1738366,1778162,1796458,1747005,1796435,1774470,1773402,1749008,1776684,1749083,1777806,1748975,40230597,36878858,37498010,45892599) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1769535,1771162,1786621,1768849,1774932,1775741,1738366,1778162,1796458,1747005,1796435,1774470,1773402,1749008,1776684,1749083,1777806,1748975,40230597,36878858,37498010,45892599)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1769535,1771162,1786621,1768849,1774932,1775741,1738366,1778162,1796458,1747005,1796435,1774470,1773402,1749008,1776684,1749083,1777806,1748975,40230597,36878858,37498010,45892599) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1769535,1771162,1786621,1768849,1774932,1775741,1738366,1778162,1796458,1747005,1796435,1774470,1773402,1749008,1776684,1749083,1777806,1748975,40230597,36878858,37498010,45892599)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1204.sql b/inst/sql/sql_server/1204.sql index 4f872bc5..ca6fab30 100644 --- a/inst/sql/sql_server/1204.sql +++ b/inst/sql/sql_server/1204.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1797513,1592954,1716721,1742253,1716903,1721543,923081,1789276) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1797513,1592954,1716721,1742253,1716903,1721543,923081,1789276)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1797513,1592954,1716721,1742253,1716903,1721543,923081,1789276) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1797513,1592954,1716721,1742253,1716903,1721543,923081,1789276)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1205.sql b/inst/sql/sql_server/1205.sql index 815be066..18ffefbe 100644 --- a/inst/sql/sql_server/1205.sql +++ b/inst/sql/sql_server/1205.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45774861,45776147,19078399,40166675,1707687) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45774861,45776147,19078399,40166675,1707687)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45774861,45776147,19078399,40166675,1707687) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45774861,45776147,19078399,40166675,1707687)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1206.sql b/inst/sql/sql_server/1206.sql index 730df53c..d14a713a 100644 --- a/inst/sql/sql_server/1206.sql +++ b/inst/sql/sql_server/1206.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1734104,1750500,1746940,40239985) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1734104,1750500,1746940,40239985)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1734104,1750500,1746940,40239985) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1734104,1750500,1746940,40239985)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1207.sql b/inst/sql/sql_server/1207.sql index e416d34f..822271d3 100644 --- a/inst/sql/sql_server/1207.sql +++ b/inst/sql/sql_server/1207.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1715117) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1715117)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1715117) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1715117)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1208.sql b/inst/sql/sql_server/1208.sql index af3f7c9a..7f8e3917 100644 --- a/inst/sql/sql_server/1208.sql +++ b/inst/sql/sql_server/1208.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1736887,45775686) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1736887,45775686)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1736887,45775686) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1736887,45775686)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1209.sql b/inst/sql/sql_server/1209.sql index 905a462e..9aa320dc 100644 --- a/inst/sql/sql_server/1209.sql +++ b/inst/sql/sql_server/1209.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1713332,1717327,1740546,1800835,1724666,1713930,1724703,1728416,1729720,1746114,1702364) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1713332,1717327,1740546,1800835,1724666,1713930,1724703,1728416,1729720,1746114,1702364)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1713332,1717327,1740546,1800835,1724666,1713930,1724703,1728416,1729720,1746114,1702364) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1713332,1717327,1740546,1800835,1724666,1713930,1724703,1728416,1729720,1746114,1702364)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1210.sql b/inst/sql/sql_server/1210.sql index 7da5723f..68cd4709 100644 --- a/inst/sql/sql_server/1210.sql +++ b/inst/sql/sql_server/1210.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (915175,901845,948582) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (915175,901845,948582)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (915175,901845,948582) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (915175,901845,948582)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1211.sql b/inst/sql/sql_server/1211.sql index a385d50d..e87685b9 100644 --- a/inst/sql/sql_server/1211.sql +++ b/inst/sql/sql_server/1211.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1763204,1777417,19035953,1735947) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1763204,1777417,19035953,1735947)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1763204,1777417,19035953,1735947) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1763204,1777417,19035953,1735947)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1212.sql b/inst/sql/sql_server/1212.sql index fcab5e2b..4eb163a9 100644 --- a/inst/sql/sql_server/1212.sql +++ b/inst/sql/sql_server/1212.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (992716,1036252,1836391,1836410,1036425,1036475,964339,1836503,1836430) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (992716,1036252,1836391,1836410,1036425,1036475,964339,1836503,1836430)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (992716,1036252,1836391,1836410,1036425,1036475,964339,1836503,1836430) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (992716,1036252,1836391,1836410,1036425,1036475,964339,1836503,1836430)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1213.sql b/inst/sql/sql_server/1213.sql index 52dbd3de..e2333f6f 100644 --- a/inst/sql/sql_server/1213.sql +++ b/inst/sql/sql_server/1213.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1789515,1789517) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1789515,1789517)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1789515,1789517) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1789515,1789517)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1214.sql b/inst/sql/sql_server/1214.sql index 3e82defa..0dc56574 100644 --- a/inst/sql/sql_server/1214.sql +++ b/inst/sql/sql_server/1214.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1738521,35200469,1708880,35200953,1836948,925952) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1738521,35200469,1708880,35200953,1836948,925952)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1738521,35200469,1708880,35200953,1836948,925952) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1738521,35200469,1708880,35200953,1836948,925952)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 30,EVENT_DATE) as END_DATE -- unpad the end date by 30 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,30,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 30, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(30 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1215.sql b/inst/sql/sql_server/1215.sql index 4ec5438d..1b8ce8c0 100644 --- a/inst/sql/sql_server/1215.sql +++ b/inst/sql/sql_server/1215.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4002359,35226073,35225626,35225628,35225608,35225637,35226278,35226285,35226229,35225721,35225542,35226288,441523,441818,35226226,35225556,35225568,35226258,35226080,35226292,35226290,433997,35226224,35225673,35226227,438112,35226153,35225630,35226277,35225656,35226081,35226223,35226230,35226041,35225719,35226099,35225631,35225557,35226074,192735,438368,132853,321526,317510,45770892,138379,136056,36715801) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4002359,35226073,35225626,35225628,35225608,35225637,35226278,35226285,35226229,35225721,35225542,35226288,441523,441818,35226226,35225556,35225568,35226258,35226080,35226292,35226290,433997,35226224,35225673,35226227,438112,35226153,35225630,35226277,35225656,35226081,35226223,35226230,35226041,35225719,35226099,35225631,35225557,35226074,192735,438368,132853,321526,317510,45770892,138379,136056,36715801)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4002359,35226073,35225626,35225628,35225608,35225637,35226278,35226285,35226229,35225721,35225542,35226288,441523,441818,35226226,35225556,35225568,35226258,35226080,35226292,35226290,433997,35226224,35225673,35226227,438112,35226153,35225630,35226277,35225656,35226081,35226223,35226230,35226041,35225719,35226099,35225631,35225557,35226074,192735,438368,132853,321526,317510,45770892,138379,136056,36715801) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4002359,35226073,35225626,35225628,35225608,35225637,35226278,35226285,35226229,35225721,35225542,35226288,441523,441818,35226226,35225556,35225568,35226258,35226080,35226292,35226290,433997,35226224,35225673,35226227,438112,35226153,35225630,35226277,35225656,35226081,35226223,35226230,35226041,35225719,35226099,35225631,35225557,35226074,192735,438368,132853,321526,317510,45770892,138379,136056,36715801)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40483107,141932,138825,134460,24660,4198828,40568467,4066849,4163261,4129902,200962,4030593,4137430,4121123,4121115,3179081,4121264,4301874,4302298,4032353,4032352,4212885,46271435,4099224,40480576,4222402,4320651,4190190,315523,37016333,439412,4257050,4159967,4267646,4144956,4030445,4030443,4030442,4218974,133169,4227088,4145241,4098131,141663,36713297,36680584,4005251,4002355,4175485,137829,4031127,37109889,140065,3184470,4119473,4117422,437169,4120625,42600086,3181595,37016189,4030065,4035172,40490513,4121273,4100245,4055697,4305588,193308,192298,4187914,4130174,4221698,196943,200527,45768671,4004779,36717456,44808984,4033521,4099036,4209571,45769384,4030501,37397178,36713269,4071698,4165998,4215249,4063919,4211426,316084,4006786,37312009,37312008,37312007,42600054,4261334,4130205,4130201,312823,4130365,4130359,4286058,321212,4220553,4130683,4130696,4130835,4130833,4098158,4184174,4155627,4131138,4209041,42596555,42596554,42596557,42596556,441060,4168700,4131921,4312114,4119768,4062590,4120258,4120259,4112187,4185890,4267788,4087638,4112332,4112331,4130820,4133470,4133590,4133587,4133584,4133583,4133576,42599868,4130218,4130693,4130692,4131284,4131281,4131278,4131276,4131275,4301949,433738,4225549,4247081,438122,4170061,36713549,4098736,4083843,4031983,4113643,4263087,42600052,432347,4048191,4312636,4110496,4168030,438788,439042,4048179,4289744,4240089,4170139,4214454,4046076,44503407,45772061,45757539,44811174,46271149,42709929,44811075,44811072,42709827,46271919,46271920,44792588,44783829,45768843,44504639,44502152,44505300,44501504,44504670,44505190,44504989,44505301,44505353,44505347,44504671,44501123,44505191,44505778,44505537,44500207,44502477,44499835,44505803,44505592,44502422,40481474,36684466,36684808,37018338,37018339,37016101,36717229,36716938,40491854,36715805,37204521,36715813,36716858,36716857,36715814,37206735,36550462,36563360,36551025,36559846,36557558,36550165,36558595,36566329,36541374,36558587,36564896,36554450,36549814,36552184,36550050,37312396,36684806,36684805,37110097,36716622,37208300,37208301,37208302,37208299,37208304,37208305,37208307,37208303,37109300,40486580,36684436,36717482,37117095,37208024,37109301,37208027,37310605,37310606,37309708,37209414,36684823,37310570,37310478,37310607,37208043,37310611,37310608,37310477,36684824,37310609,37208042,37208041,40488416,37204169,37208028,37208044,37310603,37310604,37309709,37209413,36684822,37310569,37310476,37310610,37208040,37310612,37310595,37310475,36684810,37310596,36685059,37208308,37309615,37310473,37309605,37310474,36685060,37208309,37309607,37310471,37309606,37310472,40493479,40491463,40486061,40492930,40491465,40491466,40489401,40492541,37018635,40651279,37310753,37310754,37310751,36713364,37310752,37110363,37110353,37110351,37110355,37119140,37110361,37110362,37110357,37110360,37110352,37110350,37110354,37110364,37110358,37110359,37110356,37208311,37208312,36714924,36712736,36712737,37208246,36715804,40488415,40486025,40486581,37205048,37209429,37309703,37309762,37309758,37309712,37309759,42511843,36565888,36546593,36559298,36557345,36562915,36546302,36558951,36567742,36567176,36566010,36563506,36550658,36545881,36568333,42512808,42513415,42514255,42514244,42513603,42513533,42513800,42513768,42514183,42514320,42514342,42514161,42514180,42514146,42513002,42513658,42513006,42513656,42514295,42514358,42514274,42514169,42514213,42514212,42513702,42514064,42513851,42513624,42513654,42514175,42514200,42513763,42514215,42514205,42514107,42514185,42513450,42513643,42514140,42513398,42514343,42513495,42513594,42513647,42513852,42513674,42512995,42512996,42513022,42514130,36568288,36542305,36565085,42512662,42512227,36549387,36545036,36542689,36555197,36549492,36542718,36558394,36552084,36558974,36555224,36558268,36564103,36555416,36546796,36563863,36564422,36554772,36549058,36545463,36564887,36545775,36555466,36540900,36543284,36558882,36543342,36554422,36548862,36547007,36556609,42512007,36544857,36561174,36552928,36558337,36544342,36560738,36560392,36555995,36544990,36542483,36547480,36566252,36560751,36544915,36553613,36542158,36565933,36554529,36565828,36561262,36555363,36555437,36542484,36549357,36562765,36556908,36557517,36554766,36555427,36557890,36403116,760943,765273,760937,760939,765055,760944,760941,760940,760938,760945,760942,4173658,374882,36523288,4342871,3654613,4110709,4112078,4114354,4291593,36520987,36524084,36539479,36531885,36533885,36538207,36517633,4138332,4113639,4112866,4153884,4112852,4111801,4111918,4221643,4110856,4116079,4239454,4093949,4099347,4114336,4239724,4240908,4241532,442110,4239725,4240655,4239727,4240656,192273,4242190,4241533,4242191,4240909,4240910,4097712,4239728,4242192,4240913,28716,4241535,4239729,4241537,4240914,4134290,4097118,4093784,4097715,442111,4252861,4239731,4242193,4242194,4241538,4097866,4240915,4093782,4239733,201824,4239865,4239734,4242195,4240916,4242196,4241539,4241011,4239862,4242197,4242198,4242199,4241540,4221969,4242200,4239863,4241013,4242201,4241014,4239864,4242203,4242204,4241015,4241541,4290843,4241542,4241016,4241543,4093790,4239866,4240912,193439,74606,4112101,4242205,4241018,4239867,4093789,4242977,379769,4241544,4093950,4241020,4241635,442109,261255,4242206,4239868,4242207,4241021,4241022,4241636,4097729,4149471,4094694,4242208,4093786,24884,4239869,4241637,4239870,442108,4239871,4241023,4241638,376063,4241639,4241640,4094692,4241641,4239872,4242209,436948,4239873,4241025,4242333,4241642,4242334,77234,4252870,4242335,4239874,373982,4097719,373160,4093785,4093791,436936,4241026,4097117,4241027,4239876,4094566,4241643,442104,4241644,4241645,436062,374886,4242336,4239877,4241646,4239878,136937,4241030,4241031,73723,4241032,4239879,24602,198992,4241034,4242337,4241647,4239880,4097709,4241648,381252,4242338,4114356,4241035,4239882,198108,4241651,4239883,201817,4241039,4241652,4242340,4241653,132573,4241040,4239884,4110418,4241041,4239885,4243296,4239886,4001669,4243297,4243411,4242342,4239887,4242343,4239889,4241042,4242344,4243412,4239890,4093793,4239891,4097258,4243413,4241043,4239892,317814,4093781,4241044,4241045,4094693,4239893,4242345,4242346,433978,4113123,442098,4243415,4241047,4118991,4239894,4243416,4243417,4242347,4239895,442103,4239896,4239897,4327105,4240010,4240011,4240012,4242348,4240013,4243418,4241139,442100,4241140,4240015,195498,3173495,4242349,4241141,4094568,134604,442099,4241142,4243419,4243420,4243421,23731,4241019,4097730,4112578,4242350,4242351,4240017,4243422,4241143,4243424,4243425,135208,4156941,4243427,195209,35616882,35619341,4241144,440973,4097122,4241145,4240018,4241146,4094567,4097723,4241147,4097123,4241148,4097724,4242352,4097260,4242353,315505,4240019,4243428,4240020,4242356,4243432,4243433,4298845,4242357,30679,4242803,200670,373166,4097256,4242358,4242359,4242805,4242360,4093797,4242806,438105,4327112,4003171,4094563,4097115,4033324,4001665,4031134,4031253,4093794,4243434,4094695,372861,4097119,4240021,4240022,137813,4242361,4240028,4243435,4240023,4242362,4240024,4243436,4242808,4242363,4240025,4242364,4242365,4242366,4243437,4243438,4240027,4243439,4243440,4297822,4242367,442097,4112098,4243441,4112590,4110437,4097713,4337183,4093798,4242368,4300206,373432,4243442,4242809,4240030,4154632,4240031,4242810,4242490,4240032,4242811,4242812,4094564,4242813,4116216,4303106,433987,4093657,435205,4097865,199764,4243443,4243444,4243445,440063,4243563,4240034,444463,4240035,4243564,4243565,4242492,134304,4240036,4242493,4240037,4242494,4240038,4242495,4242814,4243566,4240039,4242496,4242497,75206,4240040,4242498,201823,4243568,4242499,4242815,4094562,4260193,4002344,4003178,4003177,4003827,4003826,4002350,4002349,4003174,4003176,4002351,4001322,4002346,4243569,198991,4240041,4243570,4093658,30356,28115,4097726,4242816,437251,4242817,77819,4047217,4240042,4242818,4240043,4243573,4097110,4242819,4242501,4240148,4242502,4242341,4242503,4240149,4242820,4243574,4240150,4240151,4243575,4240152,4242821,4242822,444457,434303,200671,4114353,433979,4240153,372272,4243576,4242505,4242974,4243577,4242823,434301,4240155,4242824,4242825,4242826,4242827,4243579,4001662,4242828,4097259,4240156,77517,4242507,74322,4242508,4240157,433981,438116,4242509,444459,3181557,138102,4242510,4240158,4243580,4096359,4240159,4242511,4242512,4242830,4242513,4242831,4242832,4242514,4242515,4096360,4242956,4242957,140966,4240160,4242516,4243582,4242517,4240161,4243583,4182185,198993,4243584,141248,4096365,444445,4240163,4243585,4242958,4240164,4242518,4093945,4242519,4096362,4243586,4240165,4242959,136057,4242960,4096364,4243587,4242961,434885,4242962,4243588,442105,201256,4240166,4243589,444456,444455,444454,4243590,35616611,35616486,444453,444452,194607,4240168,35616596,35616604,444451,444450,200060,444449,4243593,4242522,4242521,4097114,138117,4325198,4180119,135767,4113124,4240174,4243594,196061,4242965,4242524,4242966,4242967,4240175,4242968,4093788,4242653,4240176,4242654,4242969,4242970,4242656,4241654,4243595,4241655,4242971,436366,4242972,4243596,4242657,4242975,4097254,4241028,4113104,438107,4242658,4097722,141249,4243597,4242976,440668,4241657,439763,4241658,444444,4243598,4097262,4242978,4241659,4097261,4242979,4242980,4242660,4243599,4242981,4243720,4242661,4093787,4241660,4242982,4242662,4242983,198103,4242663,196377,4241661,78706,4242664,196364,195500,4243723,4243724,201244,4241662,4243725,4243726,4243727,4242665,4242984,4243728,77815,4242985,4243730,4242986,4242987,438390,4097257,4243731,4097274,4097857,4094714,435506,438990,761004,765198,761003,760997,765037,761005,761002,760998,4208806,4311572,4085712,4144015,4114352,4114186,4112099,4212795,4098959,4114355,4213516,3170462,4112861,4112756,4111934,4002901,4112599,4112972,4110560,4115129,72576,4116093,4099344,4093944,4116356,193431,4113121,193722,4156048,4175198,4333986,4115127,4093654,4097710,4114223,4113130,4112103,4110557,4115141,4111795,4098900,4097107,434605,4111796,4115146,4116353,4112583,4114351,4115136,4112741,4112851,4116352,4112594,432860,4116214,4112602,4081055,4110563,4114083,4151256,4113120,4099352,4096372,4079830,4110716,4116355,4151176,4113129,4116217,4111794,4111651,4170465,4115140,4112588,4116232,4111779,4097106,4111781,36403105,36403125,36403088,36539186,36531242,36534554,36519234,36527653,36537528,36530551,36527589,36534551,36537662,36533469,35622955,36522639,36537853,36532749,36526549,36523636,439083,4297799,751726,36533096,4186928,36520274,36540170,36539412,36533366,36523344,36522872,36517753,36540434,36531006,36527710,36520989,36533672,36522958,36532440,36539612,36529143,36523443,36523457,751707,36539425,36528019,36522028,36522933,36521827,36519362,36532754,36521463,36528735,761036,36523193,36519636,36537843,36521676,36528114,36526504,36525737,36527843,36525283,36524640,36535721,36521207,36530445,36530556,36523941,36519858,36539519,36524849,36403177) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40483107,141932,138825,134460,24660,4198828,40568467,4066849,4163261,4129902,200962,4030593,4137430,4121123,4121115,3179081,4121264,4301874,4302298,4032353,4032352,4212885,46271435,4099224,40480576,4222402,4320651,4190190,315523,37016333,439412,4257050,4159967,4267646,4144956,4030445,4030443,4030442,4218974,133169,4227088,4145241,4098131,141663,36713297,36680584,4005251,4002355,4175485,137829,4031127,37109889,140065,3184470,4119473,4117422,437169,4120625,42600086,3181595,37016189,4030065,4035172,40490513,4121273,4100245,4055697,4305588,193308,192298,4187914,4130174,4221698,196943,200527,45768671,4004779,36717456,44808984,4033521,4099036,4209571,45769384,4030501,37397178,36713269,4071698,4165998,4215249,4063919,4211426,316084,4006786,37312009,37312008,37312007,42600054,4261334,4130205,4130201,312823,4130365,4130359,4286058,321212,4220553,4130683,4130696,4130835,4130833,4098158,4184174,4155627,4131138,4209041,42596555,42596554,42596557,42596556,441060,4168700,4131921,4312114,4119768,4062590,4120258,4120259,4112187,4185890,4267788,4087638,4112332,4112331,4130820,4133470,4133590,4133587,4133584,4133583,4133576,42599868,4130218,4130693,4130692,4131284,4131281,4131278,4131276,4131275,4301949,433738,4225549,4247081,438122,4170061,36713549,4098736,4083843,4031983,4113643,4263087,42600052,432347,4048191,4312636,4110496,4168030,438788,439042,4048179,4289744,4240089,4170139,4214454,4046076,44503407,45772061,45757539,44811174,46271149,42709929,44811075,44811072,42709827,46271919,46271920,44792588,44783829,45768843,44504639,44502152,44505300,44501504,44504670,44505190,44504989,44505301,44505353,44505347,44504671,44501123,44505191,44505778,44505537,44500207,44502477,44499835,44505803,44505592,44502422,40481474,36684466,36684808,37018338,37018339,37016101,36717229,36716938,40491854,36715805,37204521,36715813,36716858,36716857,36715814,37206735,36550462,36563360,36551025,36559846,36557558,36550165,36558595,36566329,36541374,36558587,36564896,36554450,36549814,36552184,36550050,37312396,36684806,36684805,37110097,36716622,37208300,37208301,37208302,37208299,37208304,37208305,37208307,37208303,37109300,40486580,36684436,36717482,37117095,37208024,37109301,37208027,37310605,37310606,37309708,37209414,36684823,37310570,37310478,37310607,37208043,37310611,37310608,37310477,36684824,37310609,37208042,37208041,40488416,37204169,37208028,37208044,37310603,37310604,37309709,37209413,36684822,37310569,37310476,37310610,37208040,37310612,37310595,37310475,36684810,37310596,36685059,37208308,37309615,37310473,37309605,37310474,36685060,37208309,37309607,37310471,37309606,37310472,40493479,40491463,40486061,40492930,40491465,40491466,40489401,40492541,37018635,40651279,37310753,37310754,37310751,36713364,37310752,37110363,37110353,37110351,37110355,37119140,37110361,37110362,37110357,37110360,37110352,37110350,37110354,37110364,37110358,37110359,37110356,37208311,37208312,36714924,36712736,36712737,37208246,36715804,40488415,40486025,40486581,37205048,37209429,37309703,37309762,37309758,37309712,37309759,42511843,36565888,36546593,36559298,36557345,36562915,36546302,36558951,36567742,36567176,36566010,36563506,36550658,36545881,36568333,42512808,42513415,42514255,42514244,42513603,42513533,42513800,42513768,42514183,42514320,42514342,42514161,42514180,42514146,42513002,42513658,42513006,42513656,42514295,42514358,42514274,42514169,42514213,42514212,42513702,42514064,42513851,42513624,42513654,42514175,42514200,42513763,42514215,42514205,42514107,42514185,42513450,42513643,42514140,42513398,42514343,42513495,42513594,42513647,42513852,42513674,42512995,42512996,42513022,42514130,36568288,36542305,36565085,42512662,42512227,36549387,36545036,36542689,36555197,36549492,36542718,36558394,36552084,36558974,36555224,36558268,36564103,36555416,36546796,36563863,36564422,36554772,36549058,36545463,36564887,36545775,36555466,36540900,36543284,36558882,36543342,36554422,36548862,36547007,36556609,42512007,36544857,36561174,36552928,36558337,36544342,36560738,36560392,36555995,36544990,36542483,36547480,36566252,36560751,36544915,36553613,36542158,36565933,36554529,36565828,36561262,36555363,36555437,36542484,36549357,36562765,36556908,36557517,36554766,36555427,36557890,36403116,760943,765273,760937,760939,765055,760944,760941,760940,760938,760945,760942,4173658,374882,36523288,4342871,3654613,4110709,4112078,4114354,4291593,36520987,36524084,36539479,36531885,36533885,36538207,36517633,4138332,4113639,4112866,4153884,4112852,4111801,4111918,4221643,4110856,4116079,4239454,4093949,4099347,4114336,4239724,4240908,4241532,442110,4239725,4240655,4239727,4240656,192273,4242190,4241533,4242191,4240909,4240910,4097712,4239728,4242192,4240913,28716,4241535,4239729,4241537,4240914,4134290,4097118,4093784,4097715,442111,4252861,4239731,4242193,4242194,4241538,4097866,4240915,4093782,4239733,201824,4239865,4239734,4242195,4240916,4242196,4241539,4241011,4239862,4242197,4242198,4242199,4241540,4221969,4242200,4239863,4241013,4242201,4241014,4239864,4242203,4242204,4241015,4241541,4290843,4241542,4241016,4241543,4093790,4239866,4240912,193439,74606,4112101,4242205,4241018,4239867,4093789,4242977,379769,4241544,4093950,4241020,4241635,442109,261255,4242206,4239868,4242207,4241021,4241022,4241636,4097729,4149471,4094694,4242208,4093786,24884,4239869,4241637,4239870,442108,4239871,4241023,4241638,376063,4241639,4241640,4094692,4241641,4239872,4242209,436948,4239873,4241025,4242333,4241642,4242334,77234,4252870,4242335,4239874,373982,4097719,373160,4093785,4093791,436936,4241026,4097117,4241027,4239876,4094566,4241643,442104,4241644,4241645,436062,374886,4242336,4239877,4241646,4239878,136937,4241030,4241031,73723,4241032,4239879,24602,198992,4241034,4242337,4241647,4239880,4097709,4241648,381252,4242338,4114356,4241035,4239882,198108,4241651,4239883,201817,4241039,4241652,4242340,4241653,132573,4241040,4239884,4110418,4241041,4239885,4243296,4239886,4001669,4243297,4243411,4242342,4239887,4242343,4239889,4241042,4242344,4243412,4239890,4093793,4239891,4097258,4243413,4241043,4239892,317814,4093781,4241044,4241045,4094693,4239893,4242345,4242346,433978,4113123,442098,4243415,4241047,4118991,4239894,4243416,4243417,4242347,4239895,442103,4239896,4239897,4327105,4240010,4240011,4240012,4242348,4240013,4243418,4241139,442100,4241140,4240015,195498,3173495,4242349,4241141,4094568,134604,442099,4241142,4243419,4243420,4243421,23731,4241019,4097730,4112578,4242350,4242351,4240017,4243422,4241143,4243424,4243425,135208,4156941,4243427,195209,35616882,35619341,4241144,440973,4097122,4241145,4240018,4241146,4094567,4097723,4241147,4097123,4241148,4097724,4242352,4097260,4242353,315505,4240019,4243428,4240020,4242356,4243432,4243433,4298845,4242357,30679,4242803,200670,373166,4097256,4242358,4242359,4242805,4242360,4093797,4242806,438105,4327112,4003171,4094563,4097115,4033324,4001665,4031134,4031253,4093794,4243434,4094695,372861,4097119,4240021,4240022,137813,4242361,4240028,4243435,4240023,4242362,4240024,4243436,4242808,4242363,4240025,4242364,4242365,4242366,4243437,4243438,4240027,4243439,4243440,4297822,4242367,442097,4112098,4243441,4112590,4110437,4097713,4337183,4093798,4242368,4300206,373432,4243442,4242809,4240030,4154632,4240031,4242810,4242490,4240032,4242811,4242812,4094564,4242813,4116216,4303106,433987,4093657,435205,4097865,199764,4243443,4243444,4243445,440063,4243563,4240034,444463,4240035,4243564,4243565,4242492,134304,4240036,4242493,4240037,4242494,4240038,4242495,4242814,4243566,4240039,4242496,4242497,75206,4240040,4242498,201823,4243568,4242499,4242815,4094562,4260193,4002344,4003178,4003177,4003827,4003826,4002350,4002349,4003174,4003176,4002351,4001322,4002346,4243569,198991,4240041,4243570,4093658,30356,28115,4097726,4242816,437251,4242817,77819,4047217,4240042,4242818,4240043,4243573,4097110,4242819,4242501,4240148,4242502,4242341,4242503,4240149,4242820,4243574,4240150,4240151,4243575,4240152,4242821,4242822,444457,434303,200671,4114353,433979,4240153,372272,4243576,4242505,4242974,4243577,4242823,434301,4240155,4242824,4242825,4242826,4242827,4243579,4001662,4242828,4097259,4240156,77517,4242507,74322,4242508,4240157,433981,438116,4242509,444459,3181557,138102,4242510,4240158,4243580,4096359,4240159) or concept_id in (4242511,4242512,4242830,4242513,4242831,4242832,4242514,4242515,4096360,4242956,4242957,140966,4240160,4242516,4243582,4242517,4240161,4243583,4182185,198993,4243584,141248,4096365,444445,4240163,4243585,4242958,4240164,4242518,4093945,4242519,4096362,4243586,4240165,4242959,136057,4242960,4096364,4243587,4242961,434885,4242962,4243588,442105,201256,4240166,4243589,444456,444455,444454,4243590,35616611,35616486,444453,444452,194607,4240168,35616596,35616604,444451,444450,200060,444449,4243593,4242522,4242521,4097114,138117,4325198,4180119,135767,4113124,4240174,4243594,196061,4242965,4242524,4242966,4242967,4240175,4242968,4093788,4242653,4240176,4242654,4242969,4242970,4242656,4241654,4243595,4241655,4242971,436366,4242972,4243596,4242657,4242975,4097254,4241028,4113104,438107,4242658,4097722,141249,4243597,4242976,440668,4241657,439763,4241658,444444,4243598,4097262,4242978,4241659,4097261,4242979,4242980,4242660,4243599,4242981,4243720,4242661,4093787,4241660,4242982,4242662,4242983,198103,4242663,196377,4241661,78706,4242664,196364,195500,4243723,4243724,201244,4241662,4243725,4243726,4243727,4242665,4242984,4243728,77815,4242985,4243730,4242986,4242987,438390,4097257,4243731,4097274,4097857,4094714,435506,438990,761004,765198,761003,760997,765037,761005,761002,760998,4208806,4311572,4085712,4144015,4114352,4114186,4112099,4212795,4098959,4114355,4213516,3170462,4112861,4112756,4111934,4002901,4112599,4112972,4110560,4115129,72576,4116093,4099344,4093944,4116356,193431,4113121,193722,4156048,4175198,4333986,4115127,4093654,4097710,4114223,4113130,4112103,4110557,4115141,4111795,4098900,4097107,434605,4111796,4115146,4116353,4112583,4114351,4115136,4112741,4112851,4116352,4112594,432860,4116214,4112602,4081055,4110563,4114083,4151256,4113120,4099352,4096372,4079830,4110716,4116355,4151176,4113129,4116217,4111794,4111651,4170465,4115140,4112588,4116232,4111779,4097106,4111781,36403105,36403125,36403088,36539186,36531242,36534554,36519234,36527653,36537528,36530551,36527589,36534551,36537662,36533469,35622955,36522639,36537853,36532749,36526549,36523636,439083,4297799,751726,36533096,4186928,36520274,36540170,36539412,36533366,36523344,36522872,36517753,36540434,36531006,36527710,36520989,36533672,36522958,36532440,36539612,36529143,36523443,36523457,751707,36539425,36528019,36522028,36522933,36521827,36519362,36532754,36521463,36528735,761036,36523193,36519636,36537843,36521676,36528114,36526504,36525737,36527843,36525283,36524640,36535721,36521207,36530445,36530556,36523941,36519858,36539519,36524849,36403177)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40483107,141932,138825,134460,24660,4198828,40568467,4066849,4163261,4129902,200962,4030593,4137430,4121123,4121115,3179081,4121264,4301874,4302298,4032353,4032352,4212885,46271435,4099224,40480576,4222402,4320651,4190190,315523,37016333,439412,4257050,4159967,4267646,4144956,4030445,4030443,4030442,4218974,133169,4227088,4145241,4098131,141663,36713297,36680584,4005251,4002355,4175485,137829,4031127,37109889,140065,3184470,4119473,4117422,437169,4120625,42600086,3181595,37016189,4030065,4035172,40490513,4121273,4100245,4055697,4305588,193308,192298,4187914,4130174,4221698,196943,200527,45768671,4004779,36717456,44808984,4033521,4099036,4209571,45769384,4030501,37397178,36713269,4071698,4165998,4215249,4063919,4211426,316084,4006786,37312009,37312008,37312007,42600054,4261334,4130205,4130201,312823,4130365,4130359,4286058,321212,4220553,4130683,4130696,4130835,4130833,4098158,4184174,4155627,4131138,4209041,42596555,42596554,42596557,42596556,441060,4168700,4131921,4312114,4119768,4062590,4120258,4120259,4112187,4185890,4267788,4087638,4112332,4112331,4130820,4133470,4133590,4133587,4133584,4133583,4133576,42599868,4130218,4130693,4130692,4131284,4131281,4131278,4131276,4131275,4301949,433738,4225549,4247081,438122,4170061,36713549,4098736,4083843,4031983,4113643,4263087,42600052,432347,4048191,4312636,4110496,4168030,438788,439042,4048179,4289744,4240089,4170139,4214454,4046076,44503407,45772061,45757539,44811174,46271149,42709929,44811075,44811072,42709827,46271919,46271920,44792588,44783829,45768843,44504639,44502152,44505300,44501504,44504670,44505190,44504989,44505301,44505353,44505347,44504671,44501123,44505191,44505778,44505537,44500207,44502477,44499835,44505803,44505592,44502422,40481474,36684466,36684808,37018338,37018339,37016101,36717229,36716938,40491854,36715805,37204521,36715813,36716858,36716857,36715814,37206735,36550462,36563360,36551025,36559846,36557558,36550165,36558595,36566329,36541374,36558587,36564896,36554450,36549814,36552184,36550050,37312396,36684806,36684805,37110097,36716622,37208300,37208301,37208302,37208299,37208304,37208305,37208307,37208303,37109300,40486580,36684436,36717482,37117095,37208024,37109301,37208027,37310605,37310606,37309708,37209414,36684823,37310570,37310478,37310607,37208043,37310611,37310608,37310477,36684824,37310609,37208042,37208041,40488416,37204169,37208028,37208044,37310603,37310604,37309709,37209413,36684822,37310569,37310476,37310610,37208040,37310612,37310595,37310475,36684810,37310596,36685059,37208308,37309615,37310473,37309605,37310474,36685060,37208309,37309607,37310471,37309606,37310472,40493479,40491463,40486061,40492930,40491465,40491466,40489401,40492541,37018635,40651279,37310753,37310754,37310751,36713364,37310752,37110363,37110353,37110351,37110355,37119140,37110361,37110362,37110357,37110360,37110352,37110350,37110354,37110364,37110358,37110359,37110356,37208311,37208312,36714924,36712736,36712737,37208246,36715804,40488415,40486025,40486581,37205048,37209429,37309703,37309762,37309758,37309712,37309759,42511843,36565888,36546593,36559298,36557345,36562915,36546302,36558951,36567742,36567176,36566010,36563506,36550658,36545881,36568333,42512808,42513415,42514255,42514244,42513603,42513533,42513800,42513768,42514183,42514320,42514342,42514161,42514180,42514146,42513002,42513658,42513006,42513656,42514295,42514358,42514274,42514169,42514213,42514212,42513702,42514064,42513851,42513624,42513654,42514175,42514200,42513763,42514215,42514205,42514107,42514185,42513450,42513643,42514140,42513398,42514343,42513495,42513594,42513647,42513852,42513674,42512995,42512996,42513022,42514130,36568288,36542305,36565085,42512662,42512227,36549387,36545036,36542689,36555197,36549492,36542718,36558394,36552084,36558974,36555224,36558268,36564103,36555416,36546796,36563863,36564422,36554772,36549058,36545463,36564887,36545775,36555466,36540900,36543284,36558882,36543342,36554422,36548862,36547007,36556609,42512007,36544857,36561174,36552928,36558337,36544342,36560738,36560392,36555995,36544990,36542483,36547480,36566252,36560751,36544915,36553613,36542158,36565933,36554529,36565828,36561262,36555363,36555437,36542484,36549357,36562765,36556908,36557517,36554766,36555427,36557890,36403116,760943,765273,760937,760939,765055,760944,760941,760940,760938,760945,760942,4173658,374882,36523288,4342871,3654613,4110709,4112078,4114354,4291593,36520987,36524084,36539479,36531885,36533885,36538207,36517633,4138332,4113639,4112866,4153884,4112852,4111801,4111918,4221643,4110856,4116079,4239454,4093949,4099347,4114336,4239724,4240908,4241532,442110,4239725,4240655,4239727,4240656,192273,4242190,4241533,4242191,4240909,4240910,4097712,4239728,4242192,4240913,28716,4241535,4239729,4241537,4240914,4134290,4097118,4093784,4097715,442111,4252861,4239731,4242193,4242194,4241538,4097866,4240915,4093782,4239733,201824,4239865,4239734,4242195,4240916,4242196,4241539,4241011,4239862,4242197,4242198,4242199,4241540,4221969,4242200,4239863,4241013,4242201,4241014,4239864,4242203,4242204,4241015,4241541,4290843,4241542,4241016,4241543,4093790,4239866,4240912,193439,74606,4112101,4242205,4241018,4239867,4093789,4242977,379769,4241544,4093950,4241020,4241635,442109,261255,4242206,4239868,4242207,4241021,4241022,4241636,4097729,4149471,4094694,4242208,4093786,24884,4239869,4241637,4239870,442108,4239871,4241023,4241638,376063,4241639,4241640,4094692,4241641,4239872,4242209,436948,4239873,4241025,4242333,4241642,4242334,77234,4252870,4242335,4239874,373982,4097719,373160,4093785,4093791,436936,4241026,4097117,4241027,4239876,4094566,4241643,442104,4241644,4241645,436062,374886,4242336,4239877,4241646,4239878,136937,4241030,4241031,73723,4241032,4239879,24602,198992,4241034,4242337,4241647,4239880,4097709,4241648,381252,4242338,4114356,4241035,4239882,198108,4241651,4239883,201817,4241039,4241652,4242340,4241653,132573,4241040,4239884,4110418,4241041,4239885,4243296,4239886,4001669,4243297,4243411,4242342,4239887,4242343,4239889,4241042,4242344,4243412,4239890,4093793,4239891,4097258,4243413,4241043,4239892,317814,4093781,4241044,4241045,4094693,4239893,4242345,4242346,433978,4113123,442098,4243415,4241047,4118991,4239894,4243416,4243417,4242347,4239895,442103,4239896,4239897,4327105,4240010,4240011,4240012,4242348,4240013,4243418,4241139,442100,4241140,4240015,195498,3173495,4242349,4241141,4094568,134604,442099,4241142,4243419,4243420,4243421,23731,4241019,4097730,4112578,4242350,4242351,4240017,4243422,4241143,4243424,4243425,135208,4156941,4243427,195209,35616882,35619341,4241144,440973,4097122,4241145,4240018,4241146,4094567,4097723,4241147,4097123,4241148,4097724,4242352,4097260,4242353,315505,4240019,4243428,4240020,4242356,4243432,4243433,4298845,4242357,30679,4242803,200670,373166,4097256,4242358,4242359,4242805,4242360,4093797,4242806,438105,4327112,4003171,4094563,4097115,4033324,4001665,4031134,4031253,4093794,4243434,4094695,372861,4097119,4240021,4240022,137813,4242361,4240028,4243435,4240023,4242362,4240024,4243436,4242808,4242363,4240025,4242364,4242365,4242366,4243437,4243438,4240027,4243439,4243440,4297822,4242367,442097,4112098,4243441,4112590,4110437,4097713,4337183,4093798,4242368,4300206,373432,4243442,4242809,4240030,4154632,4240031,4242810,4242490,4240032,4242811,4242812,4094564,4242813,4116216,4303106,433987,4093657,435205,4097865,199764,4243443,4243444,4243445,440063,4243563,4240034,444463,4240035,4243564,4243565,4242492,134304,4240036,4242493,4240037,4242494,4240038,4242495,4242814,4243566,4240039,4242496,4242497,75206,4240040,4242498,201823,4243568,4242499,4242815,4094562,4260193,4002344,4003178,4003177,4003827,4003826,4002350,4002349,4003174,4003176,4002351,4001322,4002346,4243569,198991,4240041,4243570,4093658,30356,28115,4097726,4242816,437251,4242817,77819,4047217,4240042,4242818,4240043,4243573,4097110,4242819,4242501,4240148,4242502,4242341,4242503,4240149,4242820,4243574,4240150,4240151,4243575,4240152,4242821,4242822,444457,434303,200671,4114353,433979,4240153,372272,4243576,4242505,4242974,4243577,4242823,434301,4240155,4242824,4242825,4242826,4242827,4243579,4001662,4242828,4097259,4240156,77517,4242507,74322,4242508,4240157,433981,438116,4242509,444459,3181557,138102,4242510,4240158,4243580,4096359,4240159,4242511,4242512,4242830,4242513,4242831,4242832,4242514,4242515,4096360,4242956,4242957,140966,4240160,4242516,4243582,4242517,4240161,4243583,4182185,198993,4243584,141248,4096365,444445,4240163,4243585,4242958,4240164,4242518,4093945,4242519,4096362,4243586,4240165,4242959,136057,4242960,4096364,4243587,4242961,434885,4242962,4243588,442105,201256,4240166,4243589,444456,444455,444454,4243590,35616611,35616486,444453,444452,194607,4240168,35616596,35616604,444451,444450,200060,444449,4243593,4242522,4242521,4097114,138117,4325198,4180119,135767,4113124,4240174,4243594,196061,4242965,4242524,4242966,4242967,4240175,4242968,4093788,4242653,4240176,4242654,4242969,4242970,4242656,4241654,4243595,4241655,4242971,436366,4242972,4243596,4242657,4242975,4097254,4241028,4113104,438107,4242658,4097722,141249,4243597,4242976,440668,4241657,439763,4241658,444444,4243598,4097262,4242978,4241659,4097261,4242979,4242980,4242660,4243599,4242981,4243720,4242661,4093787,4241660,4242982,4242662,4242983,198103,4242663,196377,4241661,78706,4242664,196364,195500,4243723,4243724,201244,4241662,4243725,4243726,4243727,4242665,4242984,4243728,77815,4242985,4243730,4242986,4242987,438390,4097257,4243731,4097274,4097857,4094714,435506,438990,761004,765198,761003,760997,765037,761005,761002,760998,4208806,4311572,4085712,4144015,4114352,4114186,4112099,4212795,4098959,4114355,4213516,3170462,4112861,4112756,4111934,4002901,4112599,4112972,4110560,4115129,72576,4116093,4099344,4093944,4116356,193431,4113121,193722,4156048,4175198,4333986,4115127,4093654,4097710,4114223,4113130,4112103,4110557,4115141,4111795,4098900,4097107,434605,4111796,4115146,4116353,4112583,4114351,4115136,4112741,4112851,4116352,4112594,432860,4116214,4112602,4081055,4110563,4114083,4151256,4113120,4099352,4096372,4079830,4110716,4116355,4151176,4113129,4116217,4111794,4111651,4170465,4115140,4112588,4116232,4111779,4097106,4111781,36403105,36403125,36403088,36539186,36531242,36534554,36519234,36527653,36537528,36530551,36527589,36534551,36537662,36533469,35622955,36522639,36537853,36532749,36526549,36523636,439083,4297799,751726,36533096,4186928,36520274,36540170,36539412,36533366,36523344,36522872,36517753,36540434,36531006,36527710,36520989,36533672,36522958,36532440,36539612,36529143,36523443,36523457,751707,36539425,36528019,36522028,36522933,36521827,36519362,36532754,36521463,36528735,761036,36523193,36519636,36537843,36521676,36528114,36526504,36525737,36527843,36525283,36524640,36535721,36521207,36530445,36530556,36523941,36519858,36539519,36524849,36403177) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40483107,141932,138825,134460,24660,4198828,40568467,4066849,4163261,4129902,200962,4030593,4137430,4121123,4121115,3179081,4121264,4301874,4302298,4032353,4032352,4212885,46271435,4099224,40480576,4222402,4320651,4190190,315523,37016333,439412,4257050,4159967,4267646,4144956,4030445,4030443,4030442,4218974,133169,4227088,4145241,4098131,141663,36713297,36680584,4005251,4002355,4175485,137829,4031127,37109889,140065,3184470,4119473,4117422,437169,4120625,42600086,3181595,37016189,4030065,4035172,40490513,4121273,4100245,4055697,4305588,193308,192298,4187914,4130174,4221698,196943,200527,45768671,4004779,36717456,44808984,4033521,4099036,4209571,45769384,4030501,37397178,36713269,4071698,4165998,4215249,4063919,4211426,316084,4006786,37312009,37312008,37312007,42600054,4261334,4130205,4130201,312823,4130365,4130359,4286058,321212,4220553,4130683,4130696,4130835,4130833,4098158,4184174,4155627,4131138,4209041,42596555,42596554,42596557,42596556,441060,4168700,4131921,4312114,4119768,4062590,4120258,4120259,4112187,4185890,4267788,4087638,4112332,4112331,4130820,4133470,4133590,4133587,4133584,4133583,4133576,42599868,4130218,4130693,4130692,4131284,4131281,4131278,4131276,4131275,4301949,433738,4225549,4247081,438122,4170061,36713549,4098736,4083843,4031983,4113643,4263087,42600052,432347,4048191,4312636,4110496,4168030,438788,439042,4048179,4289744,4240089,4170139,4214454,4046076,44503407,45772061,45757539,44811174,46271149,42709929,44811075,44811072,42709827,46271919,46271920,44792588,44783829,45768843,44504639,44502152,44505300,44501504,44504670,44505190,44504989,44505301,44505353,44505347,44504671,44501123,44505191,44505778,44505537,44500207,44502477,44499835,44505803,44505592,44502422,40481474,36684466,36684808,37018338,37018339,37016101,36717229,36716938,40491854,36715805,37204521,36715813,36716858,36716857,36715814,37206735,36550462,36563360,36551025,36559846,36557558,36550165,36558595,36566329,36541374,36558587,36564896,36554450,36549814,36552184,36550050,37312396,36684806,36684805,37110097,36716622,37208300,37208301,37208302,37208299,37208304,37208305,37208307,37208303,37109300,40486580,36684436,36717482,37117095,37208024,37109301,37208027,37310605,37310606,37309708,37209414,36684823,37310570,37310478,37310607,37208043,37310611,37310608,37310477,36684824,37310609,37208042,37208041,40488416,37204169,37208028,37208044,37310603,37310604,37309709,37209413,36684822,37310569,37310476,37310610,37208040,37310612,37310595,37310475,36684810,37310596,36685059,37208308,37309615,37310473,37309605,37310474,36685060,37208309,37309607,37310471,37309606,37310472,40493479,40491463,40486061,40492930,40491465,40491466,40489401,40492541,37018635,40651279,37310753,37310754,37310751,36713364,37310752,37110363,37110353,37110351,37110355,37119140,37110361,37110362,37110357,37110360,37110352,37110350,37110354,37110364,37110358,37110359,37110356,37208311,37208312,36714924,36712736,36712737,37208246,36715804,40488415,40486025,40486581,37205048,37209429,37309703,37309762,37309758,37309712,37309759,42511843,36565888,36546593,36559298,36557345,36562915,36546302,36558951,36567742,36567176,36566010,36563506,36550658,36545881,36568333,42512808,42513415,42514255,42514244,42513603,42513533,42513800,42513768,42514183,42514320,42514342,42514161,42514180,42514146,42513002,42513658,42513006,42513656,42514295,42514358,42514274,42514169,42514213,42514212,42513702,42514064,42513851,42513624,42513654,42514175,42514200,42513763,42514215,42514205,42514107,42514185,42513450,42513643,42514140,42513398,42514343,42513495,42513594,42513647,42513852,42513674,42512995,42512996,42513022,42514130,36568288,36542305,36565085,42512662,42512227,36549387,36545036,36542689,36555197,36549492,36542718,36558394,36552084,36558974,36555224,36558268,36564103,36555416,36546796,36563863,36564422,36554772,36549058,36545463,36564887,36545775,36555466,36540900,36543284,36558882,36543342,36554422,36548862,36547007,36556609,42512007,36544857,36561174,36552928,36558337,36544342,36560738,36560392,36555995,36544990,36542483,36547480,36566252,36560751,36544915,36553613,36542158,36565933,36554529,36565828,36561262,36555363,36555437,36542484,36549357,36562765,36556908,36557517,36554766,36555427,36557890,36403116,760943,765273,760937,760939,765055,760944,760941,760940,760938,760945,760942,4173658,374882,36523288,4342871,3654613,4110709,4112078,4114354,4291593,36520987,36524084,36539479,36531885,36533885,36538207,36517633,4138332,4113639,4112866,4153884,4112852,4111801,4111918,4221643,4110856,4116079,4239454,4093949,4099347,4114336,4239724,4240908,4241532,442110,4239725,4240655,4239727,4240656,192273,4242190,4241533,4242191,4240909,4240910,4097712,4239728,4242192,4240913,28716,4241535,4239729,4241537,4240914,4134290,4097118,4093784,4097715,442111,4252861,4239731,4242193,4242194,4241538,4097866,4240915,4093782,4239733,201824,4239865,4239734,4242195,4240916,4242196,4241539,4241011,4239862,4242197,4242198,4242199,4241540,4221969,4242200,4239863,4241013,4242201,4241014,4239864,4242203,4242204,4241015,4241541,4290843,4241542,4241016,4241543,4093790,4239866,4240912,193439,74606,4112101,4242205,4241018,4239867,4093789,4242977,379769,4241544,4093950,4241020,4241635,442109,261255,4242206,4239868,4242207,4241021,4241022,4241636,4097729,4149471,4094694,4242208,4093786,24884,4239869,4241637,4239870,442108,4239871,4241023,4241638,376063,4241639,4241640,4094692,4241641,4239872,4242209,436948,4239873,4241025,4242333,4241642,4242334,77234,4252870,4242335,4239874,373982,4097719,373160,4093785,4093791,436936,4241026,4097117,4241027,4239876,4094566,4241643,442104,4241644,4241645,436062,374886,4242336,4239877,4241646,4239878,136937,4241030,4241031,73723,4241032,4239879,24602,198992,4241034,4242337,4241647,4239880,4097709,4241648,381252,4242338,4114356,4241035,4239882,198108,4241651,4239883,201817,4241039,4241652,4242340,4241653,132573,4241040,4239884,4110418,4241041,4239885,4243296,4239886,4001669,4243297,4243411,4242342,4239887,4242343,4239889,4241042,4242344,4243412,4239890,4093793,4239891,4097258,4243413,4241043,4239892,317814,4093781,4241044,4241045,4094693,4239893,4242345,4242346,433978,4113123,442098,4243415,4241047,4118991,4239894,4243416,4243417,4242347,4239895,442103,4239896,4239897,4327105,4240010,4240011,4240012,4242348,4240013,4243418,4241139,442100,4241140,4240015,195498,3173495,4242349,4241141,4094568,134604,442099,4241142,4243419,4243420,4243421,23731,4241019,4097730,4112578,4242350,4242351,4240017,4243422,4241143,4243424,4243425,135208,4156941,4243427,195209,35616882,35619341,4241144,440973,4097122,4241145,4240018,4241146,4094567,4097723,4241147,4097123,4241148,4097724,4242352,4097260,4242353,315505,4240019,4243428,4240020,4242356,4243432,4243433,4298845,4242357,30679,4242803,200670,373166,4097256,4242358,4242359,4242805,4242360,4093797,4242806,438105,4327112,4003171,4094563,4097115,4033324,4001665,4031134,4031253,4093794,4243434,4094695,372861,4097119,4240021,4240022,137813,4242361,4240028,4243435,4240023,4242362,4240024,4243436,4242808,4242363,4240025,4242364,4242365,4242366,4243437,4243438,4240027,4243439,4243440,4297822,4242367,442097,4112098,4243441,4112590,4110437,4097713,4337183,4093798,4242368,4300206,373432,4243442,4242809,4240030,4154632,4240031,4242810,4242490,4240032,4242811,4242812,4094564,4242813,4116216,4303106,433987,4093657,435205,4097865,199764,4243443,4243444,4243445,440063,4243563,4240034,444463,4240035,4243564,4243565,4242492,134304,4240036,4242493,4240037,4242494,4240038,4242495,4242814,4243566,4240039,4242496,4242497,75206,4240040,4242498,201823,4243568,4242499,4242815,4094562,4260193,4002344,4003178,4003177,4003827,4003826,4002350,4002349,4003174,4003176,4002351,4001322,4002346,4243569,198991,4240041,4243570,4093658,30356,28115,4097726,4242816,437251,4242817,77819,4047217,4240042,4242818,4240043,4243573,4097110,4242819,4242501,4240148,4242502,4242341,4242503,4240149,4242820,4243574,4240150,4240151,4243575,4240152,4242821,4242822,444457,434303,200671,4114353,433979,4240153,372272,4243576,4242505,4242974,4243577,4242823,434301,4240155,4242824,4242825,4242826,4242827,4243579,4001662,4242828,4097259,4240156,77517,4242507,74322,4242508,4240157,433981,438116,4242509,444459,3181557,138102,4242510,4240158,4243580,4096359,4240159) or ca.ancestor_concept_id in (4242511,4242512,4242830,4242513,4242831,4242832,4242514,4242515,4096360,4242956,4242957,140966,4240160,4242516,4243582,4242517,4240161,4243583,4182185,198993,4243584,141248,4096365,444445,4240163,4243585,4242958,4240164,4242518,4093945,4242519,4096362,4243586,4240165,4242959,136057,4242960,4096364,4243587,4242961,434885,4242962,4243588,442105,201256,4240166,4243589,444456,444455,444454,4243590,35616611,35616486,444453,444452,194607,4240168,35616596,35616604,444451,444450,200060,444449,4243593,4242522,4242521,4097114,138117,4325198,4180119,135767,4113124,4240174,4243594,196061,4242965,4242524,4242966,4242967,4240175,4242968,4093788,4242653,4240176,4242654,4242969,4242970,4242656,4241654,4243595,4241655,4242971,436366,4242972,4243596,4242657,4242975,4097254,4241028,4113104,438107,4242658,4097722,141249,4243597,4242976,440668,4241657,439763,4241658,444444,4243598,4097262,4242978,4241659,4097261,4242979,4242980,4242660,4243599,4242981,4243720,4242661,4093787,4241660,4242982,4242662,4242983,198103,4242663,196377,4241661,78706,4242664,196364,195500,4243723,4243724,201244,4241662,4243725,4243726,4243727,4242665,4242984,4243728,77815,4242985,4243730,4242986,4242987,438390,4097257,4243731,4097274,4097857,4094714,435506,438990,761004,765198,761003,760997,765037,761005,761002,760998,4208806,4311572,4085712,4144015,4114352,4114186,4112099,4212795,4098959,4114355,4213516,3170462,4112861,4112756,4111934,4002901,4112599,4112972,4110560,4115129,72576,4116093,4099344,4093944,4116356,193431,4113121,193722,4156048,4175198,4333986,4115127,4093654,4097710,4114223,4113130,4112103,4110557,4115141,4111795,4098900,4097107,434605,4111796,4115146,4116353,4112583,4114351,4115136,4112741,4112851,4116352,4112594,432860,4116214,4112602,4081055,4110563,4114083,4151256,4113120,4099352,4096372,4079830,4110716,4116355,4151176,4113129,4116217,4111794,4111651,4170465,4115140,4112588,4116232,4111779,4097106,4111781,36403105,36403125,36403088,36539186,36531242,36534554,36519234,36527653,36537528,36530551,36527589,36534551,36537662,36533469,35622955,36522639,36537853,36532749,36526549,36523636,439083,4297799,751726,36533096,4186928,36520274,36540170,36539412,36533366,36523344,36522872,36517753,36540434,36531006,36527710,36520989,36533672,36522958,36532440,36539612,36529143,36523443,36523457,751707,36539425,36528019,36522028,36522933,36521827,36519362,36532754,36521463,36528735,761036,36523193,36519636,36537843,36521676,36528114,36526504,36525737,36527843,36525283,36524640,36535721,36521207,36530445,36530556,36523941,36519858,36539519,36524849,36403177)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -157,49 +157,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1217.sql b/inst/sql/sql_server/1217.sql index 958b26ee..89aa5e3d 100644 --- a/inst/sql/sql_server/1217.sql +++ b/inst/sql/sql_server/1217.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1344905,2100512,1397599,35198201,1318011) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1344905,2100512,1397599,35198201,1318011)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1344905,2100512,1397599,35198201,1318011) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1344905,2100512,1397599,35198201,1318011)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 60,EVENT_DATE) as END_DATE -- unpad the end date by 60 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 60 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,60,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 60, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(60 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1219.sql b/inst/sql/sql_server/1219.sql index c2af84f8..7ee4e14c 100644 --- a/inst/sql/sql_server/1219.sql +++ b/inst/sql/sql_server/1219.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432867,437530) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432867,437530)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432867) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432867)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1220.sql b/inst/sql/sql_server/1220.sql index a13b183f..c31adc9b 100644 --- a/inst/sql/sql_server/1220.sql +++ b/inst/sql/sql_server/1220.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140362) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140362)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140362) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140362)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1221.sql b/inst/sql/sql_server/1221.sql index 5979a45d..18ac9ef0 100644 --- a/inst/sql/sql_server/1221.sql +++ b/inst/sql/sql_server/1221.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (80502) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (80502)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (80502) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (80502)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1222.sql b/inst/sql/sql_server/1222.sql index cfc61176..c09c3fec 100644 --- a/inst/sql/sql_server/1222.sql +++ b/inst/sql/sql_server/1222.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4223947,4013974,194856) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4223947,4013974,194856)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4223947,4013974,194856) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4223947,4013974,194856)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1223.sql b/inst/sql/sql_server/1223.sql index 3d97ed3d..08943af6 100644 --- a/inst/sql/sql_server/1223.sql +++ b/inst/sql/sql_server/1223.sql @@ -7,66 +7,66 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4214659,3657059,4042904,4208204,3657073,4210130,44783673,44783665,44783671,4060820,437850,439017,434033,45757706,438740,4116875,4083610,437867) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4214659,3657059,4042904,4208204,3657073,4210130,44783673,44783665,44783671,4060820,437850,439017,434033,45757706,438740,4116875,4083610,437867)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4080669) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4080669)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4088101,36684763,36309971,440713,36684697,36684634) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4088101,36684763,36309971,440713,36684697,36684634)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4227209,4226624,36533311,36538942,36528136,36522500,36559873,36567555,36541460,36564499,36550252,36562533,36517984,36548730) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4227209,4226624,36533311,36538942,36528136,36522500,36559873,36567555,36541460,36564499,36550252,36562533,36517984,36548730)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3016587,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3016587,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4130903,4163983,4322821,4281245,4081069,4338094) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130903,4163983,4322821,4281245,4081069,4338094)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3046747,4219828,4238890) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3046747,4219828,4238890)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (438411,438738) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (438411,438738)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (438411,438738) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (438411,438738)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36686922,37208000,3657060,3657073,36684767) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36686922,37208000,3657060,3657073,36684767)) ) I ) C; @@ -802,49 +802,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1224.sql b/inst/sql/sql_server/1224.sql index 3eda986b..c56d7eb3 100644 --- a/inst/sql/sql_server/1224.sql +++ b/inst/sql/sql_server/1224.sql @@ -7,28 +7,28 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36309671,4143091,4122252,4140156,3049944,40764963,37073281,3035833,4138900,4146128) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36309671,4143091,4122252,4140156,3049944,40764963,37073281,3035833,4138900,4146128)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -37,70 +37,70 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4161546,4183040,439014,438411,761352,4265035,761351,761350,761349,761348,3657772,3657771,3657770,37312551,4212319,4104214,4104213,4211820,3657843,3657842,3657841,4234762,4228115,433757,437850,4109410,433765,433762,434274,4152407,4152406,4322865,3657796,3655858,3655856,4338890,3655855,44783667,3655854,3655853,44783669,44783668,4230371,4042904,4198123,4198124,4195053,4195054,3655301,3655813,4224242,4319477,4319476,4187784,4186870,373963,4219534,373972,4213393,608987,608986,4195992,378078,436967,4214437,4330151,434927,4259500,4259502,439017,36676800,40480902,4233536,46273984,37309749,4212083,380721,4335988,4215673,4213114,4090114,4221187,35624273,435541,3657060,4334872,4334873,37207894,4174680,36684637,434033,440715,4102049,4102047,37207954,37311893,4167058,3663239,36684701,439736,4162559,4087293,3662320,434638,4213641,3662329,3662328,438740,761311,3662319,3662318,3655660,443867,3657173,37208019,761315,761314,761313,44783425,432621,761312,44783424,4215212,432630,36684767,432631,4253619,761343,761342,37208000,37208014,4307553,4338889,37310633,44783671,4108960,4150996,4150995,4196116,1340301,4109407,4338888,438971,4259505,4079919,4217692,4152067,4216286,4213657,4253622) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4161546,4183040,439014,438411,761352,4265035,761351,761350,761349,761348,3657772,3657771,3657770,37312551,4212319,4104214,4104213,4211820,3657843,3657842,3657841,4234762,4228115,433757,437850,4109410,433765,433762,434274,4152407,4152406,4322865,3657796,3655858,3655856,4338890,3655855,44783667,3655854,3655853,44783669,44783668,4230371,4042904,4198123,4198124,4195053,4195054,3655301,3655813,4224242,4319477,4319476,4187784,4186870,373963,4219534,373972,4213393,608987,608986,4195992,378078,436967,4214437,4330151,434927,4259500,4259502,439017,36676800,40480902,4233536,46273984,37309749,4212083,380721,4335988,4215673,4213114,4090114,4221187,35624273,435541,3657060,4334872,4334873,37207894,4174680,36684637,434033,440715,4102049,4102047,37207954,37311893,4167058,3663239,36684701,439736,4162559,4087293,3662320,434638,4213641,3662329,3662328,438740,761311,3662319,3662318,3655660,443867,3657173,37208019,761315,761314,761313,44783425,432621,761312,44783424,4215212,432630,36684767,432631,4253619,761343,761342,37208000,37208014,4307553,4338889,37310633,44783671,4108960,4150996,4150995,4196116,1340301,4109407,4338888,438971,4259505,4079919,4217692,4152067,4216286,4213657,4253622)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4130903,4163983,4322821,4281245,4081069,4338094) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130903,4163983,4322821,4281245,4081069,4338094)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4082268,4317991,4082269,3019458,3004523) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4082268,4317991,4082269,3019458,3004523)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4122252,37394108,4163737) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4122252,37394108,4163737)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4122252,44808404,4046130) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4122252,44808404,4046130)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35205780,35205781,440032) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35205780,35205781,440032)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35205780,35205781,440032) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35205780,35205781,440032)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35205780,35205781,440032) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35205780,35205781,440032)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35205780,35205781,440032) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35205780,35205781,440032)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -865,49 +865,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1225.sql b/inst/sql/sql_server/1225.sql index 92a9c858..dd7fcfe3 100644 --- a/inst/sql/sql_server/1225.sql +++ b/inst/sql/sql_server/1225.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -31,76 +31,76 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4082268,4317991,4082269,3019458,3004523) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4082268,4317991,4082269,3019458,3004523)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4161546,4183040,439014,438411,761352,4265035,761351,761350,761349,761348,3657772,3657771,3657770,37312551,4212319,4104214,4104213,4211820,3657843,3657842,3657841,4234762,4228115,433757,437850,4109410,433765,433762,434274,4152407,4152406,4322865,3657796,3655858,3655856,4338890,3655855,44783667,3655854,3655853,44783669,44783668,4230371,4042904,4198123,4198124,4195053,4195054,3655301,3655813,4224242,4319477,4319476,4187784,4186870,373963,4219534,373972,4213393,608987,608986,4195992,378078,436967,4214437,4330151,434927,4259500,4259502,439017,36676800,40480902,4233536,46273984,37309749,4212083,380721,4335988,4215673,4213114,4090114,4221187,35624273,435541,3657060,4334872,4334873,37207894,4174680,36684637,434033,440715,4102049,4102047,37207954,37311893,4167058,3663239,36684701,439736,4162559,4087293,3662320,434638,4213641,3662329,3662328,438740,761311,3662319,3662318,3655660,443867,3657173,37208019,761315,761314,761313,44783425,432621,761312,44783424,4215212,432630,36684767,432631,4253619,761343,761342,37208000,37208014,4307553,4338889,37310633,44783671,4108960,4150996,4150995,4196116,1340301,4109407,4338888,438971,4259505,4079919,4217692,4152067,4216286,4213657,4253622) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4161546,4183040,439014,438411,761352,4265035,761351,761350,761349,761348,3657772,3657771,3657770,37312551,4212319,4104214,4104213,4211820,3657843,3657842,3657841,4234762,4228115,433757,437850,4109410,433765,433762,434274,4152407,4152406,4322865,3657796,3655858,3655856,4338890,3655855,44783667,3655854,3655853,44783669,44783668,4230371,4042904,4198123,4198124,4195053,4195054,3655301,3655813,4224242,4319477,4319476,4187784,4186870,373963,4219534,373972,4213393,608987,608986,4195992,378078,436967,4214437,4330151,434927,4259500,4259502,439017,36676800,40480902,4233536,46273984,37309749,4212083,380721,4335988,4215673,4213114,4090114,4221187,35624273,435541,3657060,4334872,4334873,37207894,4174680,36684637,434033,440715,4102049,4102047,37207954,37311893,4167058,3663239,36684701,439736,4162559,4087293,3662320,434638,4213641,3662329,3662328,438740,761311,3662319,3662318,3655660,443867,3657173,37208019,761315,761314,761313,44783425,432621,761312,44783424,4215212,432630,36684767,432631,4253619,761343,761342,37208000,37208014,4307553,4338889,37310633,44783671,4108960,4150996,4150995,4196116,1340301,4109407,4338888,438971,4259505,4079919,4217692,4152067,4216286,4213657,4253622)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4130903,4163983,4322821,4281245,4081069,4338094) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130903,4163983,4322821,4281245,4081069,4338094)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36309671,4143091,4122252,4140156,3049944,40764963,37073281,3035833,4138900,4146128) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36309671,4143091,4122252,4140156,3049944,40764963,37073281,3035833,4138900,4146128)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37394108,4163737,4122252) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37394108,4163737,4122252)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4046130,44808404,4122252) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4046130,44808404,4122252)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4148212) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4148212)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4148212) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4148212)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4148212) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4148212)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4148212) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4148212)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -109,22 +109,22 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4266196) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4266196)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4266196) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4266196)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4266196) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4266196)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4266196) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4266196)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -133,22 +133,22 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36686922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36686922)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36686922) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36686922)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36686922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36686922)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36686922) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36686922)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -157,22 +157,22 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4206579) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4206579)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4206579) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4206579)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4206579) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4206579)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4206579) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4206579)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -1040,49 +1040,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1226.sql b/inst/sql/sql_server/1226.sql index 04806762..fa51338d 100644 --- a/inst/sql/sql_server/1226.sql +++ b/inst/sql/sql_server/1226.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -31,76 +31,76 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4082268,4317991,4082269,3019458,3004523) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4082268,4317991,4082269,3019458,3004523)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4161546,4183040,439014,438411,761352,4265035,761351,761350,761349,761348,3657772,3657771,3657770,37312551,4212319,4104214,4104213,4211820,3657843,3657842,3657841,4234762,4228115,433757,437850,4109410,433765,433762,434274,4152407,4152406,4322865,3657796,3655858,3655856,4338890,3655855,44783667,3655854,3655853,44783669,44783668,4230371,4042904,4198123,4198124,4195053,4195054,3655301,3655813,4224242,4319477,4319476,4187784,4186870,373963,4219534,373972,4213393,608987,608986,4195992,378078,436967,4214437,4330151,434927,4259500,4259502,439017,36676800,40480902,4233536,46273984,37309749,4212083,380721,4335988,4215673,4213114,4090114,4221187,35624273,435541,3657060,4334872,4334873,37207894,4174680,36684637,434033,440715,4102049,4102047,37207954,37311893,4167058,3663239,36684701,439736,4162559,4087293,3662320,434638,4213641,3662329,3662328,438740,761311,3662319,3662318,3655660,443867,3657173,37208019,761315,761314,761313,44783425,432621,761312,44783424,4215212,432630,36684767,432631,4253619,761343,761342,37208000,37208014,4307553,4338889,37310633,44783671,4108960,4150996,4150995,4196116,1340301,4109407,4338888,438971,4259505,4079919,4217692,4152067,4216286,4213657,4253622) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4161546,4183040,439014,438411,761352,4265035,761351,761350,761349,761348,3657772,3657771,3657770,37312551,4212319,4104214,4104213,4211820,3657843,3657842,3657841,4234762,4228115,433757,437850,4109410,433765,433762,434274,4152407,4152406,4322865,3657796,3655858,3655856,4338890,3655855,44783667,3655854,3655853,44783669,44783668,4230371,4042904,4198123,4198124,4195053,4195054,3655301,3655813,4224242,4319477,4319476,4187784,4186870,373963,4219534,373972,4213393,608987,608986,4195992,378078,436967,4214437,4330151,434927,4259500,4259502,439017,36676800,40480902,4233536,46273984,37309749,4212083,380721,4335988,4215673,4213114,4090114,4221187,35624273,435541,3657060,4334872,4334873,37207894,4174680,36684637,434033,440715,4102049,4102047,37207954,37311893,4167058,3663239,36684701,439736,4162559,4087293,3662320,434638,4213641,3662329,3662328,438740,761311,3662319,3662318,3655660,443867,3657173,37208019,761315,761314,761313,44783425,432621,761312,44783424,4215212,432630,36684767,432631,4253619,761343,761342,37208000,37208014,4307553,4338889,37310633,44783671,4108960,4150996,4150995,4196116,1340301,4109407,4338888,438971,4259505,4079919,4217692,4152067,4216286,4213657,4253622)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4130903,4163983,4322821,4281245,4081069,4338094) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130903,4163983,4322821,4281245,4081069,4338094)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36309671,4143091,4122252,4140156,3049944,40764963,37073281,3035833,4138900,4146128) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36309671,4143091,4122252,4140156,3049944,40764963,37073281,3035833,4138900,4146128)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37394108,4163737,4122252) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37394108,4163737,4122252)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4046130,44808404,4122252) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4046130,44808404,4122252)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4148212) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4148212)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4148212) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4148212)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4148212) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4148212)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4148212) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4148212)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -109,22 +109,22 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4266196) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4266196)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4266196) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4266196)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4266196) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4266196)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4266196) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4266196)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -133,22 +133,22 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36686922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36686922)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36686922) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36686922)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36686922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36686922)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36686922) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36686922)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -157,22 +157,22 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4206579) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4206579)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4206579) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4206579)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4206579) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4206579)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4206579) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4206579)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -1064,49 +1064,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1227.sql b/inst/sql/sql_server/1227.sql index a142a066..55ced764 100644 --- a/inst/sql/sql_server/1227.sql +++ b/inst/sql/sql_server/1227.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4130903,4163983,4322821,4281245,4081069,4338094) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130903,4163983,4322821,4281245,4081069,4338094)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4161546,4183040,439014,438411,761352,4265035,761351,761350,761349,761348,3657772,3657771,3657770,37312551,4212319,4104214,4104213,4211820,3657843,3657842,3657841,4234762,4228115,433757,437850,4109410,433765,433762,434274,4152407,4152406,4322865,3657796,3655858,3655856,4338890,3655855,44783667,3655854,3655853,44783669,44783668,4230371,4042904,4198123,4198124,4195053,4195054,3655301,3655813,4224242,4319477,4319476,4187784,4186870,373963,4219534,373972,4213393,608987,608986,4195992,378078,436967,4214437,4330151,434927,4259500,4259502,439017,36676800,40480902,4233536,46273984,37309749,4212083,380721,4335988,4215673,4213114,4090114,4221187,35624273,435541,3657060,4334872,4334873,37207894,4174680,36684637,434033,440715,4102049,4102047,37207954,37311893,4167058,3663239,36684701,439736,4162559,4087293,3662320,434638,4213641,3662329,3662328,438740,761311,3662319,3662318,3655660,443867,3657173,37208019,761315,761314,761313,44783425,432621,761312,44783424,4215212,432630,36684767,432631,4253619,761343,761342,37208000,37208014,4307553,4338889,37310633,44783671,4108960,4150996,4150995,4196116,1340301,4109407,4338888,438971,4259505,4079919,4217692,4152067,4216286,4213657,4253622) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4161546,4183040,439014,438411,761352,4265035,761351,761350,761349,761348,3657772,3657771,3657770,37312551,4212319,4104214,4104213,4211820,3657843,3657842,3657841,4234762,4228115,433757,437850,4109410,433765,433762,434274,4152407,4152406,4322865,3657796,3655858,3655856,4338890,3655855,44783667,3655854,3655853,44783669,44783668,4230371,4042904,4198123,4198124,4195053,4195054,3655301,3655813,4224242,4319477,4319476,4187784,4186870,373963,4219534,373972,4213393,608987,608986,4195992,378078,436967,4214437,4330151,434927,4259500,4259502,439017,36676800,40480902,4233536,46273984,37309749,4212083,380721,4335988,4215673,4213114,4090114,4221187,35624273,435541,3657060,4334872,4334873,37207894,4174680,36684637,434033,440715,4102049,4102047,37207954,37311893,4167058,3663239,36684701,439736,4162559,4087293,3662320,434638,4213641,3662329,3662328,438740,761311,3662319,3662318,3655660,443867,3657173,37208019,761315,761314,761313,44783425,432621,761312,44783424,4215212,432630,36684767,432631,4253619,761343,761342,37208000,37208014,4307553,4338889,37310633,44783671,4108960,4150996,4150995,4196116,1340301,4109407,4338888,438971,4259505,4079919,4217692,4152067,4216286,4213657,4253622)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311484,376696,4140602,4218443,46273148) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311484,376696,4140602,4218443,46273148)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311484,376696,4140602,4218443,46273148) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311484,376696,4140602,4218443,46273148)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311484,376696,4140602,4218443,46273148) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311484,376696,4140602,4218443,46273148)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311484,376696,4140602,4218443,46273148) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311484,376696,4140602,4218443,46273148)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -43,22 +43,22 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -67,40 +67,40 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4082268,4317991,4082269,3019458,3004523) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4082268,4317991,4082269,3019458,3004523)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36686922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36686922)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36686922) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36686922)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36686922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36686922)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36686922) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36686922)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -109,28 +109,28 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37394108,4163737,4122252) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37394108,4163737,4122252)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4148212) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4148212)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4148212) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4148212)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4148212) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4148212)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4148212) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4148212)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -139,40 +139,40 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36309671,4143091,4122252,4140156,3049944,40764963,37073281,3035833,4138900,4146128) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36309671,4143091,4122252,4140156,3049944,40764963,37073281,3035833,4138900,4146128)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4046130,44808404,4122252) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4046130,44808404,4122252)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444429) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444429)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444429) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444429)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444429) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444429)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444429) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444429)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -181,7 +181,7 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40383887,3119749,45473162,45524708,44790710,1404390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40383887,3119749,45473162,45524708,44790710,1404390)) ) I ) C; @@ -1149,49 +1149,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1228.sql b/inst/sql/sql_server/1228.sql index 86b9cec4..feb2bcb8 100644 --- a/inst/sql/sql_server/1228.sql +++ b/inst/sql/sql_server/1228.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4130903,4163983,4322821,4281245,4081069,4338094) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130903,4163983,4322821,4281245,4081069,4338094)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4161546,4183040,439014,438411,761352,4265035,761351,761350,761349,761348,3657772,3657771,3657770,37312551,4212319,4104214,4104213,4211820,3657843,3657842,3657841,4234762,4228115,433757,437850,4109410,433765,433762,434274,4152407,4152406,4322865,3657796,3655858,3655856,4338890,3655855,44783667,3655854,3655853,44783669,44783668,4230371,4042904,4198123,4198124,4195053,4195054,3655301,3655813,4224242,4319477,4319476,4187784,4186870,373963,4219534,373972,4213393,608987,608986,4195992,378078,436967,4214437,4330151,434927,4259500,4259502,439017,36676800,40480902,4233536,46273984,37309749,4212083,380721,4335988,4215673,4213114,4090114,4221187,35624273,435541,3657060,4334872,4334873,37207894,4174680,36684637,434033,440715,4102049,4102047,37207954,37311893,4167058,3663239,36684701,439736,4162559,4087293,3662320,434638,4213641,3662329,3662328,438740,761311,3662319,3662318,3655660,443867,3657173,37208019,761315,761314,761313,44783425,432621,761312,44783424,4215212,432630,36684767,432631,4253619,761343,761342,37208000,37208014,4307553,4338889,37310633,44783671,4108960,4150996,4150995,4196116,1340301,4109407,4338888,438971,4259505,4079919,4217692,4152067,4216286,4213657,4253622) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4161546,4183040,439014,438411,761352,4265035,761351,761350,761349,761348,3657772,3657771,3657770,37312551,4212319,4104214,4104213,4211820,3657843,3657842,3657841,4234762,4228115,433757,437850,4109410,433765,433762,434274,4152407,4152406,4322865,3657796,3655858,3655856,4338890,3655855,44783667,3655854,3655853,44783669,44783668,4230371,4042904,4198123,4198124,4195053,4195054,3655301,3655813,4224242,4319477,4319476,4187784,4186870,373963,4219534,373972,4213393,608987,608986,4195992,378078,436967,4214437,4330151,434927,4259500,4259502,439017,36676800,40480902,4233536,46273984,37309749,4212083,380721,4335988,4215673,4213114,4090114,4221187,35624273,435541,3657060,4334872,4334873,37207894,4174680,36684637,434033,440715,4102049,4102047,37207954,37311893,4167058,3663239,36684701,439736,4162559,4087293,3662320,434638,4213641,3662329,3662328,438740,761311,3662319,3662318,3655660,443867,3657173,37208019,761315,761314,761313,44783425,432621,761312,44783424,4215212,432630,36684767,432631,4253619,761343,761342,37208000,37208014,4307553,4338889,37310633,44783671,4108960,4150996,4150995,4196116,1340301,4109407,4338888,438971,4259505,4079919,4217692,4152067,4216286,4213657,4253622)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311484,376696,4140602,4218443,46273148) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311484,376696,4140602,4218443,46273148)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311484,376696,4140602,4218443,46273148) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311484,376696,4140602,4218443,46273148)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311484,376696,4140602,4218443,46273148) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311484,376696,4140602,4218443,46273148)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311484,376696,4140602,4218443,46273148) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311484,376696,4140602,4218443,46273148)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -43,22 +43,22 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -67,40 +67,40 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4082268,4317991,4082269,3019458,3004523) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4082268,4317991,4082269,3019458,3004523)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36686922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36686922)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36686922) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36686922)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36686922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36686922)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36686922) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36686922)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -109,28 +109,28 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37394108,4163737,4122252) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37394108,4163737,4122252)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4148212) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4148212)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4148212) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4148212)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4148212) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4148212)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4148212) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4148212)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -139,40 +139,40 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36309671,4143091,4122252,4140156,3049944,40764963,37073281,3035833,4138900,4146128) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36309671,4143091,4122252,4140156,3049944,40764963,37073281,3035833,4138900,4146128)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4046130,44808404,4122252) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4046130,44808404,4122252)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444429) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444429)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444429) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444429)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444429) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444429)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444429) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444429)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -181,7 +181,7 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40383887,3119749,45473162,45524708,44790710,1404390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40383887,3119749,45473162,45524708,44790710,1404390)) ) I ) C; @@ -1173,49 +1173,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1229.sql b/inst/sql/sql_server/1229.sql index f353d2d3..faab64f6 100644 --- a/inst/sql/sql_server/1229.sql +++ b/inst/sql/sql_server/1229.sql @@ -7,46 +7,46 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (606379,606416,602881,72398,72399,4176016,74720,81100,76778,81656,4176931,606384,606379,4340260,4343930,4347061,436642,45879279,4211990,4203452,4202809,4138971,37110519,1340264,4256466,4253619,606416,606417,4061051,606428,3655585,4316083,4148017,4146449,4030997,4160464,140176,3185597,72398,72399,4176016,81100,4176931,81656,74720,76778,77074,4291025,437082,4070155,37110519,4138971,4278217,318174,4085025,606428,4340260,4202809,4340521,4069683,4026112,4150043,4056182,3178466,3655093,4084033,764780) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (606379,606416,602881,72398,72399,4176016,74720,81100,76778,81656,4176931,606384,606379,4340260,4343930,4347061,436642,45879279,4211990,4203452,4202809,4138971,37110519,1340264,4256466,4253619,606416,606417,4061051,606428,3655585,4316083,4148017,4146449,4030997,4160464,140176,3185597,72398,72399,4176016,81100,4176931,81656,74720,76778,77074,4291025,437082,4070155,37110519,4138971,4278217,318174,4085025,606428,4340260,4202809,4340521,4069683,4026112,4150043,4056182,3178466,3655093,4084033,764780)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36684767,439014,36684701,36684637,37207969,436403,37207907,37207847,4212319,4233536) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36684767,439014,36684701,36684637,37207969,436403,37207907,37207847,4212319,4233536)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37207969,436403,37207907,37207847,4183040,4042904,4233536) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37207969,436403,37207907,37207847,4183040,4042904,4233536)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36713148,36713131,36713119,4132792,4197155,4082268,4225489,4223461,4317991,4197154,4176864,4226098) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36713148,36713131,36713119,4132792,4197155,4082268,4225489,4223461,4317991,4197154,4176864,4226098)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132792,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132792,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132792,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132792,3662325,3656908,3657140,35625724,432908,35625723,35625722,434932,37116567,4211939,4132495,37203959,4182267,4259504,4253620,4211649,4256466,3662324,3662323,4190952,3343020,4081011,4218326,4176864,36713131,36713119,36713148,438961,45770924,36717362,441283,440716,36713147,36684732,4274964,36684666,36684792,4104039,36713130,433187,434926,434348,434029,4273853,600624,45757573,4109415,761192,37207891,761191,765069,608799,608800,4335981,37312266,37209447,37209448,4291313,4032140,37207951,3657102,3657101,4221343,761325,761324,761318,439300,439299,3656995,4091179,444446,440634,46269950,4166240,3657042,765063,438422,439731,438751,45772123,761321,761320,761319,432632,36686922,4146105,37207997,3656874,45757732,46273126,603297,4072340,45757712,3657100,4173308,3656958,608988,761323,761322,606435,45770915,4102176)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -55,43 +55,43 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3016587,3022622,3039384,3041149,3010487,3009946,40766194,3018457,3015378,3032397,3030785,3043653,3049422,3007258,3023161,42869548,3007932,3045488,3019539,3010055,4305738,3044651,3031591,3021604,3042468,3019832,3005626,3051954,3011981,37051410,37024028,1617714,37053343,3048453,3024286,3014044,40760151,3040021,3050642,37069707,3029998,3030893,37046128,3040742,3004772,1617619,3029371,1617345,37056367,3015923,3004786,3005900,3039946,3020488,3011520,37064901,3028061,3017178,37035328,1616997,3019603,4247368,1617166,1618180,37076241,37051934,3051627,43533776,40771087,37050546,3019428,3049377,1616824,1616562,3029634,37063672,1616440,3001356,37062153,1616967,3002446,1617505,1618534,37044896,3006157,1618170,1991140,3052315,40761135,3046248,42868435,3019960)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4130903,4163983,4322821,4281245,4081069,4338094) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130903,4163983,4322821,4281245,4081069,4338094)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4081011,21491750,21491751,36309475,36310085,36310741,36309345,3023610,3019906,37022902,37053902)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4082268,4317991,4082269,3019458,3004523) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4082268,4317991,4082269,3019458,3004523)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4080669,4081010,4148212,3657143,37208236,37208235,4160509,440104,439011,4334756)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4146449,3655585,4293711,606416,606417,602881,4061051,4295174,4140166,4299819,4296500) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4146449,3655585,4293711,606416,606417,602881,4061051,4295174,4140166,4299819,4296500)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3657073,3657059,3657033,4042904,3657011,3656924,4099594,434927,4060820,435541,4214659,439017,434033,4161546) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3657073,3657059,3657033,4042904,3657011,3656924,4099594,434927,4060820,435541,4214659,439017,434033,4161546)) ) I ) C; @@ -683,49 +683,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/123.sql b/inst/sql/sql_server/123.sql index f2d4cb4b..8057d7ad 100644 --- a/inst/sql/sql_server/123.sql +++ b/inst/sql/sql_server/123.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439235,4181216,444362,440925,4303690,4219484,435446,4092411,443272) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439235,4181216,444362,440925,4303690,4219484,435446,4092411,443272)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439235,4181216,444362,440925,4303690,4219484,435446,4092411,443272) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439235,4181216,444362,440925,4303690,4219484,435446,4092411,443272)) ) I ) C; @@ -125,49 +125,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1231.sql b/inst/sql/sql_server/1231.sql index 196bea54..db39f09b 100644 --- a/inst/sql/sql_server/1231.sql +++ b/inst/sql/sql_server/1231.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4216915) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4216915)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4216915) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4216915)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1244.sql b/inst/sql/sql_server/1244.sql index 2190a9f9..dd0f7739 100644 --- a/inst/sql/sql_server/1244.sql +++ b/inst/sql/sql_server/1244.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1314924,1378382,1304919,1315942,1350504,1343346,1338512,1305058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1314924,1378382,1304919,1315942,1350504,1343346,1338512,1305058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1314924,1378382,1304919,1315942,1350504,1343346,1338512,1305058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1314924,1378382,1304919,1315942,1350504,1343346,1338512,1305058)) ) I ) C; @@ -113,38 +113,20 @@ INTO #strategy_ends from #included_events et JOIN ( - select ENDS.person_id, min(drug_exposure_start_date) as era_start_date, DATEADD(day,0, ENDS.era_end_date) as era_end_date - from - ( - select de.person_id, de.drug_exposure_start_date, MIN(e.END_DATE) as era_end_date - FROM #drugTarget DE - JOIN - ( - --cteEndDates - select PERSON_ID, DATEADD(day,-1 * 60,EVENT_DATE) as END_DATE -- unpad the end date by 60 - FROM - ( - select PERSON_ID, EVENT_DATE, EVENT_TYPE, - MAX(START_ORDINAL) OVER (PARTITION BY PERSON_ID ORDER BY event_date, event_type, START_ORDINAL ROWS UNBOUNDED PRECEDING) AS start_ordinal, - ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY EVENT_DATE, EVENT_TYPE, START_ORDINAL) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date - from - ( - -- select the start dates, assigning a row number to each - Select PERSON_ID, DRUG_EXPOSURE_START_DATE AS EVENT_DATE, 0 as EVENT_TYPE, ROW_NUMBER() OVER (PARTITION BY PERSON_ID ORDER BY DRUG_EXPOSURE_START_DATE) as START_ORDINAL - from #drugTarget D - - UNION ALL - - -- add the end dates with NULL as the row number, padding the end dates by 60 to allow a grace period for overlapping ranges. - select PERSON_ID, DATEADD(day,60,DRUG_EXPOSURE_END_DATE), 1 as EVENT_TYPE, NULL - FROM #drugTarget D - ) RAWDATA - ) E - WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0 - ) E on DE.PERSON_ID = E.PERSON_ID and E.END_DATE >= DE.DRUG_EXPOSURE_START_DATE - GROUP BY de.person_id, de.drug_exposure_start_date - ) ENDS - GROUP BY ENDS.person_id, ENDS.era_end_date + + select person_id, min(start_date) as era_start_date, DATEADD(day,-1 * 60, max(end_date)) as era_end_date + from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, drug_exposure_start_date as start_date, DATEADD(day,(60 + 0),DRUG_EXPOSURE_END_DATE) as end_date + FROM #drugTarget + ) DT + ) ST + ) GR + group by person_id, group_idx ) ERAS on ERAS.person_id = et.person_id WHERE et.start_date between ERAS.era_start_date and ERAS.era_end_date; @@ -173,49 +155,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1261.sql b/inst/sql/sql_server/1261.sql index b5d52495..c246b35a 100644 --- a/inst/sql/sql_server/1261.sql +++ b/inst/sql/sql_server/1261.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4318404) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4318404)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4318404) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4318404)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46269693,4193174,36712839,4273378,256622) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46269693,4193174,36712839,4273378,256622)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46269693,4193174,36712839,4273378,256622) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46269693,4193174,36712839,4273378,256622)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36712839,4193174,256622,46269693,4273378) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36712839,4193174,256622,46269693,4273378)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36712839,4193174,256622,46269693,4273378) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36712839,4193174,256622,46269693,4273378)) ) I ) C; @@ -185,49 +185,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1262.sql b/inst/sql/sql_server/1262.sql index 90dd4735..ba7dd5cd 100644 --- a/inst/sql/sql_server/1262.sql +++ b/inst/sql/sql_server/1262.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (255573,258780) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (255573,258780)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (255573,258780) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (255573,258780)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317009,4235703,4279553) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317009,4235703,4279553)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317009,4235703,4279553) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317009,4235703,4279553)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42483138,36812530,40727741,1356123,40142665,46234463,1356111,1356108,40142703,36421291,40745353,36787954,21158944,36894458,21090035,36883710,35130061,40142784,42479684,35133500,783228,40142910,36787269,1356143,35135829,1356140,44120754,41205832,40924271,40986621,40830666,41205663,40861866,43274335,43263324,43621601,1356154,1356147,40143105,43134418,40727834,36811735,40861768,40727839,35150375,44081619,36811485,1356213,40143214,1356217,1356215,1356101,42800913,40143326,36894464,44817882,40143337,42941603,35146684,35160199,44029688,42481922,36813480,36812414,1356244,21150787,44082127,41206083,42873412,44069324,41236953,1356138,1356136,40152662,40156382,41048760,40754973,21089505,40144020,36882733,42482744,40144024,792484,40755794,37592046,43532281,43291091,41267401,40144035,35147990,35149212,40144037,40223712,42629522,42480849,1356191,1356187,44107471,43145868,43259954,1356196,35145836,43292583,1356199,42479568,1356211,44055847,44081467,1356120,40182262,40746092,21026290,46275343,40746100,21174574,45775117,40861610,36810762,35147090,41205378,40152687,40167702,35158799,783089,1356189,42482075,42482607,1356250,45774773,36421515,37592341,44785908,43263899,41267166,45774869,43285708,41142750) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42483138,36812530,40727741,1356123,40142665,46234463,1356111,1356108,40142703,36421291,40745353,36787954,21158944,36894458,21090035,36883710,35130061,40142784,42479684,35133500,783228,40142910,36787269,1356143,35135829,1356140,44120754,41205832,40924271,40986621,40830666,41205663,40861866,43274335,43263324,43621601,1356154,1356147,40143105,43134418,40727834,36811735,40861768,40727839,35150375,44081619,36811485,1356213,40143214,1356217,1356215,1356101,42800913,40143326,36894464,44817882,40143337,42941603,35146684,35160199,44029688,42481922,36813480,36812414,1356244,21150787,44082127,41206083,42873412,44069324,41236953,1356138,1356136,40152662,40156382,41048760,40754973,21089505,40144020,36882733,42482744,40144024,792484,40755794,37592046,43532281,43291091,41267401,40144035,35147990,35149212,40144037,40223712,42629522,42480849,1356191,1356187,44107471,43145868,43259954,1356196,35145836,43292583,1356199,42479568,1356211,44055847,44081467,1356120,40182262,40746092,21026290,46275343,40746100,21174574,45775117,40861610,36810762,35147090,41205378,40152687,40167702,35158799,783089,1356189,42482075,42482607,1356250,45774773,36421515,37592341,44785908,43263899,41267166,45774869,43285708,41142750)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42483138,36812530,40727741,1356123,40142665,46234463,1356111,1356108,40142703,36421291,40745353,36787954,21158944,36894458,21090035,36883710,35130061,40142784,42479684,35133500,783228,40142910,36787269,1356143,35135829,1356140,44120754,41205832,40924271,40986621,40830666,41205663,40861866,43274335,43263324,43621601,1356154,1356147,40143105,43134418,40727834,36811735,40861768,40727839,35150375,44081619,36811485,1356213,40143214,1356217,1356215,1356101,42800913,40143326,36894464,44817882,40143337,42941603,35146684,35160199,44029688,42481922,36813480,36812414,1356244,21150787,44082127,41206083,42873412,44069324,41236953,1356138,1356136,40152662,40156382,41048760,40754973,21089505,40144020,36882733,42482744,40144024,792484,40755794,37592046,43532281,43291091,41267401,40144035,35147990,35149212,40144037,40223712,42629522,42480849,1356191,1356187,44107471,43145868,43259954,1356196,35145836,43292583,1356199,42479568,1356211,44055847,44081467,1356120,40182262,40746092,21026290,46275343,40746100,21174574,45775117,40861610,36810762,35147090,41205378,40152687,40167702,35158799,783089,1356189,42482075,42482607,1356250,45774773,36421515,37592341,44785908,43263899,41267166,45774869,43285708,41142750) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42483138,36812530,40727741,1356123,40142665,46234463,1356111,1356108,40142703,36421291,40745353,36787954,21158944,36894458,21090035,36883710,35130061,40142784,42479684,35133500,783228,40142910,36787269,1356143,35135829,1356140,44120754,41205832,40924271,40986621,40830666,41205663,40861866,43274335,43263324,43621601,1356154,1356147,40143105,43134418,40727834,36811735,40861768,40727839,35150375,44081619,36811485,1356213,40143214,1356217,1356215,1356101,42800913,40143326,36894464,44817882,40143337,42941603,35146684,35160199,44029688,42481922,36813480,36812414,1356244,21150787,44082127,41206083,42873412,44069324,41236953,1356138,1356136,40152662,40156382,41048760,40754973,21089505,40144020,36882733,42482744,40144024,792484,40755794,37592046,43532281,43291091,41267401,40144035,35147990,35149212,40144037,40223712,42629522,42480849,1356191,1356187,44107471,43145868,43259954,1356196,35145836,43292583,1356199,42479568,1356211,44055847,44081467,1356120,40182262,40746092,21026290,46275343,40746100,21174574,45775117,40861610,36810762,35147090,41205378,40152687,40167702,35158799,783089,1356189,42482075,42482607,1356250,45774773,36421515,37592341,44785908,43263899,41267166,45774869,43285708,41142750)) ) I ) C; @@ -140,49 +140,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1263.sql b/inst/sql/sql_server/1263.sql index 840d77cd..b9c884ae 100644 --- a/inst/sql/sql_server/1263.sql +++ b/inst/sql/sql_server/1263.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (255573,258780) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (255573,258780)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (255573,258780) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (255573,258780)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43134418,40727834,36811735,40727741,1356123,44186991,41048760,40754973,21089505,42483138,36812530,36421291,40745353,36787954,21158944,36894458,21090035,42479684,35133500,783228,40142910,36787269,792484,40755794,37592046,43532281,43291091,41267401,42935522,36421515,37592341,44785908,43263899,41267166,42481318,44094568,43145868,43259954,1356196,35145836) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43134418,40727834,36811735,40727741,1356123,44186991,41048760,40754973,21089505,42483138,36812530,36421291,40745353,36787954,21158944,36894458,21090035,42479684,35133500,783228,40142910,36787269,792484,40755794,37592046,43532281,43291091,41267401,42935522,36421515,37592341,44785908,43263899,41267166,42481318,44094568,43145868,43259954,1356196,35145836)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43134418,40727834,36811735,40727741,1356123,44186991,41048760,40754973,21089505,42483138,36812530,36421291,40745353,36787954,21158944,36894458,21090035,42479684,35133500,783228,40142910,36787269,792484,40755794,37592046,43532281,43291091,41267401,42935522,36421515,37592341,44785908,43263899,41267166,42481318,44094568,43145868,43259954,1356196,35145836) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43134418,40727834,36811735,40727741,1356123,44186991,41048760,40754973,21089505,42483138,36812530,36421291,40745353,36787954,21158944,36894458,21090035,42479684,35133500,783228,40142910,36787269,792484,40755794,37592046,43532281,43291091,41267401,42935522,36421515,37592341,44785908,43263899,41267166,42481318,44094568,43145868,43259954,1356196,35145836)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1112921,1106776) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1112921,1106776)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1112921,1106776) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1112921,1106776)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317009,4235703,4279553) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317009,4235703,4279553)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317009,4235703,4279553) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317009,4235703,4279553)) ) I ) C; @@ -243,49 +243,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1264.sql b/inst/sql/sql_server/1264.sql index 99db756c..c9f08730 100644 --- a/inst/sql/sql_server/1264.sql +++ b/inst/sql/sql_server/1264.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (257010,4028389,4318404,253506) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (257010,4028389,4318404,253506)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (257010,4028389,4318404,253506) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (257010,4028389,4318404,253506)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1265.sql b/inst/sql/sql_server/1265.sql index 9046b810..497df9dc 100644 --- a/inst/sql/sql_server/1265.sql +++ b/inst/sql/sql_server/1265.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314971,4235401,4169883,4071743,259044,36685455,36685457,45768915,36685451,44805713,4127073,37206131,44782927,4119933,36685454,37116690,44782563,45768983,45769019,4049971,4079978,255841,36685452,45768892,4250891,4244061,46284486,4086243,4141669,37311779,4186898,4119786,46284163,4232302,4295149,441267,36715501,45768987,44788819,37309675,4197819,44802278,36685453,4335886,45772934,2617553,4119443,4283942,46284461,45771017,2617554,45769146,45769020,36685456,36685458,4144583,4188164,4057432,40479565,3654945) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314971,4235401,4169883,4071743,259044,36685455,36685457,45768915,36685451,44805713,4127073,37206131,44782927,4119933,36685454,37116690,44782563,45768983,45769019,4049971,4079978,255841,36685452,45768892,4250891,4244061,46284486,4086243,4141669,37311779,4186898,4119786,46284163,4232302,4295149,441267,36715501,45768987,44788819,37309675,4197819,44802278,36685453,4335886,45772934,2617553,4119443,4283942,46284461,45771017,2617554,45769146,45769020,36685456,36685458,4144583,4188164,4057432,40479565,3654945)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314971,4235401,4169883,4071743,259044,36685455,36685457,45768915,36685451,44805713,4127073,37206131,44782927,4119933,36685454,37116690,44782563,45768983,45769019,4049971,4079978,255841,36685452,45768892,4250891,4244061,46284486,4086243,4141669,37311779,4186898,4119786,46284163,4232302,4295149,441267,36715501,45768987,44788819,37309675,4197819,44802278,36685453,4335886,45772934,2617553,4119443,4283942,46284461,45771017,2617554,45769146,45769020,36685456,36685458,4144583,4188164,4057432,40479565,3654945) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314971,4235401,4169883,4071743,259044,36685455,36685457,45768915,36685451,44805713,4127073,37206131,44782927,4119933,36685454,37116690,44782563,45768983,45769019,4049971,4079978,255841,36685452,45768892,4250891,4244061,46284486,4086243,4141669,37311779,4186898,4119786,46284163,4232302,4295149,441267,36715501,45768987,44788819,37309675,4197819,44802278,36685453,4335886,45772934,2617553,4119443,4283942,46284461,45771017,2617554,45769146,45769020,36685456,36685458,4144583,4188164,4057432,40479565,3654945)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4322024,44783628) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4322024,44783628)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4322024,44783628) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4322024,44783628)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,43020910,44782566,4207534,43021932,43020840,43020842,43021933,43020841,44783642,4120092) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,43020910,44782566,4207534,43021932,43020840,43020842,43021933,43020841,44783642,4120092)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,43020910,44782566,4207534,43021932,43020840,43020842,43021933,43020841,44783642,4120092) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,43020910,44782566,4207534,43021932,43020840,43020842,43021933,43020841,44783642,4120092)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2313869,2313870,2313867,45889580,2313868,2313871,2616265,2616271,2616263,2616264,2616266,2786067,2786066,2786065,2786064,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,36904921,36915343,2001543,36904275,42732622,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,2313900,40756899,45890619,927088,40757025,4243461,4148375,4218124,36911605,36905585,36907212,36907064,2786547,2786538,43018257,43018266,2786549,2786540,43018259,43018268,40756899,40757025,42738797,42732626,2313898,2313900,42732627,2313899,42732628,2786538,2786547,43018257,43018266,42732622,2313897,40756947,45890619,927088,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,2313870,2313869,2313871,45889580,2313867,2313868,2616263,2616264,2616265,2616271,2616266) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2313869,2313870,2313867,45889580,2313868,2313871,2616265,2616271,2616263,2616264,2616266,2786067,2786066,2786065,2786064,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,36904921,36915343,2001543,36904275,42732622,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,2313900,40756899,45890619,927088,40757025,4243461,4148375,4218124,36911605,36905585,36907212,36907064,2786547,2786538,43018257,43018266,2786549,2786540,43018259,43018268,40756899,40757025,42738797,42732626,2313898,2313900,42732627,2313899,42732628,2786538,2786547,43018257,43018266,42732622,2313897,40756947,45890619,927088,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,2313870,2313869,2313871,45889580,2313867,2313868,2616263,2616264,2616265,2616271,2616266)) ) I ) C; @@ -235,49 +235,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1266.sql b/inst/sql/sql_server/1266.sql index 8cfd9343..487d84b8 100644 --- a/inst/sql/sql_server/1266.sql +++ b/inst/sql/sql_server/1266.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36560845,42512102,4110705,36518654,45768880,36531819,4196724,44500239,44500790,36529004,36530839,36530344,36556614,36544137,36529581,36551342,44501124,36518808,45772939,44501357,36534747,42512222,36525643,44502341,44501179,36556975,44502784,36545242,36535081,44503537,36525052,42511851,36550921,4197582,36565786,44501516,44501188,36517425,44502764,36567491,36523297,44502952,36524730,36526753,44502334,36717017,42512311,45768885,36555776,36712707,36549979,36537460,44503010,36552939,36712981,36558877,44500843,42512380,44502703,36566849,36543984,36539178,44502426,36565647,36529404,36560716,36523843,4111805,45768919,36552199,44499882,42512569,36532437,602150,36548970,44501795,4313200,1553574,36546410,36567060,44501807,44500114,44501558,36545406,44500448,36561870,36526019,4313751,36525571,36553787,44500290,44499508,45768920,36562727,36712815,45768918,36520748,36520147,45768881,44501559,44500855,44503150,44501709,36563834,36518010,36521066,44500433,36534932,36561283,36535903,44502769,36556450,44499947,36531433,605445,4310448,44501086,36517557,45768927,4307118,36529691,36525066,36532293,36528862,36567972,36546635,36526943,42512616,44502176,44500302,602169,36558400,36548825,4197583,45768923,36531120,36548201,44500183,42539251,36521546,36561916,45768932,36542106,44500061,36530431,36538391,4312274,44500348,36562863,45768883,36559186,36554751,36519172,36564508,36558515,44502006,44501310,36558543,36531338,44499623,36527609,44503018,36565803,36535188,44502238,44501335,44501411,36566204,44500415,44500573,36556919,36541364,44502329,36549552,36522427,36549769,36531347,44501394,36526440,44503093,36712709,36518085,44500984,36548626,44502549,42511853,36547678,44503138,44499889,44499741,36538582,36517902,44499866,36536126,44500303,45768921,45768884,44499915,44500287,36546260,36567582,36525316,602168,45768928,36567546,36561699,36520546,1553230,44500201,42512620,36560935,45772938,36537768,36557751,44500190,36561009,36523265,44503152,36564894,36545286,36567740,36518742,602163,36552385,605430,36531543,36524261,36560457,36561274,36539661,36529321,44502436,36567150,36553794,36541027,44501567,36520827,602167,44500713,44502921,44501707,4322387,4115276,36545785,36528414,44502856,36545761,36537690,36557771,44502466,44500359,44499900,36549175,44502961,36541263,45768916,36686538,36532026,36530069,44502876,36563276,36538432,36547511,36545372,36529246,36552086,36560499,36549159,36517234,36548193,44501926,44499726,36555703,36537196,36716500,36525101,36557699,36566369,42512167,36533051,4196725,608853,36538464,44500414,36565633,36567522,45768929,36563562,44502457,36565111,42512326,36549522,44499621,36520186,44502949,4110589,36551697,36567502,36565274,44502543,36543615,36531136,45768886,36541713,44502943,36559892,36538987,36545324,36531398,36560854,44501887,42512246,44503098,36529740,36539497,42511673,45769034,44499730,4112738,36552502,36529938,605447,44499794,36402516,44501794,45768931,44503136,44503538,46272955,36551818,4312768,44499010,36521617,605446,36550225,44500730,36556677,44500072,36541699,44501191,602682,44501438,36535086,44499688,45768922,36537376,36536903,42512336,42512867,36560118,36543960,44502938,44501061,36563105,36551189,45768930,36562795,44499686,36533557,4110590,44500918,36537250,36519829,36519384,602697,36567179,36536437,36541640,44502623,44502320,36553379,44503034,36531901,44499676,36522039,4314040,36533348,44501613,44502390,44502810,36537230,44502885,36712816,36526433,602171,36539915,44500841,42511979,36542965,44502456,36566002,36532368,44501404,37311684,36535558,37116436,36539299,36547828,42512758,602698,44500356,36561810,602149,44501560,36563697,4197581,36684857,36543187,36536786,36686537,36554642,36538056,45768917,42511919,45768879,36555815,36520679,44500710,42512146,44499488,44501585,36563600,36548953,36539223,36541038,44502109,36524452,44503539,42512859,36564925,44501617,36712708,36539842,36532996) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36560845,42512102,4110705,36518654,45768880,36531819,4196724,44500239,44500790,36529004,36530839,36530344,36556614,36544137,36529581,36551342,44501124,36518808,45772939,44501357,36534747,42512222,36525643,44502341,44501179,36556975,44502784,36545242,36535081,44503537,36525052,42511851,36550921,4197582,36565786,44501516,44501188,36517425,44502764,36567491,36523297,44502952,36524730,36526753,44502334,36717017,42512311,45768885,36555776,36712707,36549979,36537460,44503010,36552939,36712981,36558877,44500843,42512380,44502703,36566849,36543984,36539178,44502426,36565647,36529404,36560716,36523843,4111805,45768919,36552199,44499882,42512569,36532437,602150,36548970,44501795,4313200,1553574,36546410,36567060,44501807,44500114,44501558,36545406,44500448,36561870,36526019,4313751,36525571,36553787,44500290,44499508,45768920,36562727,36712815,45768918,36520748,36520147,45768881,44501559,44500855,44503150,44501709,36563834,36518010,36521066,44500433,36534932,36561283,36535903,44502769,36556450,44499947,36531433,605445,4310448,44501086,36517557,45768927,4307118,36529691,36525066,36532293,36528862,36567972,36546635,36526943,42512616,44502176,44500302,602169,36558400,36548825,4197583,45768923,36531120,36548201,44500183,42539251,36521546,36561916,45768932,36542106,44500061,36530431,36538391,4312274,44500348,36562863,45768883,36559186,36554751,36519172,36564508,36558515,44502006,44501310,36558543,36531338,44499623,36527609,44503018,36565803,36535188,44502238,44501335,44501411,36566204,44500415,44500573,36556919,36541364,44502329,36549552,36522427,36549769,36531347,44501394,36526440,44503093,36712709,36518085,44500984,36548626,44502549,42511853,36547678,44503138,44499889,44499741,36538582,36517902,44499866,36536126,44500303,45768921,45768884,44499915,44500287,36546260,36567582,36525316,602168,45768928,36567546,36561699,36520546,1553230,44500201,42512620,36560935,45772938,36537768,36557751,44500190,36561009,36523265,44503152,36564894,36545286,36567740,36518742,602163,36552385,605430,36531543,36524261,36560457,36561274,36539661,36529321,44502436,36567150,36553794,36541027,44501567,36520827,602167,44500713,44502921,44501707,4322387,4115276,36545785,36528414,44502856,36545761,36537690,36557771,44502466,44500359,44499900,36549175,44502961,36541263,45768916,36686538,36532026,36530069,44502876,36563276,36538432,36547511,36545372,36529246,36552086,36560499,36549159,36517234,36548193,44501926,44499726,36555703,36537196,36716500,36525101,36557699,36566369,42512167,36533051,4196725,608853,36538464,44500414,36565633,36567522,45768929,36563562,44502457,36565111,42512326,36549522,44499621,36520186,44502949,4110589,36551697,36567502,36565274,44502543,36543615,36531136,45768886,36541713,44502943,36559892,36538987,36545324,36531398,36560854,44501887,42512246,44503098,36529740,36539497,42511673,45769034,44499730,4112738,36552502,36529938,605447,44499794,36402516,44501794,45768931,44503136,44503538,46272955,36551818,4312768,44499010,36521617,605446,36550225,44500730,36556677,44500072,36541699,44501191,602682,44501438,36535086,44499688,45768922,36537376,36536903,42512336,42512867,36560118,36543960,44502938,44501061,36563105,36551189,45768930,36562795,44499686,36533557,4110590,44500918,36537250,36519829,36519384,602697,36567179,36536437,36541640,44502623,44502320,36553379,44503034,36531901,44499676,36522039,4314040,36533348,44501613,44502390,44502810,36537230,44502885,36712816,36526433,602171,36539915,44500841,42511979,36542965,44502456,36566002,36532368,44501404,37311684,36535558,37116436,36539299,36547828,42512758,602698,44500356,36561810,602149,44501560,36563697,4197581,36684857,36543187,36536786,36686537,36554642,36538056,45768917,42511919,45768879,36555815,36520679,44500710,42512146,44499488,44501585,36563600,36548953,36539223,36541038,44502109,36524452,44503539,42512859,36564925,44501617,36712708,36539842,36532996)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4115276) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4115276)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1267.sql b/inst/sql/sql_server/1267.sql index ed3f2157..ab18094f 100644 --- a/inst/sql/sql_server/1267.sql +++ b/inst/sql/sql_server/1267.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4201621,4201020,443388,443399,36684857) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4201621,4201020,443388,443399,36684857)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4201621,4201020,443388,443399,36684857) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4201621,4201020,443388,443399,36684857)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254591,44501059,36560318,36543337,36563684,36518396,36520293,36523843,44502938,44501408,44503017,44501264,44502106,36532214,44500865,44502936,44502772,36556766,44500726,36529335,36525369,36561063,36546119,36542395,36538112,36522061,36549716,36716499,36716500,37397538,36532707,36545645,36542792,36562917,36560870,36560866,4100540,36549665,37111619,36562844,44504617,36557947,36564097,36527209,44503537,36550921,36524261,36560935,36526440,44502426,36519531,36545324,36539299,36552502,36550225,36538432,36553379,36539178,36533557,36524452,36564894,36526943,45768927,42511197,44501104,36520456,36542373,36540740,36524303,4111807,36518535,36526200,44500614,1553574,36556168,36550124,36548258,36554657,36544401,36521072,36525541,36528931,36543365,36544299,44500666,42511714,36518085,36532368,36567179,36562795,36563562,36519172,44504619,36567811,36528497,36558075,36558320,36533160,36533303,36536486,36520883,36527417,36562007,36561629,36524077,36537230,36559186,36531433,36562727,44501791,42511836,4198434,254583,44502142,36529395,36537547,36533461,36563157,36562643,36545323,36533542,36529954,36528948,36546822,44501916,44499941,36560737,44503531,36538201,36551506,36561320,44500278,36531087,36547997,36538769,36543471,44500325,36566005,36529611,36520389,36562882,36519385,36519385,44500647,36524580,36545575,36547617,44503114,44501591,36517590,36557068,44502404,36552458,44500885,36534332,36526173,36557406,36534648,36563681,36546924,36542025,36528608,36532851,36559148,36517346,36522054,36518628,36540186,36559870,44502199,36562406,36526098,36522773,36554435,36526633,36563139,44499410,36518613,44502589,36555975,40489468,36565504,36520252,36536689,36529621,36548325,36549830,36519168,36531839,44501740,36549254,36553640,36550205,36560498,36549871,36525917,36567080,36523869,36565300,36533054,36542851,36560310,36529884,36551173,36536089,36528052,36563690,36561391,36564548,42512943,36547241,36527572,36558801,36528098,44499571,36518505,36543774,36527832,36517443,36525269,36566358,36559656,36550051,36552762,36533190,36523285,42512146,36561406,44500693,36535296,36568015,36554958,36539951,36537461,36541339,36533230,36532469,36557631,36537925,36537885,36556287,44499907,36540203,36520209,36528949,36548254,36563971,36556317,36532111,36547041,36555210,44500896,44498975,36521849,36557572,36546205,44501807,42511847,42512748,42511773,42512188,42512429,36519672,36560792,40391740,36561198,36568076,36530883,36531963,44500809,36523412,36538057,36530722,36538858,36556267,36538987,36538582,765056,36567102,36537905,36535304,36535826,36521578,36540537,36528207,36522077,44499670,36529848,36525709,36556937,36527749,36521607,36548230,36553448,36553442,36529954,36539726,36538201,36551142,36566005,1553457,36561424,36557330,44500710,36554873,36519544,36549209,36567131,36552276,36536407,36567225,36533500,36559103,36561652,44503111,36526380,42512777,44501421,36552471,36540284,36526449,36517187,36529500,36566445,36544421,36558216,42512206,36524541,36562938,36519369,36545575,36543749,36523825,36535241,36566494,40492020,40490998,36563234,36555444,36526085,36520928,36537701,36539830,36523821,36550415,36543707,36547246,36541243,36560409,36548320,36565014,36530632,36560811,36554171,36564140,36565831,36526879,36563602,36534967,36555957,36559237,36538506,36534701,36523848,44501318,36551461,36551114,36561068,36528907,36560585,36524770,44499830,36518572,42511947,36556675,36559568,36567958,36538959,36522433,36527884,36521860,36523887,42512093,42512186,42512479,42512795,36531808,36543925,36559704,36530558,36540571,36543150,36550060,36562787,42512923,36530501,36542314,36540387,36563719,36548390,36522697,36536890,36524776,45769035,45768923,44499947,44501560,44499623,36517425,44500086,36529368,36551720,36557323,44502045,44501966,36545565,36518822,36560847,36566443,36565732,36540926,36546138,36552050,36551518,36525197,44501810,44501360,36534059,44500514,36546568,36537680,36542818,36550994,44500895,44501593,36538384,36556587,44502131,36544925,36559545,44499931,36543198,36564528,36538912,36518482,36526133,36564406,36565366,36546625,36546742,36554343,36530898,36518168,36544100,42512800,42511869,42512038,42511724,42511824,42511643,36403149,42512747,42512286,42512532,42512028,36403081,36530431,36564925,36518010,36556919,36532026,44503034,36555472,36532834,3654297,3654352,36523318,36517535,36562473,36540164,36555661,36518438,36521556,36553116,36567431,36518412,36551466,36532094,36540562,36550669,36558542,36556619,36517796,36533365,36521683,36549271,36550031,36542618,36565196,36524497,36535563,36520446,36531818,36555652,36526210,36537874,36564176,36529299,36520980,36537594,36554446,36533290,36523730,36403024,36554251,44500330,36542611,36549983,36542388,36529430,36531470,36530198,44499863,36564825,36523415,36533756,36556242,36529186,36517990,42512088,42511865,42512079,42511815,36530085,36548457,36565708,36519134,44500480,44500048,44501388,36531398,36533051,36535188,44499730,36520546,44501617,36525474,36567702,36556039,36547447,44498992,36549098,36551030,44501096,36517751,36542740,36545668,36520427,36559981,36531667,36546808,44500933,36550952,36537376,36544341,36559841,44501493,36562353,36556230,36553679,36567001,36530476,36543016,36532626,36528602,36547527,36558235,36551292,36529590,36556496,44503150,44499502,44501887) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254591,44501059,36560318,36543337,36563684,36518396,36520293,36523843,44502938,44501408,44503017,44501264,44502106,36532214,44500865,44502936,44502772,36556766,44500726,36529335,36525369,36561063,36546119,36542395,36538112,36522061,36549716,36716499,36716500,37397538,36532707,36545645,36542792,36562917,36560870,36560866,4100540,36549665,37111619,36562844,44504617,36557947,36564097,36527209,44503537,36550921,36524261,36560935,36526440,44502426,36519531,36545324,36539299,36552502,36550225,36538432,36553379,36539178,36533557,36524452,36564894,36526943,45768927,42511197,44501104,36520456,36542373,36540740,36524303,4111807,36518535,36526200,44500614,1553574,36556168,36550124,36548258,36554657,36544401,36521072,36525541,36528931,36543365,36544299,44500666,42511714,36518085,36532368,36567179,36562795,36563562,36519172,44504619,36567811,36528497,36558075,36558320,36533160,36533303,36536486,36520883,36527417,36562007,36561629,36524077,36537230,36559186,36531433,36562727,44501791,42511836,4198434,254583,44502142,36529395,36537547,36533461,36563157,36562643,36545323,36533542,36529954,36528948,36546822,44501916,44499941,36560737,44503531,36538201,36551506,36561320,44500278,36531087,36547997,36538769,36543471,44500325,36566005,36529611,36520389,36562882,36519385,36519385,44500647,36524580,36545575,36547617,44503114,44501591,36517590,36557068,44502404,36552458,44500885,36534332,36526173,36557406,36534648,36563681,36546924,36542025,36528608,36532851,36559148,36517346,36522054,36518628,36540186,36559870,44502199,36562406,36526098,36522773,36554435,36526633,36563139,44499410,36518613,44502589,36555975,40489468,36565504,36520252,36536689,36529621,36548325,36549830,36519168,36531839,44501740,36549254,36553640,36550205,36560498,36549871,36525917,36567080,36523869,36565300,36533054,36542851,36560310,36529884,36551173,36536089,36528052,36563690,36561391,36564548,42512943,36547241,36527572,36558801,36528098,44499571,36518505,36543774,36527832,36517443,36525269,36566358,36559656,36550051,36552762,36533190,36523285,42512146,36561406,44500693,36535296,36568015,36554958,36539951,36537461,36541339,36533230,36532469,36557631,36537925,36537885,36556287,44499907,36540203,36520209,36528949,36548254,36563971,36556317,36532111,36547041,36555210,44500896,44498975,36521849,36557572,36546205,44501807,42511847,42512748,42511773,42512188,42512429,36519672,36560792,40391740,36561198,36568076,36530883,36531963,44500809,36523412,36538057,36530722,36538858,36556267,36538987,36538582,765056,36567102,36537905,36535304,36535826,36521578,36540537,36528207,36522077,44499670,36529848,36525709,36556937,36527749,36521607,36548230,36553448,36553442,36529954,36539726,36538201,36551142,36566005,1553457,36561424,36557330,44500710,36554873,36519544,36549209,36567131,36552276,36536407,36567225,36533500,36559103,36561652,44503111,36526380,42512777,44501421,36552471,36540284,36526449,36517187,36529500,36566445,36544421,36558216,42512206,36524541,36562938,36519369,36545575,36543749,36523825,36535241,36566494,40492020,40490998,36563234,36555444,36526085,36520928,36537701,36539830,36523821,36550415,36543707,36547246,36541243,36560409,36548320,36565014,36530632,36560811,36554171,36564140,36565831,36526879,36563602,36534967,36555957,36559237,36538506,36534701,36523848,44501318,36551461,36551114,36561068,36528907,36560585,36524770,44499830,36518572,42511947,36556675,36559568,36567958,36538959,36522433,36527884,36521860,36523887,42512093,42512186,42512479,42512795,36531808,36543925,36559704,36530558,36540571,36543150,36550060,36562787,42512923,36530501,36542314,36540387,36563719,36548390,36522697,36536890,36524776,45769035,45768923,44499947,44501560,44499623,36517425,44500086,36529368,36551720,36557323,44502045,44501966,36545565,36518822,36560847,36566443,36565732,36540926,36546138,36552050,36551518,36525197,44501810,44501360,36534059,44500514,36546568,36537680,36542818,36550994,44500895,44501593,36538384,36556587,44502131,36544925,36559545,44499931,36543198,36564528,36538912,36518482,36526133,36564406,36565366,36546625,36546742,36554343,36530898,36518168,36544100,42512800,42511869,42512038,42511724,42511824,42511643,36403149,42512747,42512286,42512532,42512028,36403081,36530431,36564925,36518010,36556919,36532026,44503034,36555472,36532834,3654297,3654352,36523318,36517535,36562473,36540164,36555661,36518438,36521556,36553116,36567431,36518412,36551466,36532094,36540562,36550669,36558542,36556619,36517796,36533365,36521683,36549271,36550031,36542618,36565196,36524497,36535563,36520446,36531818,36555652,36526210,36537874,36564176,36529299,36520980,36537594,36554446,36533290,36523730,36403024,36554251,44500330,36542611,36549983,36542388,36529430,36531470,36530198,44499863,36564825,36523415,36533756,36556242,36529186,36517990,42512088,42511865,42512079,42511815,36530085,36548457,36565708,36519134,44500480,44500048,44501388,36531398,36533051,36535188,44499730,36520546,44501617,36525474,36567702,36556039,36547447,44498992,36549098,36551030,44501096,36517751,36542740,36545668,36520427,36559981,36531667,36546808,44500933,36550952,36537376,36544341,36559841,44501493,36562353,36556230,36553679,36567001,36530476,36543016,36532626,36528602,36547527,36558235,36551292,36529590,36556496,44503150,44499502,44501887)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254591,44501059,36560318,36543337,36563684,36518396,36520293,36523843,44502938,44501408,44503017,44501264,44502106,36532214,44500865,44502936,44502772,36556766,44500726,36529335,36525369,36561063,36546119,36542395,36538112,36522061,36549716,36716499,36716500,37397538,36532707,36545645,36542792,36562917,36560870,36560866,4100540,36549665,37111619,36562844,44504617,36557947,36564097,36527209,44503537,36550921,36524261,36560935,36526440,44502426,36519531,36545324,36539299,36552502,36550225,36538432,36553379,36539178,36533557,36524452,36564894,36526943,45768927,42511197,44501104,36520456,36542373,36540740,36524303,4111807,36518535,36526200,44500614,1553574,36556168,36550124,36548258,36554657,36544401,36521072,36525541,36528931,36543365,36544299,44500666,42511714,36518085,36532368,36567179,36562795,36563562,36519172,44504619,36567811,36528497,36558075,36558320,36533160,36533303,36536486,36520883,36527417,36562007,36561629,36524077,36537230,36559186,36531433,36562727,44501791,42511836,4198434,254583,44502142,36529395,36537547,36533461,36563157,36562643,36545323,36533542,36529954,36528948,36546822,44501916,44499941,36560737,44503531,36538201,36551506,36561320,44500278,36531087,36547997,36538769,36543471,44500325,36566005,36529611,36520389,36562882,36519385,36519385,44500647,36524580,36545575,36547617,44503114,44501591,36517590,36557068,44502404,36552458,44500885,36534332,36526173,36557406,36534648,36563681,36546924,36542025,36528608,36532851,36559148,36517346,36522054,36518628,36540186,36559870,44502199,36562406,36526098,36522773,36554435,36526633,36563139,44499410,36518613,44502589,36555975,40489468,36565504,36520252,36536689,36529621,36548325,36549830,36519168,36531839,44501740,36549254,36553640,36550205,36560498,36549871,36525917,36567080,36523869,36565300,36533054,36542851,36560310,36529884,36551173,36536089,36528052,36563690,36561391,36564548,42512943,36547241,36527572,36558801,36528098,44499571,36518505,36543774,36527832,36517443,36525269,36566358,36559656,36550051,36552762,36533190,36523285,42512146,36561406,44500693,36535296,36568015,36554958,36539951,36537461,36541339,36533230,36532469,36557631,36537925,36537885,36556287,44499907,36540203,36520209,36528949,36548254,36563971,36556317,36532111,36547041,36555210,44500896,44498975,36521849,36557572,36546205,44501807,42511847,42512748,42511773,42512188,42512429,36519672,36560792,40391740,36561198,36568076,36530883,36531963,44500809,36523412,36538057,36530722,36538858,36556267,36538987,36538582,765056,36567102,36537905,36535304,36535826,36521578,36540537,36528207,36522077,44499670,36529848,36525709,36556937,36527749,36521607,36548230,36553448,36553442,36529954,36539726,36538201,36551142,36566005,1553457,36561424,36557330,44500710,36554873,36519544,36549209,36567131,36552276,36536407,36567225,36533500,36559103,36561652,44503111,36526380,42512777,44501421,36552471,36540284,36526449,36517187,36529500,36566445,36544421,36558216,42512206,36524541,36562938,36519369,36545575,36543749,36523825,36535241,36566494,40492020,40490998,36563234,36555444,36526085,36520928,36537701,36539830,36523821,36550415,36543707,36547246,36541243,36560409,36548320,36565014,36530632,36560811,36554171,36564140,36565831,36526879,36563602,36534967,36555957,36559237,36538506,36534701,36523848,44501318,36551461,36551114,36561068,36528907,36560585,36524770,44499830,36518572,42511947,36556675,36559568,36567958,36538959,36522433,36527884,36521860,36523887,42512093,42512186,42512479,42512795,36531808,36543925,36559704,36530558,36540571,36543150,36550060,36562787,42512923,36530501,36542314,36540387,36563719,36548390,36522697,36536890,36524776,45769035,45768923,44499947,44501560,44499623,36517425,44500086,36529368,36551720,36557323,44502045,44501966,36545565,36518822,36560847,36566443,36565732,36540926,36546138,36552050,36551518,36525197,44501810,44501360,36534059,44500514,36546568,36537680,36542818,36550994,44500895,44501593,36538384,36556587,44502131,36544925,36559545,44499931,36543198,36564528,36538912,36518482,36526133,36564406,36565366,36546625,36546742,36554343,36530898,36518168,36544100,42512800,42511869,42512038,42511724,42511824,42511643,36403149,42512747,42512286,42512532,42512028,36403081,36530431,36564925,36518010,36556919,36532026,44503034,36555472,36532834,3654297,3654352,36523318,36517535,36562473,36540164,36555661,36518438,36521556,36553116,36567431,36518412,36551466,36532094,36540562,36550669,36558542,36556619,36517796,36533365,36521683,36549271,36550031,36542618,36565196,36524497,36535563,36520446,36531818,36555652,36526210,36537874,36564176,36529299,36520980,36537594,36554446,36533290,36523730,36403024,36554251,44500330,36542611,36549983,36542388,36529430,36531470,36530198,44499863,36564825,36523415,36533756,36556242,36529186,36517990,42512088,42511865,42512079,42511815,36530085,36548457,36565708,36519134,44500480,44500048,44501388,36531398,36533051,36535188,44499730,36520546,44501617,36525474,36567702,36556039,36547447,44498992,36549098,36551030,44501096,36517751,36542740,36545668,36520427,36559981,36531667,36546808,44500933,36550952,36537376,36544341,36559841,44501493,36562353,36556230,36553679,36567001,36530476,36543016,36532626,36528602,36547527,36558235,36551292,36529590,36556496,44503150,44499502,44501887) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254591,44501059,36560318,36543337,36563684,36518396,36520293,36523843,44502938,44501408,44503017,44501264,44502106,36532214,44500865,44502936,44502772,36556766,44500726,36529335,36525369,36561063,36546119,36542395,36538112,36522061,36549716,36716499,36716500,37397538,36532707,36545645,36542792,36562917,36560870,36560866,4100540,36549665,37111619,36562844,44504617,36557947,36564097,36527209,44503537,36550921,36524261,36560935,36526440,44502426,36519531,36545324,36539299,36552502,36550225,36538432,36553379,36539178,36533557,36524452,36564894,36526943,45768927,42511197,44501104,36520456,36542373,36540740,36524303,4111807,36518535,36526200,44500614,1553574,36556168,36550124,36548258,36554657,36544401,36521072,36525541,36528931,36543365,36544299,44500666,42511714,36518085,36532368,36567179,36562795,36563562,36519172,44504619,36567811,36528497,36558075,36558320,36533160,36533303,36536486,36520883,36527417,36562007,36561629,36524077,36537230,36559186,36531433,36562727,44501791,42511836,4198434,254583,44502142,36529395,36537547,36533461,36563157,36562643,36545323,36533542,36529954,36528948,36546822,44501916,44499941,36560737,44503531,36538201,36551506,36561320,44500278,36531087,36547997,36538769,36543471,44500325,36566005,36529611,36520389,36562882,36519385,36519385,44500647,36524580,36545575,36547617,44503114,44501591,36517590,36557068,44502404,36552458,44500885,36534332,36526173,36557406,36534648,36563681,36546924,36542025,36528608,36532851,36559148,36517346,36522054,36518628,36540186,36559870,44502199,36562406,36526098,36522773,36554435,36526633,36563139,44499410,36518613,44502589,36555975,40489468,36565504,36520252,36536689,36529621,36548325,36549830,36519168,36531839,44501740,36549254,36553640,36550205,36560498,36549871,36525917,36567080,36523869,36565300,36533054,36542851,36560310,36529884,36551173,36536089,36528052,36563690,36561391,36564548,42512943,36547241,36527572,36558801,36528098,44499571,36518505,36543774,36527832,36517443,36525269,36566358,36559656,36550051,36552762,36533190,36523285,42512146,36561406,44500693,36535296,36568015,36554958,36539951,36537461,36541339,36533230,36532469,36557631,36537925,36537885,36556287,44499907,36540203,36520209,36528949,36548254,36563971,36556317,36532111,36547041,36555210,44500896,44498975,36521849,36557572,36546205,44501807,42511847,42512748,42511773,42512188,42512429,36519672,36560792,40391740,36561198,36568076,36530883,36531963,44500809,36523412,36538057,36530722,36538858,36556267,36538987,36538582,765056,36567102,36537905,36535304,36535826,36521578,36540537,36528207,36522077,44499670,36529848,36525709,36556937,36527749,36521607,36548230,36553448,36553442,36529954,36539726,36538201,36551142,36566005,1553457,36561424,36557330,44500710,36554873,36519544,36549209,36567131,36552276,36536407,36567225,36533500,36559103,36561652,44503111,36526380,42512777,44501421,36552471,36540284,36526449,36517187,36529500,36566445,36544421,36558216,42512206,36524541,36562938,36519369,36545575,36543749,36523825,36535241,36566494,40492020,40490998,36563234,36555444,36526085,36520928,36537701,36539830,36523821,36550415,36543707,36547246,36541243,36560409,36548320,36565014,36530632,36560811,36554171,36564140,36565831,36526879,36563602,36534967,36555957,36559237,36538506,36534701,36523848,44501318,36551461,36551114,36561068,36528907,36560585,36524770,44499830,36518572,42511947,36556675,36559568,36567958,36538959,36522433,36527884,36521860,36523887,42512093,42512186,42512479,42512795,36531808,36543925,36559704,36530558,36540571,36543150,36550060,36562787,42512923,36530501,36542314,36540387,36563719,36548390,36522697,36536890,36524776,45769035,45768923,44499947,44501560,44499623,36517425,44500086,36529368,36551720,36557323,44502045,44501966,36545565,36518822,36560847,36566443,36565732,36540926,36546138,36552050,36551518,36525197,44501810,44501360,36534059,44500514,36546568,36537680,36542818,36550994,44500895,44501593,36538384,36556587,44502131,36544925,36559545,44499931,36543198,36564528,36538912,36518482,36526133,36564406,36565366,36546625,36546742,36554343,36530898,36518168,36544100,42512800,42511869,42512038,42511724,42511824,42511643,36403149,42512747,42512286,42512532,42512028,36403081,36530431,36564925,36518010,36556919,36532026,44503034,36555472,36532834,3654297,3654352,36523318,36517535,36562473,36540164,36555661,36518438,36521556,36553116,36567431,36518412,36551466,36532094,36540562,36550669,36558542,36556619,36517796,36533365,36521683,36549271,36550031,36542618,36565196,36524497,36535563,36520446,36531818,36555652,36526210,36537874,36564176,36529299,36520980,36537594,36554446,36533290,36523730,36403024,36554251,44500330,36542611,36549983,36542388,36529430,36531470,36530198,44499863,36564825,36523415,36533756,36556242,36529186,36517990,42512088,42511865,42512079,42511815,36530085,36548457,36565708,36519134,44500480,44500048,44501388,36531398,36533051,36535188,44499730,36520546,44501617,36525474,36567702,36556039,36547447,44498992,36549098,36551030,44501096,36517751,36542740,36545668,36520427,36559981,36531667,36546808,44500933,36550952,36537376,36544341,36559841,44501493,36562353,36556230,36553679,36567001,36530476,36543016,36532626,36528602,36547527,36558235,36551292,36529590,36556496,44503150,44499502,44501887)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1268.sql b/inst/sql/sql_server/1268.sql index 6dde31f3..bfcb14a0 100644 --- a/inst/sql/sql_server/1268.sql +++ b/inst/sql/sql_server/1268.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 86 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2742069,2742070,2742072,2742064,2742065,2742067,2742059,2742060,2742062,2744438,2744633,2744637,2744428,2744430,2744432,2744434,2744418,2744420,2744422,2744424,2001338,2001328,2001329,2001343,2001337,2001340,2001334,2001327,2744192,2744193,2744194,2744195,2744196,2744187,2744188,2744189,2744190,2744191,2744182,2744183,2744184,2744185,2744186,2001331,2001326,2001339,2001342,2001336) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2742069,2742070,2742072,2742064,2742065,2742067,2742059,2742060,2742062,2744438,2744633,2744637,2744428,2744430,2744432,2744434,2744418,2744420,2744422,2744424,2001338,2001328,2001329,2001343,2001337,2001340,2001334,2001327,2744192,2744193,2744194,2744195,2744196,2744187,2744188,2744189,2744190,2744191,2744182,2744183,2744184,2744185,2744186,2001331,2001326,2001339,2001342,2001336)) ) I ) C; @@ -433,49 +433,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1269.sql b/inst/sql/sql_server/1269.sql index 06a3ef9b..a7b980e1 100644 --- a/inst/sql/sql_server/1269.sql +++ b/inst/sql/sql_server/1269.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4197819) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4197819)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4197819) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4197819)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1270.sql b/inst/sql/sql_server/1270.sql index 50a2d0f6..0b96a0e8 100644 --- a/inst/sql/sql_server/1270.sql +++ b/inst/sql/sql_server/1270.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197508) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197508)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197508) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197508)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1271.sql b/inst/sql/sql_server/1271.sql index 8c77885c..36179a3b 100644 --- a/inst/sql/sql_server/1271.sql +++ b/inst/sql/sql_server/1271.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (255573,258780) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (255573,258780)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (255573,258780) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (255573,258780)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1272.sql b/inst/sql/sql_server/1272.sql index 0827e07c..cf03a144 100644 --- a/inst/sql/sql_server/1272.sql +++ b/inst/sql/sql_server/1272.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4119786) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4119786)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4119786) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4119786)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4195694,438791,258180,4006969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4195694,438791,258180,4006969)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4195694,438791,258180,4006969) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4195694,438791,258180,4006969)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1273.sql b/inst/sql/sql_server/1273.sql index b431783a..41d4223a 100644 --- a/inst/sql/sql_server/1273.sql +++ b/inst/sql/sql_server/1273.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37206719,4203096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37206719,4203096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37206719) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37206719)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1274.sql b/inst/sql/sql_server/1274.sql index ea790582..af82869d 100644 --- a/inst/sql/sql_server/1274.sql +++ b/inst/sql/sql_server/1274.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37206719,4203096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37206719,4203096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37206719) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37206719)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4142875) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4142875)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4142875) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4142875)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4114805) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4114805)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4114805) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4114805)) ) I ) C; @@ -207,49 +207,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1275.sql b/inst/sql/sql_server/1275.sql index 153adfc8..9268dda5 100644 --- a/inst/sql/sql_server/1275.sql +++ b/inst/sql/sql_server/1275.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37206719,4203096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37206719,4203096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37206719) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37206719)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40482871) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40482871)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40482871) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40482871)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4104316) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4104316)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4104316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4104316)) ) I ) C; @@ -207,49 +207,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1276.sql b/inst/sql/sql_server/1276.sql index 6374bd96..a88ad833 100644 --- a/inst/sql/sql_server/1276.sql +++ b/inst/sql/sql_server/1276.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4203096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4203096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4203096) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4203096)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4006969,261880,4197819,4324261,257010,46269691) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4006969,261880,4197819,4324261,257010,46269691)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4006969,261880,4197819,4324261,257010,46269691) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4006969,261880,4197819,4324261,257010,46269691)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1277.sql b/inst/sql/sql_server/1277.sql index a4336cd0..b1aae555 100644 --- a/inst/sql/sql_server/1277.sql +++ b/inst/sql/sql_server/1277.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4116778) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4116778)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4116778) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4116778)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4006969,261880,4197819,4324261,257010,46269691) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4006969,261880,4197819,4324261,257010,46269691)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4006969,261880,4197819,4324261,257010,46269691) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4006969,261880,4197819,4324261,257010,46269691)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1278.sql b/inst/sql/sql_server/1278.sql index cfa8711b..e57ccb6d 100644 --- a/inst/sql/sql_server/1278.sql +++ b/inst/sql/sql_server/1278.sql @@ -7,205 +7,205 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4157333,4128888,443388,4311499) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4157333,4128888,443388,4311499)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4157333,4128888,443388) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4157333,4128888,443388)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254591,4248073,4242353,46270492,254583,4174275) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254591,4248073,4242353,46270492,254583,4174275)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43533090,43012292,35200783,1315411,1325363,1319193,36878778,35884401,45775396,45892628,36878777,1378382,45775965,1304919,44818489,19056756,19006877,40238052,19008264,19008336) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43533090,43012292,35200783,1315411,1325363,1319193,36878778,35884401,45775396,45892628,36878777,1378382,45775965,1304919,44818489,19056756,19006877,40238052,19008264,19008336)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43533090,43012292,35200783,1315411,1325363,1319193,36878778,35884401,45775396,45892628,36878777,1378382,45775965,1304919,44818489,19056756,19006877,40238052,19008264,19008336) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43533090,43012292,35200783,1315411,1325363,1319193,36878778,35884401,45775396,45892628,36878777,1378382,45775965,1304919,44818489,19056756,19006877,40238052,19008264,19008336)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45890780,44786488,44786489,44786495,45890783,2618000,2617997,2617998,2617999) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45890780,44786488,44786489,44786495,45890783,2618000,2617997,2617998,2617999)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4115276) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4115276)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4115276) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4115276)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40493020) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40493020)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40493020) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40493020)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43527945,35962802,35963763,35945500,35955862,35951557,35949322,35951499,35964132,35952943,42628536,759667,759666,759665,759668,3004053,44816752,35955862,36203113,3032386,46257420,46257532,35961878,35986591,35948173,42742564,46257662,35957723,35948791,40756870,42627903,42742323) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43527945,35962802,35963763,35945500,35955862,35951557,35949322,35951499,35964132,35952943,42628536,759667,759666,759665,759668,3004053,44816752,35955862,36203113,3032386,46257420,46257532,35961878,35986591,35948173,42742564,46257662,35957723,35948791,40756870,42627903,42742323)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43527945,35962802,35963763,35945500,35955862,35951557,35949322,35951499,35964132,35952943,42628536,759667,759666,759665,759668,3004053,44816752,35955862,36203113,3032386,46257420,46257532,35961878,35986591,35948173,42742564,46257662,35957723,35948791,40756870,42627903,42742323) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43527945,35962802,35963763,35945500,35955862,35951557,35949322,35951499,35964132,35952943,42628536,759667,759666,759665,759668,3004053,44816752,35955862,36203113,3032386,46257420,46257532,35961878,35986591,35948173,42742564,46257662,35957723,35948791,40756870,42627903,42742323)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4157333,4128888,443388,4311499,437677,4166126,4142875) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4157333,4128888,443388,4311499,437677,4166126,4142875)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4157333,4128888,443388,437677) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4157333,4128888,443388,437677)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254591,4248073,4242353,46270492,254583,4174275) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254591,4248073,4242353,46270492,254583,4174275)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36769301) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36769301)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36769301) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36769301)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36769180) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36769180)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36769180) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36769180)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1635564) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1635564)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1635564) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1635564)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1635838) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1635838)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1635838) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1635838)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1635131) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1635131)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1635131) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1635131)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1634191) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1634191)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1634191) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1634191)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1633987) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1633987)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1633987) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1633987)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1635142) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1635142)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1635142) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1635142)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1635562) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1635562)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1635562) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1635562)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4110591) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4110591)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4110591) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4110591)) ) I ) C; @@ -1246,49 +1246,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1279.sql b/inst/sql/sql_server/1279.sql index 5448874f..edd75bca 100644 --- a/inst/sql/sql_server/1279.sql +++ b/inst/sql/sql_server/1279.sql @@ -7,106 +7,106 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4157333,4128888,443388,4311499) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4157333,4128888,443388,4311499)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4157333,4128888,443388) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4157333,4128888,443388)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254591,4248073,4242353,46270492,254583,4174275) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254591,4248073,4242353,46270492,254583,4174275)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43533090,43012292,35200783,1315411,1325363,1319193,36878778,35884401,45775396,45892628,36878777,1378382,45775965,1304919,44818489,19056756,19006877,40238052,19008264,19008336) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43533090,43012292,35200783,1315411,1325363,1319193,36878778,35884401,45775396,45892628,36878777,1378382,45775965,1304919,44818489,19056756,19006877,40238052,19008264,19008336)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43533090,43012292,35200783,1315411,1325363,1319193,36878778,35884401,45775396,45892628,36878777,1378382,45775965,1304919,44818489,19056756,19006877,40238052,19008264,19008336) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43533090,43012292,35200783,1315411,1325363,1319193,36878778,35884401,45775396,45892628,36878777,1378382,45775965,1304919,44818489,19056756,19006877,40238052,19008264,19008336)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45890780,44786488,44786489,44786495,45890783,2618000,2617997,2617998,2617999) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45890780,44786488,44786489,44786495,45890783,2618000,2617997,2617998,2617999)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4115276) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4115276)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4115276) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4115276)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40493020) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40493020)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40493020) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40493020)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43527945,35962802,35963763,35945500,35955862,35951557,35949322,35951499,35964132,35952943,42628536,759667,759666,759665,759668,3004053,44816752,35955862,36203113,3032386,46257420,46257532,35961878,35986591,35948173,42742564,46257662,35957723,35948791,40756870,42627903,42742323) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43527945,35962802,35963763,35945500,35955862,35951557,35949322,35951499,35964132,35952943,42628536,759667,759666,759665,759668,3004053,44816752,35955862,36203113,3032386,46257420,46257532,35961878,35986591,35948173,42742564,46257662,35957723,35948791,40756870,42627903,42742323)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43527945,35962802,35963763,35945500,35955862,35951557,35949322,35951499,35964132,35952943,42628536,759667,759666,759665,759668,3004053,44816752,35955862,36203113,3032386,46257420,46257532,35961878,35986591,35948173,42742564,46257662,35957723,35948791,40756870,42627903,42742323) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43527945,35962802,35963763,35945500,35955862,35951557,35949322,35951499,35964132,35952943,42628536,759667,759666,759665,759668,3004053,44816752,35955862,36203113,3032386,46257420,46257532,35961878,35986591,35948173,42742564,46257662,35957723,35948791,40756870,42627903,42742323)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4157333,4128888,443388,4311499,437677,4166126,4142875) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4157333,4128888,443388,4311499,437677,4166126,4142875)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4157333,4128888,443388,437677) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4157333,4128888,443388,437677)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254591,4248073,4242353,46270492,254583,4174275) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254591,4248073,4242353,46270492,254583,4174275)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4110591) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4110591)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4110591) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4110591)) ) I ) C; @@ -483,49 +483,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1280.sql b/inst/sql/sql_server/1280.sql index 07d8e146..0757fdd2 100644 --- a/inst/sql/sql_server/1280.sql +++ b/inst/sql/sql_server/1280.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4110591) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4110591)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4110591) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4110591)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (258369) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (258369)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (258369) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (258369)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36712771) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36712771)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36712771) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36712771)) ) I ) C; @@ -213,49 +213,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1281.sql b/inst/sql/sql_server/1281.sql index 2912e45a..0dcaa340 100644 --- a/inst/sql/sql_server/1281.sql +++ b/inst/sql/sql_server/1281.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4157333,4128888,443388,4311499) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4157333,4128888,443388,4311499)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4157333,4128888,443388) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4157333,4128888,443388)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254591,4248073,4242353,46270492,254583,4174275) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254591,4248073,4242353,46270492,254583,4174275)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4157333,4128888,443388,4311499,437677,4166126,4142875) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4157333,4128888,443388,4311499,437677,4166126,4142875)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4157333,4128888,443388,437677) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4157333,4128888,443388,437677)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254591,4248073,4242353,46270492,254583,4174275) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254591,4248073,4242353,46270492,254583,4174275)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -187,49 +187,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1282.sql b/inst/sql/sql_server/1282.sql index c00705e6..86cf083e 100644 --- a/inst/sql/sql_server/1282.sql +++ b/inst/sql/sql_server/1282.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4177176) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4177176)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4177176) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4177176)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1283.sql b/inst/sql/sql_server/1283.sql index b3d9c1f0..d17c0506 100644 --- a/inst/sql/sql_server/1283.sql +++ b/inst/sql/sql_server/1283.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4129418) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4129418)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4129418) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4129418)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4042505) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4042505)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4042505) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4042505)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4132926) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4132926)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4132926) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4132926)) ) I ) C; @@ -220,49 +220,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1284.sql b/inst/sql/sql_server/1284.sql index 46320631..3e14669c 100644 --- a/inst/sql/sql_server/1284.sql +++ b/inst/sql/sql_server/1284.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4229881) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4229881)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4229881) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4229881)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1285.sql b/inst/sql/sql_server/1285.sql index 70e0ca19..f247bc5b 100644 --- a/inst/sql/sql_server/1285.sql +++ b/inst/sql/sql_server/1285.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (260139,256451) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (260139,256451)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (260139,256451) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (260139,256451)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (255841) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (255841)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (255841) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (255841)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1286.sql b/inst/sql/sql_server/1286.sql index 6bf627d8..be38f9a0 100644 --- a/inst/sql/sql_server/1286.sql +++ b/inst/sql/sql_server/1286.sql @@ -7,205 +7,205 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4157333,4128888,443388,4311499) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4157333,4128888,443388,4311499)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4157333,4128888,443388) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4157333,4128888,443388)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254591,4248073,4242353,46270492,254583,4174275) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254591,4248073,4242353,46270492,254583,4174275)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43533090,43012292,35200783,1315411,1325363,1319193,36878778,35884401,45775396,45892628,36878777,1378382,45775965,1304919,44818489,19056756,19006877,40238052,19008264,19008336) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43533090,43012292,35200783,1315411,1325363,1319193,36878778,35884401,45775396,45892628,36878777,1378382,45775965,1304919,44818489,19056756,19006877,40238052,19008264,19008336)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43533090,43012292,35200783,1315411,1325363,1319193,36878778,35884401,45775396,45892628,36878777,1378382,45775965,1304919,44818489,19056756,19006877,40238052,19008264,19008336) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43533090,43012292,35200783,1315411,1325363,1319193,36878778,35884401,45775396,45892628,36878777,1378382,45775965,1304919,44818489,19056756,19006877,40238052,19008264,19008336)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45890780,44786488,44786489,44786495,45890783,2618000,2617997,2617998,2617999) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45890780,44786488,44786489,44786495,45890783,2618000,2617997,2617998,2617999)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4115276) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4115276)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4115276) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4115276)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40493020) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40493020)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40493020) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40493020)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43527945,35962802,35963763,35945500,35955862,35951557,35949322,35951499,35964132,35952943,42628536,759667,759666,759665,759668,3004053,44816752,35955862,36203113,3032386,46257420,46257532,35961878,35986591,35948173,42742564,46257662,35957723,35948791,40756870,42627903,42742323) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43527945,35962802,35963763,35945500,35955862,35951557,35949322,35951499,35964132,35952943,42628536,759667,759666,759665,759668,3004053,44816752,35955862,36203113,3032386,46257420,46257532,35961878,35986591,35948173,42742564,46257662,35957723,35948791,40756870,42627903,42742323)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43527945,35962802,35963763,35945500,35955862,35951557,35949322,35951499,35964132,35952943,42628536,759667,759666,759665,759668,3004053,44816752,35955862,36203113,3032386,46257420,46257532,35961878,35986591,35948173,42742564,46257662,35957723,35948791,40756870,42627903,42742323) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43527945,35962802,35963763,35945500,35955862,35951557,35949322,35951499,35964132,35952943,42628536,759667,759666,759665,759668,3004053,44816752,35955862,36203113,3032386,46257420,46257532,35961878,35986591,35948173,42742564,46257662,35957723,35948791,40756870,42627903,42742323)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4157333,4128888,443388,4311499,437677,4166126,4142875) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4157333,4128888,443388,4311499,437677,4166126,4142875)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4157333,4128888,443388,437677) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4157333,4128888,443388,437677)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254591,4248073,4242353,46270492,254583,4174275) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254591,4248073,4242353,46270492,254583,4174275)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254591,4248073,4242353,46270492,254583,4174275)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36769301) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36769301)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36769301) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36769301)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36769180) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36769180)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36769180) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36769180)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1635564) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1635564)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1635564) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1635564)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1635838) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1635838)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1635838) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1635838)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1635131) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1635131)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1635131) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1635131)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1634191) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1634191)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1634191) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1634191)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1633987) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1633987)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1633987) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1633987)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1635142) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1635142)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1635142) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1635142)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1635562) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1635562)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1635562) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1635562)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4110591) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4110591)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4110591) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4110591)) ) I ) C; @@ -1193,49 +1193,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1287.sql b/inst/sql/sql_server/1287.sql index 84b6010a..dc498740 100644 --- a/inst/sql/sql_server/1287.sql +++ b/inst/sql/sql_server/1287.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193518) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193518)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193518) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193518)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1288.sql b/inst/sql/sql_server/1288.sql index 84b6010a..dc498740 100644 --- a/inst/sql/sql_server/1288.sql +++ b/inst/sql/sql_server/1288.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193518) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193518)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193518) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193518)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1289.sql b/inst/sql/sql_server/1289.sql index 9c73e087..e10e35c0 100644 --- a/inst/sql/sql_server/1289.sql +++ b/inst/sql/sql_server/1289.sql @@ -7,749 +7,749 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4135199,3363351,2107924,2107949,2107837,4283095,4240486,4142641,4234989,4035152,2107740) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135199,3363351,2107924,2107949,2107837,4283095,4240486,4142641,4234989,4035152,2107740)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4135199,3363351,2107924,2107949,2107837,4240486,4142641,4234989) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135199,3363351,2107924,2107949,2107837,4240486,4142641,4234989)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4236706) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4236706)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4236706) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4236706)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4195136) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4195136)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4195136) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4195136)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4021530) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4021530)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4021530) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4021530)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4127886,4127887,4021529,2110177,4023403,42538159,42538160,4032622,2110209,2110211,43018211,4138738,4306298,4306070,4072416,4070209,45769914,45769913,45769911) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4127886,4127887,4021529,2110177,4023403,42538159,42538160,4032622,2110209,2110211,43018211,4138738,4306298,4306070,4072416,4070209,45769914,45769913,45769911)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2110177,4023403,42538159,42538160,43018211,4306298) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2110177,4023403,42538159,42538160,43018211,4306298)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4096783) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4096783)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4096783) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4096783)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 34 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4234536) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4234536)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4234536) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4234536)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 38 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4312749) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4312749)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4312749) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4312749)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 45 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 46 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4101626) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4101626)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4101626) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4101626)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 47 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 48 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4078547,43531648) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4078547,43531648)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43531648) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43531648)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 51 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2811735,2896830,2839189,4345349,4322818,4067461,4069129,4312613,40487106,46270641,4142436,2109316,4251035) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2811735,2896830,2839189,4345349,4322818,4067461,4069129,4312613,40487106,46270641,4142436,2109316,4251035)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2811735,2896830,2839189,4345349) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2811735,2896830,2839189,4345349)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4030150,4314001,4147687,4076862,4311405,4272324,4249893,4304358,4250892,4300528,4138127,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4030150,4314001,4147687,4076862,4311405,4272324,4249893,4304358,4250892,4300528,4138127,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4030150,4314001,4147687,4076862,46273729) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4030150,4314001,4147687,4076862,46273729)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 55 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180074) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180074)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180074) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180074)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 56 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049675,4244434,4236715,42872711,2211642,4052252,2107574,4263586,4294254,4022030,40757028,2733576,4305183,2733582,2733567,4243023,4051031,40493483,40489434,40756876,2107882,2107931,2733577,2733579) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049675,4244434,4236715,42872711,2211642,4052252,2107574,4263586,4294254,4022030,40757028,2733576,4305183,2733582,2733567,4243023,4051031,40493483,40489434,40756876,2107882,2107931,2733577,2733579)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4049675) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4049675)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,46273729) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,46273729)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 57 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872694) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872694)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872694) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872694)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 58 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872696) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872696)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872696) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872696)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 59 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4022030) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4022030)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4022030) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4022030)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 61 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049675,3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049675,3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 62 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4031312,4030825,4120657) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4031312,4030825,4120657)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4031312,4030825,4120657) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4031312,4030825,4120657)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 63 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2006434,2006432,4297155,4001562,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034,2102700,2102701,2102712,3177626,36676345,36676344,40480531,4127484,4302594,4231761,2102734,4301336,2106769,4301338,2106770) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2006434,2006432,4297155,4001562,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034,2102700,2102701,2102712,3177626,36676345,36676344,40480531,4127484,4302594,4231761,2102734,4301336,2106769,4301338,2106770)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2006434,2006432,4297155,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2006434,2006432,4297155,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 64 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4203442,4121242,2002549,2108974,40483096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4203442,4121242,2002549,2108974,40483096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4203442,4121242,2002549,2108974,40483096) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4203442,4121242,2002549,2108974,40483096)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 65 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4141456,2003225,4141110) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4141456,2003225,4141110)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4141456,2003225,4141110) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4141456,2003225,4141110)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 66 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4187533,725062,2108937) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4187533,725062,2108937)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4187533,725062,2108937) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4187533,725062,2108937)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 67 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108486,4120425,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421,4125465,2108482,4012004,4100937,2108485,2102736,4229920,4208330) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108486,4120425,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421,4125465,2108482,4012004,4100937,2108485,2102736,4229920,4208330)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108486,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108486,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 68 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000882) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000882)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000882) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000882)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 69 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917,2108020) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917,2108020)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4138127,4042673,4272324,4300528,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4138127,4042673,4272324,4300528,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 70 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4315036,4286744,43531416) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4315036,4286744,43531416)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4315036,4286744,43531416) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4315036,4286744,43531416)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 71 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4219032,2006227,2006228,4338257,4264289,2105446,2105448,2105450,2105449,2784251,2784250,4143795,2006242,2105451,4119910) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4219032,2006227,2006228,4338257,4264289,2105446,2105448,2105450,2105449,2784251,2784250,4143795,2006242,2105451,4119910)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2006227,2006228) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2006227,2006228)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 72 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000882,2001339,2001342,42742510) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000882,2001339,2001342,42742510)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000882,2001339,2001342,42742510) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000882,2001339,2001342,42742510)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 73 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2722219,4241198) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2722219,4241198)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2722219,4241198) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2722219,4241198)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 74 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2109616,4047234) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2109616,4047234)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2109616,4047234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2109616,4047234)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 75 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216,4059308,4242997,2109368,4033555,4240962,4134888) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216,4059308,4242997,2109368,4033555,4240962,4134888)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673,4272324,4300528,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673,4272324,4300528,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 76 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761)) ) I ) C UNION ALL SELECT 78 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4022807,4021108,4304536,2773682,2773695,2109617,2773685,2109574,4288997,4027426,4270496,4118715,4010266,2109723,2109724,2109715,2773934,2109722,2773938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4022807,4021108,4304536,2773682,2773695,2109617,2773685,2109574,4288997,4027426,4270496,4118715,4010266,2109723,2109724,2109715,2773934,2109722,2773938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4270496,2109723,2109724,2109715,2109722) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4270496,2109723,2109724,2109715,2109722)) ) I ) C; @@ -1352,49 +1352,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1290.sql b/inst/sql/sql_server/1290.sql index 9dd89e13..48e01274 100644 --- a/inst/sql/sql_server/1290.sql +++ b/inst/sql/sql_server/1290.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 86 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002250,2730049,2730053,42894733,42894737,2725615,2725619,2729915,2730103,2729917,2730105,2729916,2730104,2002063,2002084,2736486,2736490,2736494,42897039,42897078,42897085,2730884,2730887) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002250,2730049,2730053,42894733,42894737,2725615,2725619,2729915,2730103,2729917,2730105,2729916,2730104,2002063,2002084,2736486,2736490,2736494,42897039,42897078,42897085,2730884,2730887)) ) I ) C; @@ -148,49 +148,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1291.sql b/inst/sql/sql_server/1291.sql index 4cdd1b49..ce7c951e 100644 --- a/inst/sql/sql_server/1291.sql +++ b/inst/sql/sql_server/1291.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 85 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002187,2729943,2730416,2729923,2730209,2730169,2730456,2729963,2730436,2730189,2730476,2729949,2730422,2729929,2730215,2730175,2730462,2729969,2730442,2730195,2730668,2729952,2730425,2729932,2730218,2730178,2730465,2729972,2730445,2730198,2730671,2729946,2730419,2729926,2730212,2730172,2730459,2729966,2730439,2730192,2730665,2729942,2730415,2729922,2730208,2730168,2730455,2729962,2730435,2730188,2730475,2729948,2730421,2729928,2730214,2730174,2730461,2729968,2730441,2730194,2730667,2729951,2730424,2729931,2730217,2730177,2730464,2729971,2730444,2730197,2730670,2729945,2730418,2729925,2730211,2730171,2730458,2729965,2730438,2730191,2730664,2729954,2730427,2729934,2730220,2730180,2730467,2729974,2730447,2730200,2730673,2729953,2730426,2729933,2730219,2730179,2730466,2729973,2730446,2730199,2730672,2729941,2730414,2729921,2730207,2730167,2730454,2729961,2730434,2730187,2730474,2729947,2730420,2729927,2730213,2730173,2730460,2729967,2730440,2730193,2730666,2729950,2730423,2729930,2730216,2730176,2730463,2729970,2730443,2730196,2730669,2729944,2730417,2729924,2730210,2730170,2730457,2729964,2730437,2730190,2730663,2735223,2735420,2735221,2735227,2735222,2735228,2735225,2735422,2735224,2735421,2735226,2735423,2727323,2727307,2726917,2727339,2726933,2727329,2727313,2726923,2727345,2726939,2727320,2727304,2726914,2727336,2726930,2727326,2727310,2726920,2727342,2726936,2727333,2727317,2726927,2727349,2726943,2727322,2727306,2726916,2727338,2726932,2727328,2727312,2726922,2727344,2726938,2727319,2727303,2726913,2727335,2726929,2727325,2727309,2726919,2727341,2726935,2727331,2727315,2726925,2727347,2726941,2727332,2727316,2726926,2727348,2726942,2727321,2727305,2726915,2727337,2726931,2727327,2727311,2726921,2727343,2726937,2727318,2727302,2726912,2727334,2726928,2727324,2727308,2726918,2727340,2726934,2727330,2727314,2726924,2727346,2726940,2727618,2727617,2727620,2727619,2727621,2734546,2734552,2734544,2734550,2734545,2734551,2734548,2734554,2734547,2734553,2734549,2734555,2727352,2727836,2727384,2727368,2727400,2727358,2727842,2727390,2727374,2727406,2727849,2727833,2727381,2727365,2727397,2727355,2727839,2727387,2727371,2727403,2727362,2727846,2727394,2727378,2727410,2727351,2727835,2727383,2727367,2727399,2727357,2727841,2727389,2727373,2727405,2727848,2727832,2727380,2727364,2727396,2727354,2727838,2727386,2727370,2727402,2727360,2727844,2727392,2727376,2727408,2727361,2727845,2727393,2727377,2727409,2727350,2727834,2727382,2727366,2727398,2727356,2727840,2727388,2727372,2727404,2727847,2727831,2727379,2727363,2727395,2727353,2727837,2727385,2727369,2727401,2727359,2727843,2727391,2727375,2727407,2734060,2734066,2734058,2734064,2734059,2734065,2734062,2734068,2734061,2734067,2734063,2734069,2734295,2734301,2734293,2734299,2734294,2734300,2734297,2734303,2734296,2734302,2734298,2734304,2727436,2727432,2727444,2727440,2727448,2727435,2727431,2727443,2727439,2727447,2727438,2727434,2727446,2727442,2727450,2727437,2727433,2727445,2727441,2727449,2734084,2734090,2734082,2734088,2734083,2734089,2734086,2734092,2734085,2734091,2734087,2734093,2734319,2734325,2734317,2734323,2734318,2734324,2734321,2734327,2734320,2734326,2734322,2734328,2727635,2727633,2727639,2727637,2727641,2731688,2732163,2731668,2731955,2731915,2732203,2731708,2732183,2731935,2732412,2731687,2732162,2731667,2731954,2731914,2732202,2731707,2732182,2731934,2732411,2731686,2732161,2731666,2731953,2731913,2732201,2731706,2732181,2731933,2732410,2735929,2735935,2735927,2735933,2735928,2735934,2735931,2735937,2735930,2735936,2735932,2735938,2727658,2727657,2727660,2727659,2727661,2729777,2730019,2729766,2730008,2729986,2730229,2729788,2730030,2729997,2730240,2729776,2730018,2729765,2730007,2729985,2730228,2729787,2730029,2729996,2730239,2729775,2730017,2729764,2730006,2729984,2730227,2729786,2730028,2729995,2730238,2735953,2735959,2735951,2735957,2735952,2735958,2735955,2735961,2735954,2735960,2735956,2735962,2734594,2734789,2734592,2734787,2734593,2734788,2734596,2734791,2734595,2734790,2734597,2734792,2734831,2734837,2734829,2734835,2734830,2734836,2734833,2734839,2734832,2734838,2734834,2734840,2730531,2730763,2730522,2730754,2730736,2730781,2730727,2730772,2730745,2730977,2730535,2730767,2730526,2730758,2730740,2730785,2730731,2730776,2730749,2730981,2730530,2730762,2730521,2730753,2730735,2730780,2730726,2730771,2730744,2730976,2730536,2730768,2730527,2730759,2730741,2730786,2730732,2730777,2730750,2730982,2730537,2730769,2730528,2730760,2730742,2730787,2730733,2730778,2730751,2730983,2730533,2730765,2730524,2730756,2730738,2730783,2730729,2730774,2730747,2730979,2730532,2730764,2730523,2730755,2730737,2730782,2730728,2730773,2730746,2730978,2730534,2730766,2730525,2730757,2730739,2730784,2730730,2730775,2730748,2730980,2730529,2730761,2730520,2730752,2730734,2730779,2730538,2730770,2730743,2730788,2736186,2736192,2736184,2736190,2736185,2736191,2736188,2736194,2736187,2736193,2736189,2736195,43015480,43015495,43015477,43015492,43015486,43015501,43015483,43015498,43015489,43015504,43015481,43015496,43015478,43015493,43015487,43015502,43015484,43015499,43015490,43015505,43015482,43015497,43015479,43015494,43015488,43015503,43015485,43015500,43015491,43015506,2736443,2736449,2736441,2736447,2736442,2736448,2736445,2736451,2736444,2736450,2736446,2736452,2734343,2734540,2734341,2734538,2734342,2734539,2734536,2734542,2734344,2734541,2734537,2734543,2727648,2727647,2727650,2727649,2727651,2732922,2733166,2732911,2732966,2732944,2733188,2732933,2733177,2732955,2733199,2732921,2733165,2732910,2732965,2732943,2733187,2732932,2733176,2732954,2733198,2732920,2733164,2732909,2732964,2732942,2733186,2732931,2733175,2732953,2733197,2734570,2734576,2734568,2734574,2734569,2734575,2734572,2734578,2734571,2734577,2734573,2734579,43015420,43015435,43015417,43015432,43015426,43015441,43015423,43015438,43015429,43015444,43015421,43015436,43015418,43015433,43015427,43015442,43015424,43015439,43015430,43015445,43015422,43015437,43015419,43015434,43015428,43015443,43015425,43015440,43015431,43015446,2731225,2731250,2731036,2731245,2731235,2731260,2731230,2731255,2731240,2731265,2731226,2731251,2731037,2731246,2731236,2731261,2731231,2731256,2731241,2731266,2731227,2731252,2731038,2731247,2731237,2731262,2731232,2731257,2731242,2731267,2731224,2731249,2731035,2731244,2731234,2731259,2731229,2731254,2731239,2731264,2731223,2731248,2731034,2731243,2731233,2731258,2731228,2731253,2731238,2731263,2727609,2727607,2727613,2727611,2727615,2727610,2727608,2727614,2727612,2727616,2736210,2736216,2736208,2736214,2736209,2736215,2736212,2736218,2736211,2736217,2736213,2736219,2727057,2727039,2727093,2727075,2727738,2727063,2727045,2727726,2727081,2727744,2727054,2727036,2727090,2727072,2727735,2727060,2727042,2727096,2727078,2727741,2727067,2727049,2727730,2727085,2727748,2727056,2727038,2727092,2727074,2727737,2727062,2727044,2727098,2727080,2727743,2727053,2727035,2727089,2727071,2727734,2727059,2727041,2727095,2727077,2727740,2727065,2727047,2727728,2727083,2727746,2727066,2727048,2727729,2727084,2727747,2727055,2727037,2727091,2727073,2727736,2727061,2727043,2727097,2727079,2727742,2727052,2727034,2727088,2727070,2727733,2727058,2727040,2727094,2727076,2727739,2727064,2727046,2727727,2727082,2727745,2727463,2727461,2727467,2727465,2727469,2727464,2727462,2727468,2727466,2727470,2734807,2734813,2734805,2734811,2734806,2734812,2734809,2734815,2734808,2734814,2734810,2734816,2727772,2727756,2727804,2727788,2727820,2727778,2727762,2727810,2727794,2727826,2727769,2727753,2727801,2727785,2727817,2727775,2727759,2727807,2727791,2727823,2727782,2727766,2727814,2727798,2727830,2727771,2727755,2727803,2727787,2727819,2727777,2727761,2727809,2727793,2727825,2727768,2727752,2727800,2727784,2727816,2727774,2727758,2727806,2727790,2727822,2727780,2727764,2727812,2727796,2727828,2727781,2727765,2727813,2727797,2727829,2727770,2727754,2727802,2727786,2727818,2727776,2727760,2727808,2727792,2727824,2727767,2727751,2727799,2727783,2727815,2727773,2727757,2727805,2727789,2727821,2727779,2727763,2727811,2727795,2727827,2734048,2734054,2734046,2734052,2734047,2734053,2734050,2734056,2734049,2734055,2734051,2734057,2734283,2734289,2734094,2734287,2734282,2734288,2734285,2734291,2734284,2734290,2734286,2734292,2727418,2727414,2727426,2727422,2727430,2727416,2727412,2727424,2727420,2727428,2727415,2727411,2727423,2727419,2727427,2727417,2727413,2727425,2727421,2727429,2734072,2734078,2734070,2734076,2734071,2734077,2734074,2734080,2734073,2734079,2734075,2734081,2734307,2734313,2734305,2734311,2734306,2734312,2734309,2734315,2734308,2734314,2734310,2734316,2727625,2727623,2727629,2727627,2727631,2730928,2731214,2730721,2731194,2730968,2731443,2730948,2731423,2731174,2731463,2730927,2731213,2730720,2731193,2730967,2731442,2730947,2731422,2731173,2731462,2730926,2731212,2730719,2731192,2730966,2731441,2730946,2731421,2731172,2731461,2735727,2735733,2735725,2735731,2735726,2735732,2735729,2735735,2735728,2735734,2735730,2735926,2727653,2727652,2727655,2727654,2727656,2733410,2733465,2733210,2733454,2733432,2729744,2733421,2729733,2733443,2729755,2733220,2733464,2733209,2733453,2733431,2729743,2733420,2729732,2733442,2729754,2733219,2733463,2733208,2733452,2733430,2729742,2733419,2729731,2733441,2729753,2735941,2735947,2735939,2735945,2735940,2735946,2735943,2735949,2735942,2735948,2735944,2735950,2734582,2734588,2734580,2734586,2734581,2734587,2734584,2734590,2734583,2734589,2734585,2734591,2734819,2734825,2734817,2734823,2734818,2734824,2734821,2734827,2734820,2734826,2734822,2734828,2730254,2730486,2730245,2730477,2730272,2730504,2730263,2730495,2730281,2730513,2730258,2730490,2730249,2730481,2730276,2730508,2730267,2730499,2730285,2730517,2730253,2730485,2730244,2730289,2730271,2730503,2730262,2730494,2730280,2730512,2730259,2730491,2730250,2730482,2730277,2730509,2730268,2730500,2730286,2730518,2730260,2730492,2730251,2730483,2730278,2730510,2730269,2730501,2730287,2730519,2730256,2730488,2730247,2730479,2730274,2730506,2730265,2730497,2730283,2730515,2730255,2730487,2730246,2730478,2730273,2730505,2730264,2730496,2730282,2730514,2730257,2730489,2730248,2730480,2730275,2730507,2730266,2730498,2730284,2730516,2730252,2730484,2730243,2730288,2730270,2730502,2730261,2730493,2730279,2730511,2736174,2736180,2735987,2736178,2736173,2736179,2736176,2736182,2736175,2736181,2736177,2736183,43015450,43015465,43015447,43015462,43015456,43015471,43015453,43015468,43015459,43015474,43015451,43015466,43015448,43015463,43015457,43015472,43015454,43015469,43015460,43015475,43015452,43015467,43015449,43015464,43015458,43015473,43015455,43015470,43015461,43015476,2736431,2736437,2736429,2736435,2736430,2736436,2736433,2736439,2736432,2736438,2736434,2736440,2734331,2734337,2734329,2734335,2734330,2734336,2734333,2734339,2734332,2734338,2734334,2734340,2735965,2735971,2735963,2735969,2735964,2735970,2735967,2735973,2735966,2735972,2735968,2735974,2727643,2727642,2727645,2727644,2727646,2732434,2732678,2732423,2732667,2732456,2732700,2732445,2732689,2732467,2732711,2732433,2732677,2732422,2732666,2732455,2732699,2732444,2732688,2732466,2732710,2732432,2732676,2732421,2732665,2732454,2732698,2732443,2732687,2732465,2732709,2734558,2734564,2734556,2734562,2734557,2734563,2734560,2734566,2734559,2734565,2734561,2734567,43015390,43015405,43015387,43015402,43015396,43015411,43015393,43015408,43015399,43015414,43015391,43015406,43015388,43015403,43015397,43015412,43015394,43015409,43015400,43015415,43015392,43015407,43015389,43015404,43015398,43015413,43015395,43015410,43015401,43015416,2730991,2731016,2730986,2731011,2731001,2731026,2730996,2731021,2731006,2731031,2730992,2731017,2730987,2731012,2731002,2731027,2730997,2731022,2731007,2731032,2730993,2731018,2730988,2731013,2731003,2731028,2730998,2731023,2731008,2731033,2730990,2731015,2730985,2731010,2731000,2731025,2730995,2731020,2731005,2731030,2730989,2731014,2730984,2731009,2730999,2731024,2730994,2731019,2731004,2731029,2727474,2727472,2727604,2727602,2727606,2727473,2727471,2727603,2727601,2727605,2736198,2736204,2736196,2736202,2736197,2736203,2736200,2736206,2736199,2736205,2736201,2736207,2726967,2726949,2727003,2726985,2727021,2726973,2726955,2727009,2726991,2727027,2726964,2726946,2727000,2726982,2727018,2726970,2726952,2727006,2726988,2727024,2726977,2726959,2727013,2726995,2727031,2726966,2726948,2727002,2726984,2727020,2726972,2726954,2727008,2726990,2727026,2726963,2726945,2726999,2726981,2727017,2726969,2726951,2727005,2726987,2727023,2726975,2726957,2727011,2726993,2727029,2726976,2726958,2727012,2726994,2727030,2726965,2726947,2727001,2726983,2727019,2726971,2726953,2727007,2726989,2727025,2726962,2726944,2726998,2726980,2727016,2726968,2726950,2727004,2726986,2727022,2726974,2726956,2727010,2726992,2727028,2727454,2727452,2727458,2727456,2727460,2727453,2727451,2727457,2727455,2727459,2734795,2734801,2734793,2734799,2734794,2734800,2734797,2734803,2734796,2734802,2734798,2734804,2002191) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002187,2729943,2730416,2729923,2730209,2730169,2730456,2729963,2730436,2730189,2730476,2729949,2730422,2729929,2730215,2730175,2730462,2729969,2730442,2730195,2730668,2729952,2730425,2729932,2730218,2730178,2730465,2729972,2730445,2730198,2730671,2729946,2730419,2729926,2730212,2730172,2730459,2729966,2730439,2730192,2730665,2729942,2730415,2729922,2730208,2730168,2730455,2729962,2730435,2730188,2730475,2729948,2730421,2729928,2730214,2730174,2730461,2729968,2730441,2730194,2730667,2729951,2730424,2729931,2730217,2730177,2730464,2729971,2730444,2730197,2730670,2729945,2730418,2729925,2730211,2730171,2730458,2729965,2730438,2730191,2730664,2729954,2730427,2729934,2730220,2730180,2730467,2729974,2730447,2730200,2730673,2729953,2730426,2729933,2730219,2730179,2730466,2729973,2730446,2730199,2730672,2729941,2730414,2729921,2730207,2730167,2730454,2729961,2730434,2730187,2730474,2729947,2730420,2729927,2730213,2730173,2730460,2729967,2730440,2730193,2730666,2729950,2730423,2729930,2730216,2730176,2730463,2729970,2730443,2730196,2730669,2729944,2730417,2729924,2730210,2730170,2730457,2729964,2730437,2730190,2730663,2735223,2735420,2735221,2735227,2735222,2735228,2735225,2735422,2735224,2735421,2735226,2735423,2727323,2727307,2726917,2727339,2726933,2727329,2727313,2726923,2727345,2726939,2727320,2727304,2726914,2727336,2726930,2727326,2727310,2726920,2727342,2726936,2727333,2727317,2726927,2727349,2726943,2727322,2727306,2726916,2727338,2726932,2727328,2727312,2726922,2727344,2726938,2727319,2727303,2726913,2727335,2726929,2727325,2727309,2726919,2727341,2726935,2727331,2727315,2726925,2727347,2726941,2727332,2727316,2726926,2727348,2726942,2727321,2727305,2726915,2727337,2726931,2727327,2727311,2726921,2727343,2726937,2727318,2727302,2726912,2727334,2726928,2727324,2727308,2726918,2727340,2726934,2727330,2727314,2726924,2727346,2726940,2727618,2727617,2727620,2727619,2727621,2734546,2734552,2734544,2734550,2734545,2734551,2734548,2734554,2734547,2734553,2734549,2734555,2727352,2727836,2727384,2727368,2727400,2727358,2727842,2727390,2727374,2727406,2727849,2727833,2727381,2727365,2727397,2727355,2727839,2727387,2727371,2727403,2727362,2727846,2727394,2727378,2727410,2727351,2727835,2727383,2727367,2727399,2727357,2727841,2727389,2727373,2727405,2727848,2727832,2727380,2727364,2727396,2727354,2727838,2727386,2727370,2727402,2727360,2727844,2727392,2727376,2727408,2727361,2727845,2727393,2727377,2727409,2727350,2727834,2727382,2727366,2727398,2727356,2727840,2727388,2727372,2727404,2727847,2727831,2727379,2727363,2727395,2727353,2727837,2727385,2727369,2727401,2727359,2727843,2727391,2727375,2727407,2734060,2734066,2734058,2734064,2734059,2734065,2734062,2734068,2734061,2734067,2734063,2734069,2734295,2734301,2734293,2734299,2734294,2734300,2734297,2734303,2734296,2734302,2734298,2734304,2727436,2727432,2727444,2727440,2727448,2727435,2727431,2727443,2727439,2727447,2727438,2727434,2727446,2727442,2727450,2727437,2727433,2727445,2727441,2727449,2734084,2734090,2734082,2734088,2734083,2734089,2734086,2734092,2734085,2734091,2734087,2734093,2734319,2734325,2734317,2734323,2734318,2734324,2734321,2734327,2734320,2734326,2734322,2734328,2727635,2727633,2727639,2727637,2727641,2731688,2732163,2731668,2731955,2731915,2732203,2731708,2732183,2731935,2732412,2731687,2732162,2731667,2731954,2731914,2732202,2731707,2732182,2731934,2732411,2731686,2732161,2731666,2731953,2731913,2732201,2731706,2732181,2731933,2732410,2735929,2735935,2735927,2735933,2735928,2735934,2735931,2735937,2735930,2735936,2735932,2735938,2727658,2727657,2727660,2727659,2727661,2729777,2730019,2729766,2730008,2729986,2730229,2729788,2730030,2729997,2730240,2729776,2730018,2729765,2730007,2729985,2730228,2729787,2730029,2729996,2730239,2729775,2730017,2729764,2730006,2729984,2730227,2729786,2730028,2729995,2730238,2735953,2735959,2735951,2735957,2735952,2735958,2735955,2735961,2735954,2735960,2735956,2735962,2734594,2734789,2734592,2734787,2734593,2734788,2734596,2734791,2734595,2734790,2734597,2734792,2734831,2734837,2734829,2734835,2734830,2734836,2734833,2734839,2734832,2734838,2734834,2734840,2730531,2730763,2730522,2730754,2730736,2730781,2730727,2730772,2730745,2730977,2730535,2730767,2730526,2730758,2730740,2730785,2730731,2730776,2730749,2730981,2730530,2730762,2730521,2730753,2730735,2730780,2730726,2730771,2730744,2730976,2730536,2730768,2730527,2730759,2730741,2730786,2730732,2730777,2730750,2730982,2730537,2730769,2730528,2730760,2730742,2730787,2730733,2730778,2730751,2730983,2730533,2730765,2730524,2730756,2730738,2730783,2730729,2730774,2730747,2730979,2730532,2730764,2730523,2730755,2730737,2730782,2730728,2730773,2730746,2730978,2730534,2730766,2730525,2730757,2730739,2730784,2730730,2730775,2730748,2730980,2730529,2730761,2730520,2730752,2730734,2730779,2730538,2730770,2730743,2730788,2736186,2736192,2736184,2736190,2736185,2736191,2736188,2736194,2736187,2736193,2736189,2736195,43015480,43015495,43015477,43015492,43015486,43015501,43015483,43015498,43015489,43015504,43015481,43015496,43015478,43015493,43015487,43015502,43015484,43015499,43015490,43015505,43015482,43015497,43015479,43015494,43015488,43015503,43015485,43015500,43015491,43015506,2736443,2736449,2736441,2736447,2736442,2736448,2736445,2736451,2736444,2736450,2736446,2736452,2734343,2734540,2734341,2734538,2734342,2734539,2734536,2734542,2734344,2734541,2734537,2734543,2727648,2727647,2727650,2727649,2727651,2732922,2733166,2732911,2732966,2732944,2733188,2732933,2733177,2732955,2733199,2732921,2733165,2732910,2732965,2732943,2733187,2732932,2733176,2732954,2733198,2732920,2733164,2732909,2732964,2732942,2733186,2732931,2733175,2732953,2733197,2734570,2734576,2734568,2734574,2734569,2734575,2734572,2734578,2734571,2734577,2734573,2734579,43015420,43015435,43015417,43015432,43015426,43015441,43015423,43015438,43015429,43015444,43015421,43015436,43015418,43015433,43015427,43015442,43015424,43015439,43015430,43015445,43015422,43015437,43015419,43015434,43015428,43015443,43015425,43015440,43015431,43015446,2731225,2731250,2731036,2731245,2731235,2731260,2731230,2731255,2731240,2731265,2731226,2731251,2731037,2731246,2731236,2731261,2731231,2731256,2731241,2731266,2731227,2731252,2731038,2731247,2731237,2731262,2731232,2731257,2731242,2731267,2731224,2731249,2731035,2731244,2731234,2731259,2731229,2731254,2731239,2731264,2731223,2731248,2731034,2731243,2731233,2731258,2731228,2731253,2731238,2731263,2727609,2727607,2727613,2727611,2727615,2727610,2727608,2727614,2727612,2727616,2736210,2736216,2736208,2736214,2736209,2736215,2736212,2736218,2736211,2736217,2736213,2736219,2727057,2727039,2727093,2727075,2727738,2727063,2727045,2727726,2727081,2727744,2727054,2727036,2727090,2727072,2727735,2727060,2727042,2727096,2727078,2727741,2727067,2727049,2727730,2727085,2727748,2727056,2727038,2727092,2727074,2727737,2727062,2727044,2727098,2727080,2727743,2727053,2727035,2727089,2727071,2727734,2727059,2727041,2727095,2727077,2727740,2727065,2727047,2727728,2727083,2727746,2727066,2727048,2727729,2727084,2727747,2727055,2727037,2727091,2727073,2727736,2727061,2727043,2727097,2727079,2727742,2727052,2727034,2727088,2727070,2727733,2727058,2727040,2727094,2727076,2727739,2727064,2727046,2727727,2727082,2727745,2727463,2727461,2727467,2727465,2727469,2727464,2727462,2727468,2727466,2727470,2734807,2734813,2734805,2734811,2734806,2734812,2734809,2734815,2734808,2734814,2734810,2734816,2727772,2727756,2727804,2727788,2727820,2727778,2727762,2727810,2727794,2727826,2727769,2727753,2727801,2727785,2727817,2727775,2727759,2727807,2727791,2727823,2727782,2727766,2727814,2727798,2727830,2727771,2727755,2727803,2727787,2727819,2727777,2727761,2727809,2727793,2727825,2727768,2727752,2727800,2727784,2727816,2727774,2727758,2727806,2727790,2727822,2727780,2727764,2727812,2727796,2727828,2727781,2727765,2727813,2727797,2727829,2727770,2727754,2727802,2727786,2727818,2727776,2727760,2727808,2727792,2727824,2727767,2727751,2727799,2727783,2727815,2727773,2727757,2727805,2727789,2727821,2727779,2727763) or concept_id in (2727811,2727795,2727827,2734048,2734054,2734046,2734052,2734047,2734053,2734050,2734056,2734049,2734055,2734051,2734057,2734283,2734289,2734094,2734287,2734282,2734288,2734285,2734291,2734284,2734290,2734286,2734292,2727418,2727414,2727426,2727422,2727430,2727416,2727412,2727424,2727420,2727428,2727415,2727411,2727423,2727419,2727427,2727417,2727413,2727425,2727421,2727429,2734072,2734078,2734070,2734076,2734071,2734077,2734074,2734080,2734073,2734079,2734075,2734081,2734307,2734313,2734305,2734311,2734306,2734312,2734309,2734315,2734308,2734314,2734310,2734316,2727625,2727623,2727629,2727627,2727631,2730928,2731214,2730721,2731194,2730968,2731443,2730948,2731423,2731174,2731463,2730927,2731213,2730720,2731193,2730967,2731442,2730947,2731422,2731173,2731462,2730926,2731212,2730719,2731192,2730966,2731441,2730946,2731421,2731172,2731461,2735727,2735733,2735725,2735731,2735726,2735732,2735729,2735735,2735728,2735734,2735730,2735926,2727653,2727652,2727655,2727654,2727656,2733410,2733465,2733210,2733454,2733432,2729744,2733421,2729733,2733443,2729755,2733220,2733464,2733209,2733453,2733431,2729743,2733420,2729732,2733442,2729754,2733219,2733463,2733208,2733452,2733430,2729742,2733419,2729731,2733441,2729753,2735941,2735947,2735939,2735945,2735940,2735946,2735943,2735949,2735942,2735948,2735944,2735950,2734582,2734588,2734580,2734586,2734581,2734587,2734584,2734590,2734583,2734589,2734585,2734591,2734819,2734825,2734817,2734823,2734818,2734824,2734821,2734827,2734820,2734826,2734822,2734828,2730254,2730486,2730245,2730477,2730272,2730504,2730263,2730495,2730281,2730513,2730258,2730490,2730249,2730481,2730276,2730508,2730267,2730499,2730285,2730517,2730253,2730485,2730244,2730289,2730271,2730503,2730262,2730494,2730280,2730512,2730259,2730491,2730250,2730482,2730277,2730509,2730268,2730500,2730286,2730518,2730260,2730492,2730251,2730483,2730278,2730510,2730269,2730501,2730287,2730519,2730256,2730488,2730247,2730479,2730274,2730506,2730265,2730497,2730283,2730515,2730255,2730487,2730246,2730478,2730273,2730505,2730264,2730496,2730282,2730514,2730257,2730489,2730248,2730480,2730275,2730507,2730266,2730498,2730284,2730516,2730252,2730484,2730243,2730288,2730270,2730502,2730261,2730493,2730279,2730511,2736174,2736180,2735987,2736178,2736173,2736179,2736176,2736182,2736175,2736181,2736177,2736183,43015450,43015465,43015447,43015462,43015456,43015471,43015453,43015468,43015459,43015474,43015451,43015466,43015448,43015463,43015457,43015472,43015454,43015469,43015460,43015475,43015452,43015467,43015449,43015464,43015458,43015473,43015455,43015470,43015461,43015476,2736431,2736437,2736429,2736435,2736430,2736436,2736433,2736439,2736432,2736438,2736434,2736440,2734331,2734337,2734329,2734335,2734330,2734336,2734333,2734339,2734332,2734338,2734334,2734340,2735965,2735971,2735963,2735969,2735964,2735970,2735967,2735973,2735966,2735972,2735968,2735974,2727643,2727642,2727645,2727644,2727646,2732434,2732678,2732423,2732667,2732456,2732700,2732445,2732689,2732467,2732711,2732433,2732677,2732422,2732666,2732455,2732699,2732444,2732688,2732466,2732710,2732432,2732676,2732421,2732665,2732454,2732698,2732443,2732687,2732465,2732709,2734558,2734564,2734556,2734562,2734557,2734563,2734560,2734566,2734559,2734565,2734561,2734567,43015390,43015405,43015387,43015402,43015396,43015411,43015393,43015408,43015399,43015414,43015391,43015406,43015388,43015403,43015397,43015412,43015394,43015409,43015400,43015415,43015392,43015407,43015389,43015404,43015398,43015413,43015395,43015410,43015401,43015416,2730991,2731016,2730986,2731011,2731001,2731026,2730996,2731021,2731006,2731031,2730992,2731017,2730987,2731012,2731002,2731027,2730997,2731022,2731007,2731032,2730993,2731018,2730988,2731013,2731003,2731028,2730998,2731023,2731008,2731033,2730990,2731015,2730985,2731010,2731000,2731025,2730995,2731020,2731005,2731030,2730989,2731014,2730984,2731009,2730999,2731024,2730994,2731019,2731004,2731029,2727474,2727472,2727604,2727602,2727606,2727473,2727471,2727603,2727601,2727605,2736198,2736204,2736196,2736202,2736197,2736203,2736200,2736206,2736199,2736205,2736201,2736207,2726967,2726949,2727003,2726985,2727021,2726973,2726955,2727009,2726991,2727027,2726964,2726946,2727000,2726982,2727018,2726970,2726952,2727006,2726988,2727024,2726977,2726959,2727013,2726995,2727031,2726966,2726948,2727002,2726984,2727020,2726972,2726954,2727008,2726990,2727026,2726963,2726945,2726999,2726981,2727017,2726969,2726951,2727005,2726987,2727023,2726975,2726957,2727011,2726993,2727029,2726976,2726958,2727012,2726994,2727030,2726965,2726947,2727001,2726983,2727019,2726971,2726953,2727007,2726989,2727025,2726962,2726944,2726998,2726980,2727016,2726968,2726950,2727004,2726986,2727022,2726974,2726956,2727010,2726992,2727028,2727454,2727452,2727458,2727456,2727460,2727453,2727451,2727457,2727455,2727459,2734795,2734801,2734793,2734799,2734794,2734800,2734797,2734803,2734796,2734802,2734798,2734804,2002191)) ) I ) C; @@ -148,49 +148,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1292.sql b/inst/sql/sql_server/1292.sql index 590b269d..e3c790d2 100644 --- a/inst/sql/sql_server/1292.sql +++ b/inst/sql/sql_server/1292.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 84 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002027,2728555,2728556,2728557,2728410,2728412,2728546,2728548,2728540,2728542,2728561,2728562,2728563,2728567,2728568,2728569,2728552,2728554,2728407,2728409,2728543,2728545,2728413,2728539,2728558,2728559,2728560,2728564,2728565,2728566,2728549,2728551,2000061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002027,2728555,2728556,2728557,2728410,2728412,2728546,2728548,2728540,2728542,2728561,2728562,2728563,2728567,2728568,2728569,2728552,2728554,2728407,2728409,2728543,2728545,2728413,2728539,2728558,2728559,2728560,2728564,2728565,2728566,2728549,2728551,2000061)) ) I ) C; @@ -148,49 +148,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1293.sql b/inst/sql/sql_server/1293.sql index f0d47a03..d7e72004 100644 --- a/inst/sql/sql_server/1293.sql +++ b/inst/sql/sql_server/1293.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 83 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2742069,2742070,2742072,2742064,2742065,2742067,2742059,2742060,2742062,2744438,2744633,2744637,2744428,2744430,2744432,2744434,2744418,2744420,2744422,2744424,2001338,2001328,2001329,2001343,2001337,2001340,2001334,2001327,2744192,2744193,2744194,2744195,2744196,2744187,2744188,2744189,2744190,2744191,2744182,2744183,2744184,2744185,2744186,2001331,2001326,2001339,2001342,2001336) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2742069,2742070,2742072,2742064,2742065,2742067,2742059,2742060,2742062,2744438,2744633,2744637,2744428,2744430,2744432,2744434,2744418,2744420,2744422,2744424,2001338,2001328,2001329,2001343,2001337,2001340,2001334,2001327,2744192,2744193,2744194,2744195,2744196,2744187,2744188,2744189,2744190,2744191,2744182,2744183,2744184,2744185,2744186,2001331,2001326,2001339,2001342,2001336)) ) I ) C; @@ -148,49 +148,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1294.sql b/inst/sql/sql_server/1294.sql index 7cc24736..88c58bd1 100644 --- a/inst/sql/sql_server/1294.sql +++ b/inst/sql/sql_server/1294.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 82 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002489,2002487,2002485,2002486,2748708,2748729,2748718,2748739,2748713,2748728,2748734,2748723,2748744,2748710,2748731,2748948,2748720,2748741,2748958,2748715,2748736,2748953,2748725,2748943,2748963,2748712,2748733,2748950,2748722,2748743,2748960,2748717,2748738,2748955,2748727,2748945,2748965,2748711,2748732,2748949,2748721,2748742,2748959,2748716,2748737,2748954,2748726,2748944,2748964,2748709,2748730,2748947,2748719,2748740,2748957,2748714,2748735,2748952,2748724,2748942,2748962,2002462,2746751,2746753,2746757,2746786,2746788,2746790,2746792,2746794,2002470,2002468,2002482,2002466,2002467,2002502,2002491,2002490,2002488,2002483,2002471,2002469,2002463,2753144,2753145,2753146,2753147,2002464,2752710,2752711,2752708,2752709,2752706,2752707) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002489,2002487,2002485,2002486,2748708,2748729,2748718,2748739,2748713,2748728,2748734,2748723,2748744,2748710,2748731,2748948,2748720,2748741,2748958,2748715,2748736,2748953,2748725,2748943,2748963,2748712,2748733,2748950,2748722,2748743,2748960,2748717,2748738,2748955,2748727,2748945,2748965,2748711,2748732,2748949,2748721,2748742,2748959,2748716,2748737,2748954,2748726,2748944,2748964,2748709,2748730,2748947,2748719,2748740,2748957,2748714,2748735,2748952,2748724,2748942,2748962,2002462,2746751,2746753,2746757,2746786,2746788,2746790,2746792,2746794,2002470,2002468,2002482,2002466,2002467,2002502,2002491,2002490,2002488,2002483,2002471,2002469,2002463,2753144,2753145,2753146,2753147,2002464,2752710,2752711,2752708,2752709,2752706,2752707)) ) I ) C; @@ -148,49 +148,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1295.sql b/inst/sql/sql_server/1295.sql index dadb7c90..17925291 100644 --- a/inst/sql/sql_server/1295.sql +++ b/inst/sql/sql_server/1295.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003348,2750943,2750945,2750947,43017182,2003350,2003347,2003362,2003349,2753534,2753535,2003351) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003348,2750943,2750945,2750947,43017182,2003350,2003347,2003362,2003349,2753534,2753535,2003351)) ) I ) C; @@ -148,49 +148,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1296.sql b/inst/sql/sql_server/1296.sql index bf43c8a7..78d16d4b 100644 --- a/inst/sql/sql_server/1296.sql +++ b/inst/sql/sql_server/1296.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 80 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43016394,2747030,2747032,2747034,2747036,2747038,43016392,43016398,43016393,2000811,2000834,2000810,2000833,2000832,2000835,2002768,2002751,2002764,2002750,2002763,2002762,2002765,2002769,2002766,2002770,2000836,2753386,2753378,2753379,2753380,2753381,43017217,2753176,2753177,2753368,2753369,2753374,2753375,2753376,2753377,43017215,2753370,2753371,2753372,2753373,2753398,2753399,2753400,2753401,43017218,2753390,2753391,2753392,2753393,43017216) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43016394,2747030,2747032,2747034,2747036,2747038,43016392,43016398,43016393,2000811,2000834,2000810,2000833,2000832,2000835,2002768,2002751,2002764,2002750,2002763,2002762,2002765,2002769,2002766,2002770,2000836,2753386,2753378,2753379,2753380,2753381,43017217,2753176,2753177,2753368,2753369,2753374,2753375,2753376,2753377,43017215,2753370,2753371,2753372,2753373,2753398,2753399,2753400,2753401,43017218,2753390,2753391,2753392,2753393,43017216)) ) I ) C; @@ -148,49 +148,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1297.sql b/inst/sql/sql_server/1297.sql index b0c73733..1c4bab8b 100644 --- a/inst/sql/sql_server/1297.sql +++ b/inst/sql/sql_server/1297.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 79 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2773930,2773932,2773934,2003806,2003803,2003805,2780485,2780486,2776775,2776776,2776777,2776778,2780477,2780478,2780479,2780480,2776783,2776972,2776973,2776974) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2773930,2773932,2773934,2003806,2003803,2003805,2780485,2780486,2776775,2776776,2776777,2776778,2780477,2780478,2780479,2780480,2776783,2776972,2776973,2776974)) ) I ) C; @@ -148,49 +148,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1298.sql b/inst/sql/sql_server/1298.sql index 0e8190d6..97eb1b7e 100644 --- a/inst/sql/sql_server/1298.sql +++ b/inst/sql/sql_server/1298.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 80 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003623,2773711,2773713,2773715,2773717,2773719,2773691,2773693,2773695,2773697,2773699,2773701,2773703,2773705,2773707,2773709,2773681,2773683,2773685,2773687,2773689,2003611,2003610,2003608,2003622,2776763,2776764,2776765,2776766,2776755,2776756,2776759,2776760,2776761,2776762,2776753,2776754) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003623,2773711,2773713,2773715,2773717,2773719,2773691,2773693,2773695,2773697,2773699,2773701,2773703,2773705,2773707,2773709,2773681,2773683,2773685,2773687,2773689,2003611,2003610,2003608,2003622,2776763,2776764,2776765,2776766,2776755,2776756,2776759,2776760,2776761,2776762,2776753,2776754)) ) I ) C; @@ -148,49 +148,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1299.sql b/inst/sql/sql_server/1299.sql index 3d4628ff..4d471952 100644 --- a/inst/sql/sql_server/1299.sql +++ b/inst/sql/sql_server/1299.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 87 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2001513,2001510,2001512,2001511,2001516,2001509,2725357,2725389,2725351,2725383,2725369,2725402,2725363,2725396,42894403,42894409,2725355,2725387,2725349,2725381,2725367,2725400,2725361,2725394,42894401,42894407,2725373,2725406,2724724,2724756,2724718,2724750,2724736,2725215,2724730,2724763,42894245,42894251,2724742,2725221,2724725,2724757,2724719,2724751,2724737,2725216,2724731,2724764,42894246,42894252,2724720,2724752,2724714,2724746,2724732,2724765,2724726,2724759,42894241,42894247,2724738,2725217,2724722,2724754,2724716,2724748,2724734,2725213,2724728,2724761,42894243,42894249,2724740,2725219,2724721,2724753,2724715,2724747,2724733,2724766,2724727,2724760,42894242,42894248,2724739,2725218,2724723,2724755,2724717,2724749,2724735,2725214,2724729,2724762,42894244,42894250,2724741,2725220,2725295,2725327,2725289,2725321,2725307,2725340,2725301,2725334,42894234,42894240,2725293,2725325,2725287,2725319,2725305,2725338,2725299,2725332,42894232,42894238,2725311,2725344,2725233,2725265,2725227,2725259,2725245,2725278,2725239,2725272,42894258,42894228,2725230,2725262,2725224,2725256,2725242,2725275,2725236,2725269,42894255,42894225,2725248,2725281,2725229,2725261,2725223,2725255,2725241,2725274,2725235,2725268,42894254,42894224,2725247,2725280,2725231,2725263,2725225,2725257,2725243,2725276,2725237,2725270,42894256,42894226,2725249,2725282,2725086,2725107,2725085,2725106,2725087,2725108,2725050,2725071,2725044,2725065,2725043,2725064,2725045,2725066,2001508,2001515,2001518,2001517,2001514) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2001513,2001510,2001512,2001511,2001516,2001509,2725357,2725389,2725351,2725383,2725369,2725402,2725363,2725396,42894403,42894409,2725355,2725387,2725349,2725381,2725367,2725400,2725361,2725394,42894401,42894407,2725373,2725406,2724724,2724756,2724718,2724750,2724736,2725215,2724730,2724763,42894245,42894251,2724742,2725221,2724725,2724757,2724719,2724751,2724737,2725216,2724731,2724764,42894246,42894252,2724720,2724752,2724714,2724746,2724732,2724765,2724726,2724759,42894241,42894247,2724738,2725217,2724722,2724754,2724716,2724748,2724734,2725213,2724728,2724761,42894243,42894249,2724740,2725219,2724721,2724753,2724715,2724747,2724733,2724766,2724727,2724760,42894242,42894248,2724739,2725218,2724723,2724755,2724717,2724749,2724735,2725214,2724729,2724762,42894244,42894250,2724741,2725220,2725295,2725327,2725289,2725321,2725307,2725340,2725301,2725334,42894234,42894240,2725293,2725325,2725287,2725319,2725305,2725338,2725299,2725332,42894232,42894238,2725311,2725344,2725233,2725265,2725227,2725259,2725245,2725278,2725239,2725272,42894258,42894228,2725230,2725262,2725224,2725256,2725242,2725275,2725236,2725269,42894255,42894225,2725248,2725281,2725229,2725261,2725223,2725255,2725241,2725274,2725235,2725268,42894254,42894224,2725247,2725280,2725231,2725263,2725225,2725257,2725243,2725276,2725237,2725270,42894256,42894226,2725249,2725282,2725086,2725107,2725085,2725106,2725087,2725108,2725050,2725071,2725044,2725065,2725043,2725064,2725045,2725066,2001508,2001515,2001518,2001517,2001514)) ) I ) C; @@ -148,49 +148,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/13.sql b/inst/sql/sql_server/13.sql index 7823f8fc..42b60db0 100644 --- a/inst/sql/sql_server/13.sql +++ b/inst/sql/sql_server/13.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442752,4150129) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442752,4150129)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442752) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442752)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37312366,195464,258828,442315,442774,36713056,4298555,37118025,4083964) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37312366,195464,258828,442315,442774,36713056,4298555,37118025,4083964)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37312366,195464,258828,442315,442774,36713056,4298555,37118025,4083964) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37312366,195464,258828,442315,442774,36713056,4298555,37118025,4083964)) ) I ) C; @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1300.sql b/inst/sql/sql_server/1300.sql index 8259446e..0af6452b 100644 --- a/inst/sql/sql_server/1300.sql +++ b/inst/sql/sql_server/1300.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 88 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2001435,2001437,2001438,2001439,2001440,2001436,2725485,2725486,2725487,2725494,2725495,2725496,2725503,2725504,2725505,2725512,2725513,2725514,40756791,40756772,40756774,2001450,2001449,2001447,2001452,2001451,2001454,2001453,2001456,2001455,2001448,2001443,2001444,2001445,2001446,2001441,2001442,2001497,40756812,2726005,2726006,2726007,2726008,2726009,2726010,2726011,2726012,2726013,2726014,2726015,2726016,42894764,42894765,42894766,2726158,42894767,42894768,42894769,2726161,2726164,42894770,42894771,42894772,2726786,42898024,42898025,42898026,2726863,2726868,2726875,2726867,2726866,2726874,2726878,2726873,2726865,2726872,2726877,2726871,2726864,2726870,2726876,2726869,2726879,2726884,2726891,2726883,2726882,2726890,2726894,2726889,2726881,2726888,2726893,2726887,2726880,2726886,2726892,2726885,2726895,2726900,2726907,2726899,2726898,2726906,2726910,2726905,2726897,2726904,2726909,2726903,2726896,2726902,2726908,2726901,2726911,43015332,2726417,43015331,2726416,43015338,2726420,43015337,2726415,43015336,2726419,43015335,2726414,43015334,2726418,43015333,43015339,43015340,43015341,2727231,43015349,2727235,2727239,43015353,2727243,2727247,43015357,2727251,2727255,43015361,2727259,2727234,43015352,2727238,2727242,43015356,2727246,2727250,43015360,2727254,2727258,43015364,2727262,2727233,43015351,2727237,2727185,2727186,2727241,43015355,2727245,2727249,43015359,2727253,2727257,43015363,2727261,2727263,2727264,2727232,43015350,2727236,2727240,43015354,2727244,2727248,43015358,2727252,2727256,43015362,2727260,2001494,2726754,40756792,40756793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2001435,2001437,2001438,2001439,2001440,2001436,2725485,2725486,2725487,2725494,2725495,2725496,2725503,2725504,2725505,2725512,2725513,2725514,40756791,40756772,40756774,2001450,2001449,2001447,2001452,2001451,2001454,2001453,2001456,2001455,2001448,2001443,2001444,2001445,2001446,2001441,2001442,2001497,40756812,2726005,2726006,2726007,2726008,2726009,2726010,2726011,2726012,2726013,2726014,2726015,2726016,42894764,42894765,42894766,2726158,42894767,42894768,42894769,2726161,2726164,42894770,42894771,42894772,2726786,42898024,42898025,42898026,2726863,2726868,2726875,2726867,2726866,2726874,2726878,2726873,2726865,2726872,2726877,2726871,2726864,2726870,2726876,2726869,2726879,2726884,2726891,2726883,2726882,2726890,2726894,2726889,2726881,2726888,2726893,2726887,2726880,2726886,2726892,2726885,2726895,2726900,2726907,2726899,2726898,2726906,2726910,2726905,2726897,2726904,2726909,2726903,2726896,2726902,2726908,2726901,2726911,43015332,2726417,43015331,2726416,43015338,2726420,43015337,2726415,43015336,2726419,43015335,2726414,43015334,2726418,43015333,43015339,43015340,43015341,2727231,43015349,2727235,2727239,43015353,2727243,2727247,43015357,2727251,2727255,43015361,2727259,2727234,43015352,2727238,2727242,43015356,2727246,2727250,43015360,2727254,2727258,43015364,2727262,2727233,43015351,2727237,2727185,2727186,2727241,43015355,2727245,2727249,43015359,2727253,2727257,43015363,2727261,2727263,2727264,2727232,43015350,2727236,2727240,43015354,2727244,2727248,43015358,2727252,2727256,43015362,2727260,2001494,2726754,40756792,40756793)) ) I ) C; @@ -148,49 +148,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1301.sql b/inst/sql/sql_server/1301.sql index 6f2431e3..dfdc59f7 100644 --- a/inst/sql/sql_server/1301.sql +++ b/inst/sql/sql_server/1301.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81902,77340,4126297,195588) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81902,77340,4126297,195588)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81902,77340,4126297,195588) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81902,77340,4126297,195588)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4167328,4265485,198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4167328,4265485,198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4167328,4265485,198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4167328,4265485,198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1303.sql b/inst/sql/sql_server/1303.sql index 17d8bcd4..ef8c2b4d 100644 --- a/inst/sql/sql_server/1303.sql +++ b/inst/sql/sql_server/1303.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316139) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316139)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316139)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315295)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1304.sql b/inst/sql/sql_server/1304.sql index 8a13a8db..653239a8 100644 --- a/inst/sql/sql_server/1304.sql +++ b/inst/sql/sql_server/1304.sql @@ -7,760 +7,760 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4135199,3363351,2107924,2107949,2107837,4283095,4240486,4142641,4234989,4035152,2107740) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135199,3363351,2107924,2107949,2107837,4283095,4240486,4142641,4234989,4035152,2107740)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4135199,3363351,2107924,2107949,2107837,4240486,4142641,4234989) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135199,3363351,2107924,2107949,2107837,4240486,4142641,4234989)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4236706) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4236706)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4236706) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4236706)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4195136) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4195136)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4195136) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4195136)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4021530) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4021530)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4021530) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4021530)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4127886,4127887,4021529,2110177,4023403,42538159,42538160,4032622,2110209,2110211,43018211,4138738,4306298,4306070,4072416,4070209,45769914,45769913,45769911) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4127886,4127887,4021529,2110177,4023403,42538159,42538160,4032622,2110209,2110211,43018211,4138738,4306298,4306070,4072416,4070209,45769914,45769913,45769911)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2110177,4023403,42538159,42538160,43018211,4306298) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2110177,4023403,42538159,42538160,43018211,4306298)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4096783) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4096783)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4096783) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4096783)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 34 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4234536) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4234536)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4234536) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4234536)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 38 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4312749) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4312749)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4312749) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4312749)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 45 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 46 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4101626) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4101626)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4101626) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4101626)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 47 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 48 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4078547,43531648) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4078547,43531648)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43531648) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43531648)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 51 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2811735,2896830,2839189,4345349,4322818,4067461,4069129,4312613,40487106,46270641,4142436,2109316,4251035) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2811735,2896830,2839189,4345349,4322818,4067461,4069129,4312613,40487106,46270641,4142436,2109316,4251035)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2811735,2896830,2839189,4345349) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2811735,2896830,2839189,4345349)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4030150,4314001,4147687,4076862,4311405,4272324,4249893,4304358,4250892,4300528,4138127,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4030150,4314001,4147687,4076862,4311405,4272324,4249893,4304358,4250892,4300528,4138127,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4030150,4314001,4147687,4076862,46273729) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4030150,4314001,4147687,4076862,46273729)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 55 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180074) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180074)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180074) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180074)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 56 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049675,4244434,4236715,42872711,2211642,4052252,2107574,4263586,4294254,4022030,40757028,2733576,4305183,2733582,2733567,4243023,4051031,40493483,40489434,40756876,2107882,2107931,2733577,2733579) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049675,4244434,4236715,42872711,2211642,4052252,2107574,4263586,4294254,4022030,40757028,2733576,4305183,2733582,2733567,4243023,4051031,40493483,40489434,40756876,2107882,2107931,2733577,2733579)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4049675) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4049675)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,46273729) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,46273729)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 57 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872694) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872694)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872694) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872694)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 58 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872696) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872696)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872696) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872696)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 59 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4022030) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4022030)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4022030) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4022030)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 61 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049675,3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049675,3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 62 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4031312,4030825,4120657) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4031312,4030825,4120657)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4031312,4030825,4120657) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4031312,4030825,4120657)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 63 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2006434,2006432,4297155,4001562,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034,2102700,2102701,2102712,3177626,36676345,36676344,40480531,4127484,4302594,4231761,2102734,4301336,2106769,4301338,2106770) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2006434,2006432,4297155,4001562,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034,2102700,2102701,2102712,3177626,36676345,36676344,40480531,4127484,4302594,4231761,2102734,4301336,2106769,4301338,2106770)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2006434,2006432,4297155,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2006434,2006432,4297155,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 64 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4203442,4121242,2002549,2108974,40483096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4203442,4121242,2002549,2108974,40483096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4203442,4121242,2002549,2108974,40483096) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4203442,4121242,2002549,2108974,40483096)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 65 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4141456,2003225,4141110) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4141456,2003225,4141110)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4141456,2003225,4141110) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4141456,2003225,4141110)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 66 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4187533,725062,2108937) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4187533,725062,2108937)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4187533,725062,2108937) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4187533,725062,2108937)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 67 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108486,4120425,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421,4125465,2108482,4012004,4100937,2108485,2102736,4229920,4208330) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108486,4120425,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421,4125465,2108482,4012004,4100937,2108485,2102736,4229920,4208330)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108486,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108486,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 68 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000882) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000882)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000882) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000882)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 69 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917,2108020) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917,2108020)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4138127,4042673,4272324,4300528,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4138127,4042673,4272324,4300528,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 70 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4315036,4286744,43531416) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4315036,4286744,43531416)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4315036,4286744,43531416) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4315036,4286744,43531416)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 71 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4219032,2006227,2006228,4338257,4264289,2105446,2105448,2105450,2105449,2784251,2784250,4143795,2006242,2105451,4119910) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4219032,2006227,2006228,4338257,4264289,2105446,2105448,2105450,2105449,2784251,2784250,4143795,2006242,2105451,4119910)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2006227,2006228) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2006227,2006228)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 72 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000882,2001339,2001342,42742510) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000882,2001339,2001342,42742510)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000882,2001339,2001342,42742510) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000882,2001339,2001342,42742510)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 73 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2722219,4241198) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2722219,4241198)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2722219,4241198) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2722219,4241198)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 74 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2109616,4047234) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2109616,4047234)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2109616,4047234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2109616,4047234)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 75 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216,4059308,4242997,2109368,4033555,4240962,4134888) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216,4059308,4242997,2109368,4033555,4240962,4134888)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673,4272324,4300528,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673,4272324,4300528,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 76 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761)) ) I ) C UNION ALL SELECT 78 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4022807,4021108,4304536,2773682,2773695,2109617,2773685,2109574,4288997,4027426,4270496,4118715,4010266,2109723,2109724,2109715,2773934,2109722,2773938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4022807,4021108,4304536,2773682,2773695,2109617,2773685,2109574,4288997,4027426,4270496,4118715,4010266,2109723,2109724,2109715,2773934,2109722,2773938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4270496,2109723,2109724,2109715,2109722) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4270496,2109723,2109724,2109715,2109722)) ) I ) C UNION ALL SELECT 79 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C; @@ -1471,49 +1471,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1305.sql b/inst/sql/sql_server/1305.sql index 0a70bd39..e7eb675a 100644 --- a/inst/sql/sql_server/1305.sql +++ b/inst/sql/sql_server/1305.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 84 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002250,2730049,2730053,42894733,42894737,2725615,2725619,2729915,2730103,2729917,2730105,2729916,2730104,2002063,2002084,2736486,2736490,2736494,42897039,42897078,42897085,2730884,2730887) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002250,2730049,2730053,42894733,42894737,2725615,2725619,2729915,2730103,2729917,2730105,2729916,2730104,2002063,2002084,2736486,2736490,2736494,42897039,42897078,42897085,2730884,2730887)) ) I ) C; @@ -267,49 +267,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1306.sql b/inst/sql/sql_server/1306.sql index 8d602129..d876e405 100644 --- a/inst/sql/sql_server/1306.sql +++ b/inst/sql/sql_server/1306.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 85 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002187,2729943,2730416,2729923,2730209,2730169,2730456,2729963,2730436,2730189,2730476,2729949,2730422,2729929,2730215,2730175,2730462,2729969,2730442,2730195,2730668,2729952,2730425,2729932,2730218,2730178,2730465,2729972,2730445,2730198,2730671,2729946,2730419,2729926,2730212,2730172,2730459,2729966,2730439,2730192,2730665,2729942,2730415,2729922,2730208,2730168,2730455,2729962,2730435,2730188,2730475,2729948,2730421,2729928,2730214,2730174,2730461,2729968,2730441,2730194,2730667,2729951,2730424,2729931,2730217,2730177,2730464,2729971,2730444,2730197,2730670,2729945,2730418,2729925,2730211,2730171,2730458,2729965,2730438,2730191,2730664,2729954,2730427,2729934,2730220,2730180,2730467,2729974,2730447,2730200,2730673,2729953,2730426,2729933,2730219,2730179,2730466,2729973,2730446,2730199,2730672,2729941,2730414,2729921,2730207,2730167,2730454,2729961,2730434,2730187,2730474,2729947,2730420,2729927,2730213,2730173,2730460,2729967,2730440,2730193,2730666,2729950,2730423,2729930,2730216,2730176,2730463,2729970,2730443,2730196,2730669,2729944,2730417,2729924,2730210,2730170,2730457,2729964,2730437,2730190,2730663,2735223,2735420,2735221,2735227,2735222,2735228,2735225,2735422,2735224,2735421,2735226,2735423,2727323,2727307,2726917,2727339,2726933,2727329,2727313,2726923,2727345,2726939,2727320,2727304,2726914,2727336,2726930,2727326,2727310,2726920,2727342,2726936,2727333,2727317,2726927,2727349,2726943,2727322,2727306,2726916,2727338,2726932,2727328,2727312,2726922,2727344,2726938,2727319,2727303,2726913,2727335,2726929,2727325,2727309,2726919,2727341,2726935,2727331,2727315,2726925,2727347,2726941,2727332,2727316,2726926,2727348,2726942,2727321,2727305,2726915,2727337,2726931,2727327,2727311,2726921,2727343,2726937,2727318,2727302,2726912,2727334,2726928,2727324,2727308,2726918,2727340,2726934,2727330,2727314,2726924,2727346,2726940,2727618,2727617,2727620,2727619,2727621,2734546,2734552,2734544,2734550,2734545,2734551,2734548,2734554,2734547,2734553,2734549,2734555,2727352,2727836,2727384,2727368,2727400,2727358,2727842,2727390,2727374,2727406,2727849,2727833,2727381,2727365,2727397,2727355,2727839,2727387,2727371,2727403,2727362,2727846,2727394,2727378,2727410,2727351,2727835,2727383,2727367,2727399,2727357,2727841,2727389,2727373,2727405,2727848,2727832,2727380,2727364,2727396,2727354,2727838,2727386,2727370,2727402,2727360,2727844,2727392,2727376,2727408,2727361,2727845,2727393,2727377,2727409,2727350,2727834,2727382,2727366,2727398,2727356,2727840,2727388,2727372,2727404,2727847,2727831,2727379,2727363,2727395,2727353,2727837,2727385,2727369,2727401,2727359,2727843,2727391,2727375,2727407,2734060,2734066,2734058,2734064,2734059,2734065,2734062,2734068,2734061,2734067,2734063,2734069,2734295,2734301,2734293,2734299,2734294,2734300,2734297,2734303,2734296,2734302,2734298,2734304,2727436,2727432,2727444,2727440,2727448,2727435,2727431,2727443,2727439,2727447,2727438,2727434,2727446,2727442,2727450,2727437,2727433,2727445,2727441,2727449,2734084,2734090,2734082,2734088,2734083,2734089,2734086,2734092,2734085,2734091,2734087,2734093,2734319,2734325,2734317,2734323,2734318,2734324,2734321,2734327,2734320,2734326,2734322,2734328,2727635,2727633,2727639,2727637,2727641,2731688,2732163,2731668,2731955,2731915,2732203,2731708,2732183,2731935,2732412,2731687,2732162,2731667,2731954,2731914,2732202,2731707,2732182,2731934,2732411,2731686,2732161,2731666,2731953,2731913,2732201,2731706,2732181,2731933,2732410,2735929,2735935,2735927,2735933,2735928,2735934,2735931,2735937,2735930,2735936,2735932,2735938,2727658,2727657,2727660,2727659,2727661,2729777,2730019,2729766,2730008,2729986,2730229,2729788,2730030,2729997,2730240,2729776,2730018,2729765,2730007,2729985,2730228,2729787,2730029,2729996,2730239,2729775,2730017,2729764,2730006,2729984,2730227,2729786,2730028,2729995,2730238,2735953,2735959,2735951,2735957,2735952,2735958,2735955,2735961,2735954,2735960,2735956,2735962,2734594,2734789,2734592,2734787,2734593,2734788,2734596,2734791,2734595,2734790,2734597,2734792,2734831,2734837,2734829,2734835,2734830,2734836,2734833,2734839,2734832,2734838,2734834,2734840,2730531,2730763,2730522,2730754,2730736,2730781,2730727,2730772,2730745,2730977,2730535,2730767,2730526,2730758,2730740,2730785,2730731,2730776,2730749,2730981,2730530,2730762,2730521,2730753,2730735,2730780,2730726,2730771,2730744,2730976,2730536,2730768,2730527,2730759,2730741,2730786,2730732,2730777,2730750,2730982,2730537,2730769,2730528,2730760,2730742,2730787,2730733,2730778,2730751,2730983,2730533,2730765,2730524,2730756,2730738,2730783,2730729,2730774,2730747,2730979,2730532,2730764,2730523,2730755,2730737,2730782,2730728,2730773,2730746,2730978,2730534,2730766,2730525,2730757,2730739,2730784,2730730,2730775,2730748,2730980,2730529,2730761,2730520,2730752,2730734,2730779,2730538,2730770,2730743,2730788,2736186,2736192,2736184,2736190,2736185,2736191,2736188,2736194,2736187,2736193,2736189,2736195,43015480,43015495,43015477,43015492,43015486,43015501,43015483,43015498,43015489,43015504,43015481,43015496,43015478,43015493,43015487,43015502,43015484,43015499,43015490,43015505,43015482,43015497,43015479,43015494,43015488,43015503,43015485,43015500,43015491,43015506,2736443,2736449,2736441,2736447,2736442,2736448,2736445,2736451,2736444,2736450,2736446,2736452,2734343,2734540,2734341,2734538,2734342,2734539,2734536,2734542,2734344,2734541,2734537,2734543,2727648,2727647,2727650,2727649,2727651,2732922,2733166,2732911,2732966,2732944,2733188,2732933,2733177,2732955,2733199,2732921,2733165,2732910,2732965,2732943,2733187,2732932,2733176,2732954,2733198,2732920,2733164,2732909,2732964,2732942,2733186,2732931,2733175,2732953,2733197,2734570,2734576,2734568,2734574,2734569,2734575,2734572,2734578,2734571,2734577,2734573,2734579,43015420,43015435,43015417,43015432,43015426,43015441,43015423,43015438,43015429,43015444,43015421,43015436,43015418,43015433,43015427,43015442,43015424,43015439,43015430,43015445,43015422,43015437,43015419,43015434,43015428,43015443,43015425,43015440,43015431,43015446,2731225,2731250,2731036,2731245,2731235,2731260,2731230,2731255,2731240,2731265,2731226,2731251,2731037,2731246,2731236,2731261,2731231,2731256,2731241,2731266,2731227,2731252,2731038,2731247,2731237,2731262,2731232,2731257,2731242,2731267,2731224,2731249,2731035,2731244,2731234,2731259,2731229,2731254,2731239,2731264,2731223,2731248,2731034,2731243,2731233,2731258,2731228,2731253,2731238,2731263,2727609,2727607,2727613,2727611,2727615,2727610,2727608,2727614,2727612,2727616,2736210,2736216,2736208,2736214,2736209,2736215,2736212,2736218,2736211,2736217,2736213,2736219,2727057,2727039,2727093,2727075,2727738,2727063,2727045,2727726,2727081,2727744,2727054,2727036,2727090,2727072,2727735,2727060,2727042,2727096,2727078,2727741,2727067,2727049,2727730,2727085,2727748,2727056,2727038,2727092,2727074,2727737,2727062,2727044,2727098,2727080,2727743,2727053,2727035,2727089,2727071,2727734,2727059,2727041,2727095,2727077,2727740,2727065,2727047,2727728,2727083,2727746,2727066,2727048,2727729,2727084,2727747,2727055,2727037,2727091,2727073,2727736,2727061,2727043,2727097,2727079,2727742,2727052,2727034,2727088,2727070,2727733,2727058,2727040,2727094,2727076,2727739,2727064,2727046,2727727,2727082,2727745,2727463,2727461,2727467,2727465,2727469,2727464,2727462,2727468,2727466,2727470,2734807,2734813,2734805,2734811,2734806,2734812,2734809,2734815,2734808,2734814,2734810,2734816,2727772,2727756,2727804,2727788,2727820,2727778,2727762,2727810,2727794,2727826,2727769,2727753,2727801,2727785,2727817,2727775,2727759,2727807,2727791,2727823,2727782,2727766,2727814,2727798,2727830,2727771,2727755,2727803,2727787,2727819,2727777,2727761,2727809,2727793,2727825,2727768,2727752,2727800,2727784,2727816,2727774,2727758,2727806,2727790,2727822,2727780,2727764,2727812,2727796,2727828,2727781,2727765,2727813,2727797,2727829,2727770,2727754,2727802,2727786,2727818,2727776,2727760,2727808,2727792,2727824,2727767,2727751,2727799,2727783,2727815,2727773,2727757,2727805,2727789,2727821,2727779,2727763,2727811,2727795,2727827,2734048,2734054,2734046,2734052,2734047,2734053,2734050,2734056,2734049,2734055,2734051,2734057,2734283,2734289,2734094,2734287,2734282,2734288,2734285,2734291,2734284,2734290,2734286,2734292,2727418,2727414,2727426,2727422,2727430,2727416,2727412,2727424,2727420,2727428,2727415,2727411,2727423,2727419,2727427,2727417,2727413,2727425,2727421,2727429,2734072,2734078,2734070,2734076,2734071,2734077,2734074,2734080,2734073,2734079,2734075,2734081,2734307,2734313,2734305,2734311,2734306,2734312,2734309,2734315,2734308,2734314,2734310,2734316,2727625,2727623,2727629,2727627,2727631,2730928,2731214,2730721,2731194,2730968,2731443,2730948,2731423,2731174,2731463,2730927,2731213,2730720,2731193,2730967,2731442,2730947,2731422,2731173,2731462,2730926,2731212,2730719,2731192,2730966,2731441,2730946,2731421,2731172,2731461,2735727,2735733,2735725,2735731,2735726,2735732,2735729,2735735,2735728,2735734,2735730,2735926,2727653,2727652,2727655,2727654,2727656,2733410,2733465,2733210,2733454,2733432,2729744,2733421,2729733,2733443,2729755,2733220,2733464,2733209,2733453,2733431,2729743,2733420,2729732,2733442,2729754,2733219,2733463,2733208,2733452,2733430,2729742,2733419,2729731,2733441,2729753,2735941,2735947,2735939,2735945,2735940,2735946,2735943,2735949,2735942,2735948,2735944,2735950,2734582,2734588,2734580,2734586,2734581,2734587,2734584,2734590,2734583,2734589,2734585,2734591,2734819,2734825,2734817,2734823,2734818,2734824,2734821,2734827,2734820,2734826,2734822,2734828,2730254,2730486,2730245,2730477,2730272,2730504,2730263,2730495,2730281,2730513,2730258,2730490,2730249,2730481,2730276,2730508,2730267,2730499,2730285,2730517,2730253,2730485,2730244,2730289,2730271,2730503,2730262,2730494,2730280,2730512,2730259,2730491,2730250,2730482,2730277,2730509,2730268,2730500,2730286,2730518,2730260,2730492,2730251,2730483,2730278,2730510,2730269,2730501,2730287,2730519,2730256,2730488,2730247,2730479,2730274,2730506,2730265,2730497,2730283,2730515,2730255,2730487,2730246,2730478,2730273,2730505,2730264,2730496,2730282,2730514,2730257,2730489,2730248,2730480,2730275,2730507,2730266,2730498,2730284,2730516,2730252,2730484,2730243,2730288,2730270,2730502,2730261,2730493,2730279,2730511,2736174,2736180,2735987,2736178,2736173,2736179,2736176,2736182,2736175,2736181,2736177,2736183,43015450,43015465,43015447,43015462,43015456,43015471,43015453,43015468,43015459,43015474,43015451,43015466,43015448,43015463,43015457,43015472,43015454,43015469,43015460,43015475,43015452,43015467,43015449,43015464,43015458,43015473,43015455,43015470,43015461,43015476,2736431,2736437,2736429,2736435,2736430,2736436,2736433,2736439,2736432,2736438,2736434,2736440,2734331,2734337,2734329,2734335,2734330,2734336,2734333,2734339,2734332,2734338,2734334,2734340,2735965,2735971,2735963,2735969,2735964,2735970,2735967,2735973,2735966,2735972,2735968,2735974,2727643,2727642,2727645,2727644,2727646,2732434,2732678,2732423,2732667,2732456,2732700,2732445,2732689,2732467,2732711,2732433,2732677,2732422,2732666,2732455,2732699,2732444,2732688,2732466,2732710,2732432,2732676,2732421,2732665,2732454,2732698,2732443,2732687,2732465,2732709,2734558,2734564,2734556,2734562,2734557,2734563,2734560,2734566,2734559,2734565,2734561,2734567,43015390,43015405,43015387,43015402,43015396,43015411,43015393,43015408,43015399,43015414,43015391,43015406,43015388,43015403,43015397,43015412,43015394,43015409,43015400,43015415,43015392,43015407,43015389,43015404,43015398,43015413,43015395,43015410,43015401,43015416,2730991,2731016,2730986,2731011,2731001,2731026,2730996,2731021,2731006,2731031,2730992,2731017,2730987,2731012,2731002,2731027,2730997,2731022,2731007,2731032,2730993,2731018,2730988,2731013,2731003,2731028,2730998,2731023,2731008,2731033,2730990,2731015,2730985,2731010,2731000,2731025,2730995,2731020,2731005,2731030,2730989,2731014,2730984,2731009,2730999,2731024,2730994,2731019,2731004,2731029,2727474,2727472,2727604,2727602,2727606,2727473,2727471,2727603,2727601,2727605,2736198,2736204,2736196,2736202,2736197,2736203,2736200,2736206,2736199,2736205,2736201,2736207,2726967,2726949,2727003,2726985,2727021,2726973,2726955,2727009,2726991,2727027,2726964,2726946,2727000,2726982,2727018,2726970,2726952,2727006,2726988,2727024,2726977,2726959,2727013,2726995,2727031,2726966,2726948,2727002,2726984,2727020,2726972,2726954,2727008,2726990,2727026,2726963,2726945,2726999,2726981,2727017,2726969,2726951,2727005,2726987,2727023,2726975,2726957,2727011,2726993,2727029,2726976,2726958,2727012,2726994,2727030,2726965,2726947,2727001,2726983,2727019,2726971,2726953,2727007,2726989,2727025,2726962,2726944,2726998,2726980,2727016,2726968,2726950,2727004,2726986,2727022,2726974,2726956,2727010,2726992,2727028,2727454,2727452,2727458,2727456,2727460,2727453,2727451,2727457,2727455,2727459,2734795,2734801,2734793,2734799,2734794,2734800,2734797,2734803,2734796,2734802,2734798,2734804,2002191) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002187,2729943,2730416,2729923,2730209,2730169,2730456,2729963,2730436,2730189,2730476,2729949,2730422,2729929,2730215,2730175,2730462,2729969,2730442,2730195,2730668,2729952,2730425,2729932,2730218,2730178,2730465,2729972,2730445,2730198,2730671,2729946,2730419,2729926,2730212,2730172,2730459,2729966,2730439,2730192,2730665,2729942,2730415,2729922,2730208,2730168,2730455,2729962,2730435,2730188,2730475,2729948,2730421,2729928,2730214,2730174,2730461,2729968,2730441,2730194,2730667,2729951,2730424,2729931,2730217,2730177,2730464,2729971,2730444,2730197,2730670,2729945,2730418,2729925,2730211,2730171,2730458,2729965,2730438,2730191,2730664,2729954,2730427,2729934,2730220,2730180,2730467,2729974,2730447,2730200,2730673,2729953,2730426,2729933,2730219,2730179,2730466,2729973,2730446,2730199,2730672,2729941,2730414,2729921,2730207,2730167,2730454,2729961,2730434,2730187,2730474,2729947,2730420,2729927,2730213,2730173,2730460,2729967,2730440,2730193,2730666,2729950,2730423,2729930,2730216,2730176,2730463,2729970,2730443,2730196,2730669,2729944,2730417,2729924,2730210,2730170,2730457,2729964,2730437,2730190,2730663,2735223,2735420,2735221,2735227,2735222,2735228,2735225,2735422,2735224,2735421,2735226,2735423,2727323,2727307,2726917,2727339,2726933,2727329,2727313,2726923,2727345,2726939,2727320,2727304,2726914,2727336,2726930,2727326,2727310,2726920,2727342,2726936,2727333,2727317,2726927,2727349,2726943,2727322,2727306,2726916,2727338,2726932,2727328,2727312,2726922,2727344,2726938,2727319,2727303,2726913,2727335,2726929,2727325,2727309,2726919,2727341,2726935,2727331,2727315,2726925,2727347,2726941,2727332,2727316,2726926,2727348,2726942,2727321,2727305,2726915,2727337,2726931,2727327,2727311,2726921,2727343,2726937,2727318,2727302,2726912,2727334,2726928,2727324,2727308,2726918,2727340,2726934,2727330,2727314,2726924,2727346,2726940,2727618,2727617,2727620,2727619,2727621,2734546,2734552,2734544,2734550,2734545,2734551,2734548,2734554,2734547,2734553,2734549,2734555,2727352,2727836,2727384,2727368,2727400,2727358,2727842,2727390,2727374,2727406,2727849,2727833,2727381,2727365,2727397,2727355,2727839,2727387,2727371,2727403,2727362,2727846,2727394,2727378,2727410,2727351,2727835,2727383,2727367,2727399,2727357,2727841,2727389,2727373,2727405,2727848,2727832,2727380,2727364,2727396,2727354,2727838,2727386,2727370,2727402,2727360,2727844,2727392,2727376,2727408,2727361,2727845,2727393,2727377,2727409,2727350,2727834,2727382,2727366,2727398,2727356,2727840,2727388,2727372,2727404,2727847,2727831,2727379,2727363,2727395,2727353,2727837,2727385,2727369,2727401,2727359,2727843,2727391,2727375,2727407,2734060,2734066,2734058,2734064,2734059,2734065,2734062,2734068,2734061,2734067,2734063,2734069,2734295,2734301,2734293,2734299,2734294,2734300,2734297,2734303,2734296,2734302,2734298,2734304,2727436,2727432,2727444,2727440,2727448,2727435,2727431,2727443,2727439,2727447,2727438,2727434,2727446,2727442,2727450,2727437,2727433,2727445,2727441,2727449,2734084,2734090,2734082,2734088,2734083,2734089,2734086,2734092,2734085,2734091,2734087,2734093,2734319,2734325,2734317,2734323,2734318,2734324,2734321,2734327,2734320,2734326,2734322,2734328,2727635,2727633,2727639,2727637,2727641,2731688,2732163,2731668,2731955,2731915,2732203,2731708,2732183,2731935,2732412,2731687,2732162,2731667,2731954,2731914,2732202,2731707,2732182,2731934,2732411,2731686,2732161,2731666,2731953,2731913,2732201,2731706,2732181,2731933,2732410,2735929,2735935,2735927,2735933,2735928,2735934,2735931,2735937,2735930,2735936,2735932,2735938,2727658,2727657,2727660,2727659,2727661,2729777,2730019,2729766,2730008,2729986,2730229,2729788,2730030,2729997,2730240,2729776,2730018,2729765,2730007,2729985,2730228,2729787,2730029,2729996,2730239,2729775,2730017,2729764,2730006,2729984,2730227,2729786,2730028,2729995,2730238,2735953,2735959,2735951,2735957,2735952,2735958,2735955,2735961,2735954,2735960,2735956,2735962,2734594,2734789,2734592,2734787,2734593,2734788,2734596,2734791,2734595,2734790,2734597,2734792,2734831,2734837,2734829,2734835,2734830,2734836,2734833,2734839,2734832,2734838,2734834,2734840,2730531,2730763,2730522,2730754,2730736,2730781,2730727,2730772,2730745,2730977,2730535,2730767,2730526,2730758,2730740,2730785,2730731,2730776,2730749,2730981,2730530,2730762,2730521,2730753,2730735,2730780,2730726,2730771,2730744,2730976,2730536,2730768,2730527,2730759,2730741,2730786,2730732,2730777,2730750,2730982,2730537,2730769,2730528,2730760,2730742,2730787,2730733,2730778,2730751,2730983,2730533,2730765,2730524,2730756,2730738,2730783,2730729,2730774,2730747,2730979,2730532,2730764,2730523,2730755,2730737,2730782,2730728,2730773,2730746,2730978,2730534,2730766,2730525,2730757,2730739,2730784,2730730,2730775,2730748,2730980,2730529,2730761,2730520,2730752,2730734,2730779,2730538,2730770,2730743,2730788,2736186,2736192,2736184,2736190,2736185,2736191,2736188,2736194,2736187,2736193,2736189,2736195,43015480,43015495,43015477,43015492,43015486,43015501,43015483,43015498,43015489,43015504,43015481,43015496,43015478,43015493,43015487,43015502,43015484,43015499,43015490,43015505,43015482,43015497,43015479,43015494,43015488,43015503,43015485,43015500,43015491,43015506,2736443,2736449,2736441,2736447,2736442,2736448,2736445,2736451,2736444,2736450,2736446,2736452,2734343,2734540,2734341,2734538,2734342,2734539,2734536,2734542,2734344,2734541,2734537,2734543,2727648,2727647,2727650,2727649,2727651,2732922,2733166,2732911,2732966,2732944,2733188,2732933,2733177,2732955,2733199,2732921,2733165,2732910,2732965,2732943,2733187,2732932,2733176,2732954,2733198,2732920,2733164,2732909,2732964,2732942,2733186,2732931,2733175,2732953,2733197,2734570,2734576,2734568,2734574,2734569,2734575,2734572,2734578,2734571,2734577,2734573,2734579,43015420,43015435,43015417,43015432,43015426,43015441,43015423,43015438,43015429,43015444,43015421,43015436,43015418,43015433,43015427,43015442,43015424,43015439,43015430,43015445,43015422,43015437,43015419,43015434,43015428,43015443,43015425,43015440,43015431,43015446,2731225,2731250,2731036,2731245,2731235,2731260,2731230,2731255,2731240,2731265,2731226,2731251,2731037,2731246,2731236,2731261,2731231,2731256,2731241,2731266,2731227,2731252,2731038,2731247,2731237,2731262,2731232,2731257,2731242,2731267,2731224,2731249,2731035,2731244,2731234,2731259,2731229,2731254,2731239,2731264,2731223,2731248,2731034,2731243,2731233,2731258,2731228,2731253,2731238,2731263,2727609,2727607,2727613,2727611,2727615,2727610,2727608,2727614,2727612,2727616,2736210,2736216,2736208,2736214,2736209,2736215,2736212,2736218,2736211,2736217,2736213,2736219,2727057,2727039,2727093,2727075,2727738,2727063,2727045,2727726,2727081,2727744,2727054,2727036,2727090,2727072,2727735,2727060,2727042,2727096,2727078,2727741,2727067,2727049,2727730,2727085,2727748,2727056,2727038,2727092,2727074,2727737,2727062,2727044,2727098,2727080,2727743,2727053,2727035,2727089,2727071,2727734,2727059,2727041,2727095,2727077,2727740,2727065,2727047,2727728,2727083,2727746,2727066,2727048,2727729,2727084,2727747,2727055,2727037,2727091,2727073,2727736,2727061,2727043,2727097,2727079,2727742,2727052,2727034,2727088,2727070,2727733,2727058,2727040,2727094,2727076,2727739,2727064,2727046,2727727,2727082,2727745,2727463,2727461,2727467,2727465,2727469,2727464,2727462,2727468,2727466,2727470,2734807,2734813,2734805,2734811,2734806,2734812,2734809,2734815,2734808,2734814,2734810,2734816,2727772,2727756,2727804,2727788,2727820,2727778,2727762,2727810,2727794,2727826,2727769,2727753,2727801,2727785,2727817,2727775,2727759,2727807,2727791,2727823,2727782,2727766,2727814,2727798,2727830,2727771,2727755,2727803,2727787,2727819,2727777,2727761,2727809,2727793,2727825,2727768,2727752,2727800,2727784,2727816,2727774,2727758,2727806,2727790,2727822,2727780,2727764,2727812,2727796,2727828,2727781,2727765,2727813,2727797,2727829,2727770,2727754,2727802,2727786,2727818,2727776,2727760,2727808,2727792,2727824,2727767,2727751,2727799,2727783,2727815,2727773,2727757,2727805,2727789,2727821,2727779,2727763) or concept_id in (2727811,2727795,2727827,2734048,2734054,2734046,2734052,2734047,2734053,2734050,2734056,2734049,2734055,2734051,2734057,2734283,2734289,2734094,2734287,2734282,2734288,2734285,2734291,2734284,2734290,2734286,2734292,2727418,2727414,2727426,2727422,2727430,2727416,2727412,2727424,2727420,2727428,2727415,2727411,2727423,2727419,2727427,2727417,2727413,2727425,2727421,2727429,2734072,2734078,2734070,2734076,2734071,2734077,2734074,2734080,2734073,2734079,2734075,2734081,2734307,2734313,2734305,2734311,2734306,2734312,2734309,2734315,2734308,2734314,2734310,2734316,2727625,2727623,2727629,2727627,2727631,2730928,2731214,2730721,2731194,2730968,2731443,2730948,2731423,2731174,2731463,2730927,2731213,2730720,2731193,2730967,2731442,2730947,2731422,2731173,2731462,2730926,2731212,2730719,2731192,2730966,2731441,2730946,2731421,2731172,2731461,2735727,2735733,2735725,2735731,2735726,2735732,2735729,2735735,2735728,2735734,2735730,2735926,2727653,2727652,2727655,2727654,2727656,2733410,2733465,2733210,2733454,2733432,2729744,2733421,2729733,2733443,2729755,2733220,2733464,2733209,2733453,2733431,2729743,2733420,2729732,2733442,2729754,2733219,2733463,2733208,2733452,2733430,2729742,2733419,2729731,2733441,2729753,2735941,2735947,2735939,2735945,2735940,2735946,2735943,2735949,2735942,2735948,2735944,2735950,2734582,2734588,2734580,2734586,2734581,2734587,2734584,2734590,2734583,2734589,2734585,2734591,2734819,2734825,2734817,2734823,2734818,2734824,2734821,2734827,2734820,2734826,2734822,2734828,2730254,2730486,2730245,2730477,2730272,2730504,2730263,2730495,2730281,2730513,2730258,2730490,2730249,2730481,2730276,2730508,2730267,2730499,2730285,2730517,2730253,2730485,2730244,2730289,2730271,2730503,2730262,2730494,2730280,2730512,2730259,2730491,2730250,2730482,2730277,2730509,2730268,2730500,2730286,2730518,2730260,2730492,2730251,2730483,2730278,2730510,2730269,2730501,2730287,2730519,2730256,2730488,2730247,2730479,2730274,2730506,2730265,2730497,2730283,2730515,2730255,2730487,2730246,2730478,2730273,2730505,2730264,2730496,2730282,2730514,2730257,2730489,2730248,2730480,2730275,2730507,2730266,2730498,2730284,2730516,2730252,2730484,2730243,2730288,2730270,2730502,2730261,2730493,2730279,2730511,2736174,2736180,2735987,2736178,2736173,2736179,2736176,2736182,2736175,2736181,2736177,2736183,43015450,43015465,43015447,43015462,43015456,43015471,43015453,43015468,43015459,43015474,43015451,43015466,43015448,43015463,43015457,43015472,43015454,43015469,43015460,43015475,43015452,43015467,43015449,43015464,43015458,43015473,43015455,43015470,43015461,43015476,2736431,2736437,2736429,2736435,2736430,2736436,2736433,2736439,2736432,2736438,2736434,2736440,2734331,2734337,2734329,2734335,2734330,2734336,2734333,2734339,2734332,2734338,2734334,2734340,2735965,2735971,2735963,2735969,2735964,2735970,2735967,2735973,2735966,2735972,2735968,2735974,2727643,2727642,2727645,2727644,2727646,2732434,2732678,2732423,2732667,2732456,2732700,2732445,2732689,2732467,2732711,2732433,2732677,2732422,2732666,2732455,2732699,2732444,2732688,2732466,2732710,2732432,2732676,2732421,2732665,2732454,2732698,2732443,2732687,2732465,2732709,2734558,2734564,2734556,2734562,2734557,2734563,2734560,2734566,2734559,2734565,2734561,2734567,43015390,43015405,43015387,43015402,43015396,43015411,43015393,43015408,43015399,43015414,43015391,43015406,43015388,43015403,43015397,43015412,43015394,43015409,43015400,43015415,43015392,43015407,43015389,43015404,43015398,43015413,43015395,43015410,43015401,43015416,2730991,2731016,2730986,2731011,2731001,2731026,2730996,2731021,2731006,2731031,2730992,2731017,2730987,2731012,2731002,2731027,2730997,2731022,2731007,2731032,2730993,2731018,2730988,2731013,2731003,2731028,2730998,2731023,2731008,2731033,2730990,2731015,2730985,2731010,2731000,2731025,2730995,2731020,2731005,2731030,2730989,2731014,2730984,2731009,2730999,2731024,2730994,2731019,2731004,2731029,2727474,2727472,2727604,2727602,2727606,2727473,2727471,2727603,2727601,2727605,2736198,2736204,2736196,2736202,2736197,2736203,2736200,2736206,2736199,2736205,2736201,2736207,2726967,2726949,2727003,2726985,2727021,2726973,2726955,2727009,2726991,2727027,2726964,2726946,2727000,2726982,2727018,2726970,2726952,2727006,2726988,2727024,2726977,2726959,2727013,2726995,2727031,2726966,2726948,2727002,2726984,2727020,2726972,2726954,2727008,2726990,2727026,2726963,2726945,2726999,2726981,2727017,2726969,2726951,2727005,2726987,2727023,2726975,2726957,2727011,2726993,2727029,2726976,2726958,2727012,2726994,2727030,2726965,2726947,2727001,2726983,2727019,2726971,2726953,2727007,2726989,2727025,2726962,2726944,2726998,2726980,2727016,2726968,2726950,2727004,2726986,2727022,2726974,2726956,2727010,2726992,2727028,2727454,2727452,2727458,2727456,2727460,2727453,2727451,2727457,2727455,2727459,2734795,2734801,2734793,2734799,2734794,2734800,2734797,2734803,2734796,2734802,2734798,2734804,2002191)) ) I ) C; @@ -267,49 +267,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1307.sql b/inst/sql/sql_server/1307.sql index c5361202..14019fb0 100644 --- a/inst/sql/sql_server/1307.sql +++ b/inst/sql/sql_server/1307.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 86 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002027,2728555,2728556,2728557,2728410,2728412,2728546,2728548,2728540,2728542,2728561,2728562,2728563,2728567,2728568,2728569,2728552,2728554,2728407,2728409,2728543,2728545,2728413,2728539,2728558,2728559,2728560,2728564,2728565,2728566,2728549,2728551,2000061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002027,2728555,2728556,2728557,2728410,2728412,2728546,2728548,2728540,2728542,2728561,2728562,2728563,2728567,2728568,2728569,2728552,2728554,2728407,2728409,2728543,2728545,2728413,2728539,2728558,2728559,2728560,2728564,2728565,2728566,2728549,2728551,2000061)) ) I ) C; @@ -267,49 +267,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1308.sql b/inst/sql/sql_server/1308.sql index f29d3492..c608cff4 100644 --- a/inst/sql/sql_server/1308.sql +++ b/inst/sql/sql_server/1308.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 86 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2742069,2742070,2742072,2742064,2742065,2742067,2742059,2742060,2742062,2744438,2744633,2744637,2744428,2744430,2744432,2744434,2744418,2744420,2744422,2744424,2001338,2001328,2001329,2001343,2001337,2001340,2001334,2001327,2744192,2744193,2744194,2744195,2744196,2744187,2744188,2744189,2744190,2744191,2744182,2744183,2744184,2744185,2744186,2001331,2001326,2001339,2001342,2001336) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2742069,2742070,2742072,2742064,2742065,2742067,2742059,2742060,2742062,2744438,2744633,2744637,2744428,2744430,2744432,2744434,2744418,2744420,2744422,2744424,2001338,2001328,2001329,2001343,2001337,2001340,2001334,2001327,2744192,2744193,2744194,2744195,2744196,2744187,2744188,2744189,2744190,2744191,2744182,2744183,2744184,2744185,2744186,2001331,2001326,2001339,2001342,2001336)) ) I ) C; @@ -267,49 +267,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1309.sql b/inst/sql/sql_server/1309.sql index abd09091..2dbd696e 100644 --- a/inst/sql/sql_server/1309.sql +++ b/inst/sql/sql_server/1309.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 88 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002489,2002487,2002485,2002486,2748708,2748729,2748718,2748739,2748713,2748728,2748734,2748723,2748744,2748710,2748731,2748948,2748720,2748741,2748958,2748715,2748736,2748953,2748725,2748943,2748963,2748712,2748733,2748950,2748722,2748743,2748960,2748717,2748738,2748955,2748727,2748945,2748965,2748711,2748732,2748949,2748721,2748742,2748959,2748716,2748737,2748954,2748726,2748944,2748964,2748709,2748730,2748947,2748719,2748740,2748957,2748714,2748735,2748952,2748724,2748942,2748962,2002462,2746751,2746753,2746757,2746786,2746788,2746790,2746792,2746794,2002470,2002468,2002482,2002466,2002467,2002502,2002491,2002490,2002488,2002483,2002471,2002469,2002463,2753144,2753145,2753146,2753147,2002464,2752710,2752711,2752708,2752709,2752706,2752707) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002489,2002487,2002485,2002486,2748708,2748729,2748718,2748739,2748713,2748728,2748734,2748723,2748744,2748710,2748731,2748948,2748720,2748741,2748958,2748715,2748736,2748953,2748725,2748943,2748963,2748712,2748733,2748950,2748722,2748743,2748960,2748717,2748738,2748955,2748727,2748945,2748965,2748711,2748732,2748949,2748721,2748742,2748959,2748716,2748737,2748954,2748726,2748944,2748964,2748709,2748730,2748947,2748719,2748740,2748957,2748714,2748735,2748952,2748724,2748942,2748962,2002462,2746751,2746753,2746757,2746786,2746788,2746790,2746792,2746794,2002470,2002468,2002482,2002466,2002467,2002502,2002491,2002490,2002488,2002483,2002471,2002469,2002463,2753144,2753145,2753146,2753147,2002464,2752710,2752711,2752708,2752709,2752706,2752707)) ) I ) C; @@ -267,49 +267,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1310.sql b/inst/sql/sql_server/1310.sql index 5c3cbe7b..da843374 100644 --- a/inst/sql/sql_server/1310.sql +++ b/inst/sql/sql_server/1310.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 84 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003348,2750943,2750945,2750947,43017182,2003350,2003347,2003362,2003349,2753534,2753535,2003351) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003348,2750943,2750945,2750947,43017182,2003350,2003347,2003362,2003349,2753534,2753535,2003351)) ) I ) C; @@ -267,49 +267,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1311.sql b/inst/sql/sql_server/1311.sql index 49a596a3..21db5edf 100644 --- a/inst/sql/sql_server/1311.sql +++ b/inst/sql/sql_server/1311.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 83 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43016394,2747030,2747032,2747034,2747036,2747038,43016392,43016398,43016393,2000811,2000834,2000810,2000833,2000832,2000835,2002768,2002751,2002764,2002750,2002763,2002762,2002765,2002769,2002766,2002770,2000836,2753386,2753378,2753379,2753380,2753381,43017217,2753176,2753177,2753368,2753369,2753374,2753375,2753376,2753377,43017215,2753370,2753371,2753372,2753373,2753398,2753399,2753400,2753401,43017218,2753390,2753391,2753392,2753393,43017216) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43016394,2747030,2747032,2747034,2747036,2747038,43016392,43016398,43016393,2000811,2000834,2000810,2000833,2000832,2000835,2002768,2002751,2002764,2002750,2002763,2002762,2002765,2002769,2002766,2002770,2000836,2753386,2753378,2753379,2753380,2753381,43017217,2753176,2753177,2753368,2753369,2753374,2753375,2753376,2753377,43017215,2753370,2753371,2753372,2753373,2753398,2753399,2753400,2753401,43017218,2753390,2753391,2753392,2753393,43017216)) ) I ) C; @@ -267,49 +267,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1312.sql b/inst/sql/sql_server/1312.sql index 668ab7af..95858f11 100644 --- a/inst/sql/sql_server/1312.sql +++ b/inst/sql/sql_server/1312.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 85 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2773930,2773932,2773934,2003806,2003803,2003805,2780485,2780486,2776775,2776776,2776777,2776778,2780477,2780478,2780479,2780480,2776783,2776972,2776973,2776974) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2773930,2773932,2773934,2003806,2003803,2003805,2780485,2780486,2776775,2776776,2776777,2776778,2780477,2780478,2780479,2780480,2776783,2776972,2776973,2776974)) ) I ) C; @@ -267,49 +267,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1313.sql b/inst/sql/sql_server/1313.sql index 640aafa7..57a237e9 100644 --- a/inst/sql/sql_server/1313.sql +++ b/inst/sql/sql_server/1313.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 84 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003623,2773711,2773713,2773715,2773717,2773719,2773691,2773693,2773695,2773697,2773699,2773701,2773703,2773705,2773707,2773709,2773681,2773683,2773685,2773687,2773689,2003611,2003610,2003608,2003622,2776763,2776764,2776765,2776766,2776755,2776756,2776759,2776760,2776761,2776762,2776753,2776754) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003623,2773711,2773713,2773715,2773717,2773719,2773691,2773693,2773695,2773697,2773699,2773701,2773703,2773705,2773707,2773709,2773681,2773683,2773685,2773687,2773689,2003611,2003610,2003608,2003622,2776763,2776764,2776765,2776766,2776755,2776756,2776759,2776760,2776761,2776762,2776753,2776754)) ) I ) C; @@ -267,49 +267,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1314.sql b/inst/sql/sql_server/1314.sql index 37ae00bb..24794227 100644 --- a/inst/sql/sql_server/1314.sql +++ b/inst/sql/sql_server/1314.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 82 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2001513,2001510,2001512,2001511,2001516,2001509,2725357,2725389,2725351,2725383,2725369,2725402,2725363,2725396,42894403,42894409,2725355,2725387,2725349,2725381,2725367,2725400,2725361,2725394,42894401,42894407,2725373,2725406,2724724,2724756,2724718,2724750,2724736,2725215,2724730,2724763,42894245,42894251,2724742,2725221,2724725,2724757,2724719,2724751,2724737,2725216,2724731,2724764,42894246,42894252,2724720,2724752,2724714,2724746,2724732,2724765,2724726,2724759,42894241,42894247,2724738,2725217,2724722,2724754,2724716,2724748,2724734,2725213,2724728,2724761,42894243,42894249,2724740,2725219,2724721,2724753,2724715,2724747,2724733,2724766,2724727,2724760,42894242,42894248,2724739,2725218,2724723,2724755,2724717,2724749,2724735,2725214,2724729,2724762,42894244,42894250,2724741,2725220,2725295,2725327,2725289,2725321,2725307,2725340,2725301,2725334,42894234,42894240,2725293,2725325,2725287,2725319,2725305,2725338,2725299,2725332,42894232,42894238,2725311,2725344,2725233,2725265,2725227,2725259,2725245,2725278,2725239,2725272,42894258,42894228,2725230,2725262,2725224,2725256,2725242,2725275,2725236,2725269,42894255,42894225,2725248,2725281,2725229,2725261,2725223,2725255,2725241,2725274,2725235,2725268,42894254,42894224,2725247,2725280,2725231,2725263,2725225,2725257,2725243,2725276,2725237,2725270,42894256,42894226,2725249,2725282,2725086,2725107,2725085,2725106,2725087,2725108,2725050,2725071,2725044,2725065,2725043,2725064,2725045,2725066,2001508,2001515,2001518,2001517,2001514) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2001513,2001510,2001512,2001511,2001516,2001509,2725357,2725389,2725351,2725383,2725369,2725402,2725363,2725396,42894403,42894409,2725355,2725387,2725349,2725381,2725367,2725400,2725361,2725394,42894401,42894407,2725373,2725406,2724724,2724756,2724718,2724750,2724736,2725215,2724730,2724763,42894245,42894251,2724742,2725221,2724725,2724757,2724719,2724751,2724737,2725216,2724731,2724764,42894246,42894252,2724720,2724752,2724714,2724746,2724732,2724765,2724726,2724759,42894241,42894247,2724738,2725217,2724722,2724754,2724716,2724748,2724734,2725213,2724728,2724761,42894243,42894249,2724740,2725219,2724721,2724753,2724715,2724747,2724733,2724766,2724727,2724760,42894242,42894248,2724739,2725218,2724723,2724755,2724717,2724749,2724735,2725214,2724729,2724762,42894244,42894250,2724741,2725220,2725295,2725327,2725289,2725321,2725307,2725340,2725301,2725334,42894234,42894240,2725293,2725325,2725287,2725319,2725305,2725338,2725299,2725332,42894232,42894238,2725311,2725344,2725233,2725265,2725227,2725259,2725245,2725278,2725239,2725272,42894258,42894228,2725230,2725262,2725224,2725256,2725242,2725275,2725236,2725269,42894255,42894225,2725248,2725281,2725229,2725261,2725223,2725255,2725241,2725274,2725235,2725268,42894254,42894224,2725247,2725280,2725231,2725263,2725225,2725257,2725243,2725276,2725237,2725270,42894256,42894226,2725249,2725282,2725086,2725107,2725085,2725106,2725087,2725108,2725050,2725071,2725044,2725065,2725043,2725064,2725045,2725066,2001508,2001515,2001518,2001517,2001514)) ) I ) C; @@ -267,49 +267,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1315.sql b/inst/sql/sql_server/1315.sql index e8126abf..30decf9c 100644 --- a/inst/sql/sql_server/1315.sql +++ b/inst/sql/sql_server/1315.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 83 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2001435,2001437,2001438,2001439,2001440,2001436,2725485,2725486,2725487,2725494,2725495,2725496,2725503,2725504,2725505,2725512,2725513,2725514,40756791,40756772,40756774,2001450,2001449,2001447,2001452,2001451,2001454,2001453,2001456,2001455,2001448,2001443,2001444,2001445,2001446,2001441,2001442,2001497,40756812,2726005,2726006,2726007,2726008,2726009,2726010,2726011,2726012,2726013,2726014,2726015,2726016,42894764,42894765,42894766,2726158,42894767,42894768,42894769,2726161,2726164,42894770,42894771,42894772,2726786,42898024,42898025,42898026,2726863,2726868,2726875,2726867,2726866,2726874,2726878,2726873,2726865,2726872,2726877,2726871,2726864,2726870,2726876,2726869,2726879,2726884,2726891,2726883,2726882,2726890,2726894,2726889,2726881,2726888,2726893,2726887,2726880,2726886,2726892,2726885,2726895,2726900,2726907,2726899,2726898,2726906,2726910,2726905,2726897,2726904,2726909,2726903,2726896,2726902,2726908,2726901,2726911,43015332,2726417,43015331,2726416,43015338,2726420,43015337,2726415,43015336,2726419,43015335,2726414,43015334,2726418,43015333,43015339,43015340,43015341,2727231,43015349,2727235,2727239,43015353,2727243,2727247,43015357,2727251,2727255,43015361,2727259,2727234,43015352,2727238,2727242,43015356,2727246,2727250,43015360,2727254,2727258,43015364,2727262,2727233,43015351,2727237,2727185,2727186,2727241,43015355,2727245,2727249,43015359,2727253,2727257,43015363,2727261,2727263,2727264,2727232,43015350,2727236,2727240,43015354,2727244,2727248,43015358,2727252,2727256,43015362,2727260,2001494,2726754,40756792,40756793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2001435,2001437,2001438,2001439,2001440,2001436,2725485,2725486,2725487,2725494,2725495,2725496,2725503,2725504,2725505,2725512,2725513,2725514,40756791,40756772,40756774,2001450,2001449,2001447,2001452,2001451,2001454,2001453,2001456,2001455,2001448,2001443,2001444,2001445,2001446,2001441,2001442,2001497,40756812,2726005,2726006,2726007,2726008,2726009,2726010,2726011,2726012,2726013,2726014,2726015,2726016,42894764,42894765,42894766,2726158,42894767,42894768,42894769,2726161,2726164,42894770,42894771,42894772,2726786,42898024,42898025,42898026,2726863,2726868,2726875,2726867,2726866,2726874,2726878,2726873,2726865,2726872,2726877,2726871,2726864,2726870,2726876,2726869,2726879,2726884,2726891,2726883,2726882,2726890,2726894,2726889,2726881,2726888,2726893,2726887,2726880,2726886,2726892,2726885,2726895,2726900,2726907,2726899,2726898,2726906,2726910,2726905,2726897,2726904,2726909,2726903,2726896,2726902,2726908,2726901,2726911,43015332,2726417,43015331,2726416,43015338,2726420,43015337,2726415,43015336,2726419,43015335,2726414,43015334,2726418,43015333,43015339,43015340,43015341,2727231,43015349,2727235,2727239,43015353,2727243,2727247,43015357,2727251,2727255,43015361,2727259,2727234,43015352,2727238,2727242,43015356,2727246,2727250,43015360,2727254,2727258,43015364,2727262,2727233,43015351,2727237,2727185,2727186,2727241,43015355,2727245,2727249,43015359,2727253,2727257,43015363,2727261,2727263,2727264,2727232,43015350,2727236,2727240,43015354,2727244,2727248,43015358,2727252,2727256,43015362,2727260,2001494,2726754,40756792,40756793)) ) I ) C; @@ -267,49 +267,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/1316.sql b/inst/sql/sql_server/1316.sql new file mode 100644 index 00000000..f19d9650 --- /dev/null +++ b/inst/sql/sql_server/1316.sql @@ -0,0 +1,736 @@ +CREATE TABLE #Codesets ( + codeset_id int NOT NULL, + concept_id bigint NOT NULL +) +; + +INSERT INTO #Codesets (codeset_id, concept_id) +SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726)) + +) I +) C UNION ALL +SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196029)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196029)) + +) I +) C UNION ALL +SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,46269836,37396401,4331292,45769564)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564)) + +) I +) C UNION ALL +SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4064161,196463,46269816)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4064161,196463,46269816)) + +) I +) C UNION ALL +SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267417,4058695)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267417,4058695)) + +) I +) C UNION ALL +SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4059290)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059290)) + +) I +LEFT JOIN +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131)) + +) E ON I.concept_id = E.concept_id +WHERE E.concept_id is null +) C UNION ALL +SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131,40484532)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131,40484532)) + +) I +) C UNION ALL +SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4326594,4058725,4113557,194984)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4326594,4058725,4113557,194984)) + +) I +) C UNION ALL +SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) + +) I +LEFT JOIN +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435506)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435506)) + +) E ON I.concept_id = E.concept_id +WHERE E.concept_id is null +) C UNION ALL +SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340383,201343,46269835)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340383,46269835)) + +) I +) C UNION ALL +SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4229262)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4229262)) + +) I +) C UNION ALL +SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200762)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200762)) + +) I +) C UNION ALL +SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163735)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163735)) + +) I +) C UNION ALL +SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135822)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135822)) + +) I +) C UNION ALL +SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029488,4245975,40481531)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4029488,4245975)) + +) I +LEFT JOIN +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) + +) E ON I.concept_id = E.concept_id +WHERE E.concept_id is null +) C UNION ALL +SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200528)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200528)) + +) I +) C UNION ALL +SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4055223)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4055223)) + +) I +) C UNION ALL +SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192680,46270558)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192680,46270558)) + +) I +) C UNION ALL +SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537742)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42537742)) + +) I +) C UNION ALL +SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130518)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4130518)) + +) I +) C UNION ALL +SELECT 27 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4143915,4058694)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4143915,4058694)) + +) I +) C UNION ALL +SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4337543)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4337543)) + +) I +) C UNION ALL +SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4212540)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4212540)) + +) I +) C; + +UPDATE STATISTICS #Codesets; + + +SELECT event_id, person_id, start_date, end_date, op_start_date, op_end_date, visit_occurrence_id +INTO #qualified_events +FROM +( + select pe.event_id, pe.person_id, pe.start_date, pe.end_date, pe.op_start_date, pe.op_end_date, row_number() over (partition by pe.person_id order by pe.start_date ASC) as ordinal, cast(pe.visit_occurrence_id as bigint) as visit_occurrence_id + FROM (-- Begin Primary Events +select P.ordinal as event_id, P.person_id, P.start_date, P.end_date, op_start_date, op_end_date, cast(P.visit_occurrence_id as bigint) as visit_occurrence_id +FROM +( + select E.person_id, E.start_date, E.end_date, + row_number() OVER (PARTITION BY E.person_id ORDER BY E.sort_date ASC, E.event_id) ordinal, + OP.observation_period_start_date as op_start_date, OP.observation_period_end_date as op_end_date, cast(E.visit_occurrence_id as bigint) as visit_occurrence_id + FROM + ( + -- Begin Condition Occurrence Criteria +SELECT C.person_id, C.condition_occurrence_id as event_id, C.start_date, C.end_date, + C.visit_occurrence_id, C.start_date as sort_date +FROM +( + SELECT co.person_id,co.condition_occurrence_id,co.condition_concept_id,co.visit_occurrence_id,co.condition_start_date as start_date, COALESCE(co.condition_end_date, DATEADD(day,1,co.condition_start_date)) as end_date , row_number() over (PARTITION BY co.person_id ORDER BY co.condition_start_date, co.condition_occurrence_id) as ordinal + FROM @cdm_database_schema.CONDITION_OCCURRENCE co + JOIN #Codesets cs on (co.condition_concept_id = cs.concept_id and cs.codeset_id = 21) +) C + +WHERE C.ordinal = 1 +-- End Condition Occurrence Criteria + + ) E + JOIN @cdm_database_schema.observation_period OP on E.person_id = OP.person_id and E.start_date >= OP.observation_period_start_date and E.start_date <= op.observation_period_end_date + WHERE DATEADD(day,0,OP.OBSERVATION_PERIOD_START_DATE) <= E.START_DATE AND DATEADD(day,0,E.START_DATE) <= OP.OBSERVATION_PERIOD_END_DATE +) P + +-- End Primary Events +) pe + +) QE + +; + +--- Inclusion Rule Inserts + +select 0 as inclusion_rule_id, person_id, event_id +INTO #Inclusion_0 +FROM +( + select pe.person_id, pe.event_id + FROM #qualified_events pe + +JOIN ( +-- Begin Criteria Group +select 0 as index_id, person_id, event_id +FROM +( + select E.person_id, E.event_id + FROM #qualified_events E + INNER JOIN + ( + -- Begin Correlated Criteria +select 0 as index_id, p.person_id, p.event_id +from #qualified_events p +LEFT JOIN ( +SELECT p.person_id, p.event_id +FROM #qualified_events P +JOIN ( + -- Begin Condition Occurrence Criteria +SELECT C.person_id, C.condition_occurrence_id as event_id, C.start_date, C.end_date, + C.visit_occurrence_id, C.start_date as sort_date +FROM +( + SELECT co.person_id,co.condition_occurrence_id,co.condition_concept_id,co.visit_occurrence_id,co.condition_start_date as start_date, COALESCE(co.condition_end_date, DATEADD(day,1,co.condition_start_date)) as end_date + FROM @cdm_database_schema.CONDITION_OCCURRENCE co + JOIN #Codesets cs on (co.condition_concept_id = cs.concept_id and cs.codeset_id = 6) +) C + + +-- End Condition Occurrence Criteria + +) A on A.person_id = P.person_id AND A.START_DATE >= P.OP_START_DATE AND A.START_DATE <= P.OP_END_DATE AND A.START_DATE >= P.OP_START_DATE AND A.START_DATE <= DATEADD(day,0,P.START_DATE) ) cc on p.person_id = cc.person_id and p.event_id = cc.event_id +GROUP BY p.person_id, p.event_id +HAVING COUNT(cc.event_id) = 0 +-- End Correlated Criteria + + ) CQ on E.person_id = CQ.person_id and E.event_id = CQ.event_id + GROUP BY E.person_id, E.event_id + HAVING COUNT(index_id) = 1 +) G +-- End Criteria Group +) AC on AC.person_id = pe.person_id AND AC.event_id = pe.event_id +) Results +; + +select 1 as inclusion_rule_id, person_id, event_id +INTO #Inclusion_1 +FROM +( + select pe.person_id, pe.event_id + FROM #qualified_events pe + +JOIN ( +-- Begin Criteria Group +select 0 as index_id, person_id, event_id +FROM +( + select E.person_id, E.event_id + FROM #qualified_events E + INNER JOIN + ( + -- Begin Correlated Criteria +select 0 as index_id, p.person_id, p.event_id +from #qualified_events p +LEFT JOIN ( +SELECT p.person_id, p.event_id +FROM #qualified_events P +JOIN ( + -- Begin Condition Occurrence Criteria +SELECT C.person_id, C.condition_occurrence_id as event_id, C.start_date, C.end_date, + C.visit_occurrence_id, C.start_date as sort_date +FROM +( + SELECT co.person_id,co.condition_occurrence_id,co.condition_concept_id,co.visit_occurrence_id,co.condition_start_date as start_date, COALESCE(co.condition_end_date, DATEADD(day,1,co.condition_start_date)) as end_date + FROM @cdm_database_schema.CONDITION_OCCURRENCE co + JOIN #Codesets cs on (co.condition_concept_id = cs.concept_id and cs.codeset_id = 7) +) C + + +-- End Condition Occurrence Criteria + +) A on A.person_id = P.person_id AND A.START_DATE <= DATEADD(day,0,P.START_DATE) ) cc on p.person_id = cc.person_id and p.event_id = cc.event_id +GROUP BY p.person_id, p.event_id +HAVING COUNT(cc.event_id) = 0 +-- End Correlated Criteria + + ) CQ on E.person_id = CQ.person_id and E.event_id = CQ.event_id + GROUP BY E.person_id, E.event_id + HAVING COUNT(index_id) = 1 +) G +-- End Criteria Group +) AC on AC.person_id = pe.person_id AND AC.event_id = pe.event_id +) Results +; + +select 2 as inclusion_rule_id, person_id, event_id +INTO #Inclusion_2 +FROM +( + select pe.person_id, pe.event_id + FROM #qualified_events pe + +JOIN ( +-- Begin Criteria Group +select 0 as index_id, person_id, event_id +FROM +( + select E.person_id, E.event_id + FROM #qualified_events E + INNER JOIN + ( + -- Begin Correlated Criteria +select 0 as index_id, p.person_id, p.event_id +from #qualified_events p +LEFT JOIN ( +SELECT p.person_id, p.event_id +FROM #qualified_events P +JOIN ( + -- Begin Condition Occurrence Criteria +SELECT C.person_id, C.condition_occurrence_id as event_id, C.start_date, C.end_date, + C.visit_occurrence_id, C.start_date as sort_date +FROM +( + SELECT co.person_id,co.condition_occurrence_id,co.condition_concept_id,co.visit_occurrence_id,co.condition_start_date as start_date, COALESCE(co.condition_end_date, DATEADD(day,1,co.condition_start_date)) as end_date + FROM @cdm_database_schema.CONDITION_OCCURRENCE co + JOIN #Codesets cs on (co.condition_concept_id = cs.concept_id and cs.codeset_id = 25) +) C + + +-- End Condition Occurrence Criteria + +) A on A.person_id = P.person_id AND A.START_DATE <= DATEADD(day,-7,P.START_DATE) ) cc on p.person_id = cc.person_id and p.event_id = cc.event_id +GROUP BY p.person_id, p.event_id +HAVING COUNT(cc.event_id) = 0 +-- End Correlated Criteria + + ) CQ on E.person_id = CQ.person_id and E.event_id = CQ.event_id + GROUP BY E.person_id, E.event_id + HAVING COUNT(index_id) = 1 +) G +-- End Criteria Group +) AC on AC.person_id = pe.person_id AND AC.event_id = pe.event_id +) Results +; + +SELECT inclusion_rule_id, person_id, event_id +INTO #inclusion_events +FROM (select inclusion_rule_id, person_id, event_id from #Inclusion_0 +UNION ALL +select inclusion_rule_id, person_id, event_id from #Inclusion_1 +UNION ALL +select inclusion_rule_id, person_id, event_id from #Inclusion_2) I; +TRUNCATE TABLE #Inclusion_0; +DROP TABLE #Inclusion_0; + +TRUNCATE TABLE #Inclusion_1; +DROP TABLE #Inclusion_1; + +TRUNCATE TABLE #Inclusion_2; +DROP TABLE #Inclusion_2; + + +select event_id, person_id, start_date, end_date, op_start_date, op_end_date +into #included_events +FROM ( + SELECT event_id, person_id, start_date, end_date, op_start_date, op_end_date, row_number() over (partition by person_id order by start_date ASC) as ordinal + from + ( + select Q.event_id, Q.person_id, Q.start_date, Q.end_date, Q.op_start_date, Q.op_end_date, SUM(coalesce(POWER(cast(2 as bigint), I.inclusion_rule_id), 0)) as inclusion_rule_mask + from #qualified_events Q + LEFT JOIN #inclusion_events I on I.person_id = Q.person_id and I.event_id = Q.event_id + GROUP BY Q.event_id, Q.person_id, Q.start_date, Q.end_date, Q.op_start_date, Q.op_end_date + ) MG -- matching groups +{3 != 0}?{ + -- the matching group with all bits set ( POWER(2,# of inclusion rules) - 1 = inclusion_rule_mask + WHERE (MG.inclusion_rule_mask = POWER(cast(2 as bigint),3)-1) +} +) Results +WHERE Results.ordinal = 1 +; + +-- date offset strategy + +select event_id, person_id, + case when DATEADD(day,90,end_date) > op_end_date then op_end_date else DATEADD(day,90,end_date) end as end_date +INTO #strategy_ends +from #included_events; + + +-- generate cohort periods into #final_cohort +select person_id, start_date, end_date +INTO #cohort_rows +from ( -- first_ends + select F.person_id, F.start_date, F.end_date + FROM ( + select I.event_id, I.person_id, I.start_date, CE.end_date, row_number() over (partition by I.person_id, I.event_id order by CE.end_date) as ordinal + from #included_events I + join ( -- cohort_ends +-- cohort exit dates +-- End Date Strategy +SELECT event_id, person_id, end_date from #strategy_ends + + ) CE on I.event_id = CE.event_id and I.person_id = CE.person_id and CE.end_date >= I.start_date + ) F + WHERE F.ordinal = 1 +) FE; + + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date +into #final_cohort +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; + +DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; +INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) +select @target_cohort_id as cohort_definition_id, person_id, start_date, end_date +FROM #final_cohort CO +; + +{1 != 0}?{ +-- BEGIN: Censored Stats + +delete from @results_database_schema.cohort_censor_stats where cohort_definition_id = @target_cohort_id; + +-- END: Censored Stats +} +{1 != 0 & 3 != 0}?{ + +-- Create a temp table of inclusion rule rows for joining in the inclusion rule impact analysis + +select cast(rule_sequence as int) as rule_sequence +into #inclusion_rules +from ( + SELECT CAST(0 as int) as rule_sequence UNION ALL SELECT CAST(1 as int) as rule_sequence UNION ALL SELECT CAST(2 as int) as rule_sequence +) IR; + + +-- Find the event that is the 'best match' per person. +-- the 'best match' is defined as the event that satisfies the most inclusion rules. +-- ties are solved by choosing the event that matches the earliest inclusion rule, and then earliest. + +select q.person_id, q.event_id +into #best_events +from #qualified_events Q +join ( + SELECT R.person_id, R.event_id, ROW_NUMBER() OVER (PARTITION BY R.person_id ORDER BY R.rule_count DESC,R.min_rule_id ASC, R.start_date ASC) AS rank_value + FROM ( + SELECT Q.person_id, Q.event_id, COALESCE(COUNT(DISTINCT I.inclusion_rule_id), 0) AS rule_count, COALESCE(MIN(I.inclusion_rule_id), 0) AS min_rule_id, Q.start_date + FROM #qualified_events Q + LEFT JOIN #inclusion_events I ON q.person_id = i.person_id AND q.event_id = i.event_id + GROUP BY Q.person_id, Q.event_id, Q.start_date + ) R +) ranked on Q.person_id = ranked.person_id and Q.event_id = ranked.event_id +WHERE ranked.rank_value = 1 +; + +-- modes of generation: (the same tables store the results for the different modes, identified by the mode_id column) +-- 0: all events +-- 1: best event + + +-- BEGIN: Inclusion Impact Analysis - event +-- calculte matching group counts +delete from @results_database_schema.cohort_inclusion_result where cohort_definition_id = @target_cohort_id and mode_id = 0; +insert into @results_database_schema.cohort_inclusion_result (cohort_definition_id, inclusion_rule_mask, person_count, mode_id) +select @target_cohort_id as cohort_definition_id, inclusion_rule_mask, count_big(*) as person_count, 0 as mode_id +from +( + select Q.person_id, Q.event_id, CAST(SUM(coalesce(POWER(cast(2 as bigint), I.inclusion_rule_id), 0)) AS bigint) as inclusion_rule_mask + from #qualified_events Q + LEFT JOIN #inclusion_events I on q.person_id = i.person_id and q.event_id = i.event_id + GROUP BY Q.person_id, Q.event_id +) MG -- matching groups +group by inclusion_rule_mask +; + +-- calculate gain counts +delete from @results_database_schema.cohort_inclusion_stats where cohort_definition_id = @target_cohort_id and mode_id = 0; +insert into @results_database_schema.cohort_inclusion_stats (cohort_definition_id, rule_sequence, person_count, gain_count, person_total, mode_id) +select @target_cohort_id as cohort_definition_id, ir.rule_sequence, coalesce(T.person_count, 0) as person_count, coalesce(SR.person_count, 0) gain_count, EventTotal.total, 0 as mode_id +from #inclusion_rules ir +left join +( + select i.inclusion_rule_id, count_big(i.event_id) as person_count + from #qualified_events Q + JOIN #inclusion_events i on Q.person_id = I.person_id and Q.event_id = i.event_id + group by i.inclusion_rule_id +) T on ir.rule_sequence = T.inclusion_rule_id +CROSS JOIN (select count(*) as total_rules from #inclusion_rules) RuleTotal +CROSS JOIN (select count_big(event_id) as total from #qualified_events) EventTotal +LEFT JOIN @results_database_schema.cohort_inclusion_result SR on SR.mode_id = 0 AND SR.cohort_definition_id = @target_cohort_id AND (POWER(cast(2 as bigint),RuleTotal.total_rules) - POWER(cast(2 as bigint),ir.rule_sequence) - 1) = SR.inclusion_rule_mask -- POWER(2,rule count) - POWER(2,rule sequence) - 1 is the mask for 'all except this rule' +; + +-- calculate totals +delete from @results_database_schema.cohort_summary_stats where cohort_definition_id = @target_cohort_id and mode_id = 0; +insert into @results_database_schema.cohort_summary_stats (cohort_definition_id, base_count, final_count, mode_id) +select @target_cohort_id as cohort_definition_id, PC.total as person_count, coalesce(FC.total, 0) as final_count, 0 as mode_id +FROM +(select count_big(event_id) as total from #qualified_events) PC, +(select sum(sr.person_count) as total + from @results_database_schema.cohort_inclusion_result sr + CROSS JOIN (select count(*) as total_rules from #inclusion_rules) RuleTotal + where sr.mode_id = 0 and sr.cohort_definition_id = @target_cohort_id and sr.inclusion_rule_mask = POWER(cast(2 as bigint),RuleTotal.total_rules)-1 +) FC +; + +-- END: Inclusion Impact Analysis - event + +-- BEGIN: Inclusion Impact Analysis - person +-- calculte matching group counts +delete from @results_database_schema.cohort_inclusion_result where cohort_definition_id = @target_cohort_id and mode_id = 1; +insert into @results_database_schema.cohort_inclusion_result (cohort_definition_id, inclusion_rule_mask, person_count, mode_id) +select @target_cohort_id as cohort_definition_id, inclusion_rule_mask, count_big(*) as person_count, 1 as mode_id +from +( + select Q.person_id, Q.event_id, CAST(SUM(coalesce(POWER(cast(2 as bigint), I.inclusion_rule_id), 0)) AS bigint) as inclusion_rule_mask + from #best_events Q + LEFT JOIN #inclusion_events I on q.person_id = i.person_id and q.event_id = i.event_id + GROUP BY Q.person_id, Q.event_id +) MG -- matching groups +group by inclusion_rule_mask +; + +-- calculate gain counts +delete from @results_database_schema.cohort_inclusion_stats where cohort_definition_id = @target_cohort_id and mode_id = 1; +insert into @results_database_schema.cohort_inclusion_stats (cohort_definition_id, rule_sequence, person_count, gain_count, person_total, mode_id) +select @target_cohort_id as cohort_definition_id, ir.rule_sequence, coalesce(T.person_count, 0) as person_count, coalesce(SR.person_count, 0) gain_count, EventTotal.total, 1 as mode_id +from #inclusion_rules ir +left join +( + select i.inclusion_rule_id, count_big(i.event_id) as person_count + from #best_events Q + JOIN #inclusion_events i on Q.person_id = I.person_id and Q.event_id = i.event_id + group by i.inclusion_rule_id +) T on ir.rule_sequence = T.inclusion_rule_id +CROSS JOIN (select count(*) as total_rules from #inclusion_rules) RuleTotal +CROSS JOIN (select count_big(event_id) as total from #best_events) EventTotal +LEFT JOIN @results_database_schema.cohort_inclusion_result SR on SR.mode_id = 1 AND SR.cohort_definition_id = @target_cohort_id AND (POWER(cast(2 as bigint),RuleTotal.total_rules) - POWER(cast(2 as bigint),ir.rule_sequence) - 1) = SR.inclusion_rule_mask -- POWER(2,rule count) - POWER(2,rule sequence) - 1 is the mask for 'all except this rule' +; + +-- calculate totals +delete from @results_database_schema.cohort_summary_stats where cohort_definition_id = @target_cohort_id and mode_id = 1; +insert into @results_database_schema.cohort_summary_stats (cohort_definition_id, base_count, final_count, mode_id) +select @target_cohort_id as cohort_definition_id, PC.total as person_count, coalesce(FC.total, 0) as final_count, 1 as mode_id +FROM +(select count_big(event_id) as total from #best_events) PC, +(select sum(sr.person_count) as total + from @results_database_schema.cohort_inclusion_result sr + CROSS JOIN (select count(*) as total_rules from #inclusion_rules) RuleTotal + where sr.mode_id = 1 and sr.cohort_definition_id = @target_cohort_id and sr.inclusion_rule_mask = POWER(cast(2 as bigint),RuleTotal.total_rules)-1 +) FC +; + +-- END: Inclusion Impact Analysis - person + +TRUNCATE TABLE #best_events; +DROP TABLE #best_events; + +TRUNCATE TABLE #inclusion_rules; +DROP TABLE #inclusion_rules; +} + +TRUNCATE TABLE #strategy_ends; +DROP TABLE #strategy_ends; + + +TRUNCATE TABLE #cohort_rows; +DROP TABLE #cohort_rows; + +TRUNCATE TABLE #final_cohort; +DROP TABLE #final_cohort; + +TRUNCATE TABLE #inclusion_events; +DROP TABLE #inclusion_events; + +TRUNCATE TABLE #qualified_events; +DROP TABLE #qualified_events; + +TRUNCATE TABLE #included_events; +DROP TABLE #included_events; + +TRUNCATE TABLE #Codesets; +DROP TABLE #Codesets; diff --git a/inst/sql/sql_server/1317.sql b/inst/sql/sql_server/1317.sql new file mode 100644 index 00000000..1b2d2d60 --- /dev/null +++ b/inst/sql/sql_server/1317.sql @@ -0,0 +1,283 @@ +CREATE TABLE #Codesets ( + codeset_id int NOT NULL, + concept_id bigint NOT NULL +) +; + +INSERT INTO #Codesets (codeset_id, concept_id) +SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (375241)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (375241)) + +) I +) C; + +UPDATE STATISTICS #Codesets; + + +SELECT event_id, person_id, start_date, end_date, op_start_date, op_end_date, visit_occurrence_id +INTO #qualified_events +FROM +( + select pe.event_id, pe.person_id, pe.start_date, pe.end_date, pe.op_start_date, pe.op_end_date, row_number() over (partition by pe.person_id order by pe.start_date ASC) as ordinal, cast(pe.visit_occurrence_id as bigint) as visit_occurrence_id + FROM (-- Begin Primary Events +select P.ordinal as event_id, P.person_id, P.start_date, P.end_date, op_start_date, op_end_date, cast(P.visit_occurrence_id as bigint) as visit_occurrence_id +FROM +( + select E.person_id, E.start_date, E.end_date, + row_number() OVER (PARTITION BY E.person_id ORDER BY E.sort_date ASC, E.event_id) ordinal, + OP.observation_period_start_date as op_start_date, OP.observation_period_end_date as op_end_date, cast(E.visit_occurrence_id as bigint) as visit_occurrence_id + FROM + ( + -- Begin Condition Occurrence Criteria +SELECT C.person_id, C.condition_occurrence_id as event_id, C.start_date, C.end_date, + C.visit_occurrence_id, C.start_date as sort_date +FROM +( + SELECT co.person_id,co.condition_occurrence_id,co.condition_concept_id,co.visit_occurrence_id,co.condition_start_date as start_date, COALESCE(co.condition_end_date, DATEADD(day,1,co.condition_start_date)) as end_date , row_number() over (PARTITION BY co.person_id ORDER BY co.condition_start_date, co.condition_occurrence_id) as ordinal + FROM @cdm_database_schema.CONDITION_OCCURRENCE co + JOIN #Codesets cs on (co.condition_concept_id = cs.concept_id and cs.codeset_id = 0) +) C + +WHERE C.ordinal = 1 +-- End Condition Occurrence Criteria + + ) E + JOIN @cdm_database_schema.observation_period OP on E.person_id = OP.person_id and E.start_date >= OP.observation_period_start_date and E.start_date <= op.observation_period_end_date + WHERE DATEADD(day,0,OP.OBSERVATION_PERIOD_START_DATE) <= E.START_DATE AND DATEADD(day,0,E.START_DATE) <= OP.OBSERVATION_PERIOD_END_DATE +) P +WHERE P.ordinal = 1 +-- End Primary Events +) pe + +) QE + +; + +--- Inclusion Rule Inserts + +create table #inclusion_events (inclusion_rule_id bigint, + person_id bigint, + event_id bigint +); + +select event_id, person_id, start_date, end_date, op_start_date, op_end_date +into #included_events +FROM ( + SELECT event_id, person_id, start_date, end_date, op_start_date, op_end_date, row_number() over (partition by person_id order by start_date ASC) as ordinal + from + ( + select Q.event_id, Q.person_id, Q.start_date, Q.end_date, Q.op_start_date, Q.op_end_date, SUM(coalesce(POWER(cast(2 as bigint), I.inclusion_rule_id), 0)) as inclusion_rule_mask + from #qualified_events Q + LEFT JOIN #inclusion_events I on I.person_id = Q.person_id and I.event_id = Q.event_id + GROUP BY Q.event_id, Q.person_id, Q.start_date, Q.end_date, Q.op_start_date, Q.op_end_date + ) MG -- matching groups +{0 != 0}?{ + -- the matching group with all bits set ( POWER(2,# of inclusion rules) - 1 = inclusion_rule_mask + WHERE (MG.inclusion_rule_mask = POWER(cast(2 as bigint),0)-1) +} +) Results +WHERE Results.ordinal = 1 +; + + + +-- generate cohort periods into #final_cohort +select person_id, start_date, end_date +INTO #cohort_rows +from ( -- first_ends + select F.person_id, F.start_date, F.end_date + FROM ( + select I.event_id, I.person_id, I.start_date, CE.end_date, row_number() over (partition by I.person_id, I.event_id order by CE.end_date) as ordinal + from #included_events I + join ( -- cohort_ends +-- cohort exit dates +-- By default, cohort exit at the event's op end date +select event_id, person_id, op_end_date as end_date from #included_events + ) CE on I.event_id = CE.event_id and I.person_id = CE.person_id and CE.end_date >= I.start_date + ) F + WHERE F.ordinal = 1 +) FE; + + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date +into #final_cohort +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; + +DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; +INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) +select @target_cohort_id as cohort_definition_id, person_id, start_date, end_date +FROM #final_cohort CO +; + +{1 != 0}?{ +-- BEGIN: Censored Stats + +delete from @results_database_schema.cohort_censor_stats where cohort_definition_id = @target_cohort_id; + +-- END: Censored Stats +} +{1 != 0 & 0 != 0}?{ + +CREATE TABLE #inclusion_rules (rule_sequence int); + +-- Find the event that is the 'best match' per person. +-- the 'best match' is defined as the event that satisfies the most inclusion rules. +-- ties are solved by choosing the event that matches the earliest inclusion rule, and then earliest. + +select q.person_id, q.event_id +into #best_events +from #qualified_events Q +join ( + SELECT R.person_id, R.event_id, ROW_NUMBER() OVER (PARTITION BY R.person_id ORDER BY R.rule_count DESC,R.min_rule_id ASC, R.start_date ASC) AS rank_value + FROM ( + SELECT Q.person_id, Q.event_id, COALESCE(COUNT(DISTINCT I.inclusion_rule_id), 0) AS rule_count, COALESCE(MIN(I.inclusion_rule_id), 0) AS min_rule_id, Q.start_date + FROM #qualified_events Q + LEFT JOIN #inclusion_events I ON q.person_id = i.person_id AND q.event_id = i.event_id + GROUP BY Q.person_id, Q.event_id, Q.start_date + ) R +) ranked on Q.person_id = ranked.person_id and Q.event_id = ranked.event_id +WHERE ranked.rank_value = 1 +; + +-- modes of generation: (the same tables store the results for the different modes, identified by the mode_id column) +-- 0: all events +-- 1: best event + + +-- BEGIN: Inclusion Impact Analysis - event +-- calculte matching group counts +delete from @results_database_schema.cohort_inclusion_result where cohort_definition_id = @target_cohort_id and mode_id = 0; +insert into @results_database_schema.cohort_inclusion_result (cohort_definition_id, inclusion_rule_mask, person_count, mode_id) +select @target_cohort_id as cohort_definition_id, inclusion_rule_mask, count_big(*) as person_count, 0 as mode_id +from +( + select Q.person_id, Q.event_id, CAST(SUM(coalesce(POWER(cast(2 as bigint), I.inclusion_rule_id), 0)) AS bigint) as inclusion_rule_mask + from #qualified_events Q + LEFT JOIN #inclusion_events I on q.person_id = i.person_id and q.event_id = i.event_id + GROUP BY Q.person_id, Q.event_id +) MG -- matching groups +group by inclusion_rule_mask +; + +-- calculate gain counts +delete from @results_database_schema.cohort_inclusion_stats where cohort_definition_id = @target_cohort_id and mode_id = 0; +insert into @results_database_schema.cohort_inclusion_stats (cohort_definition_id, rule_sequence, person_count, gain_count, person_total, mode_id) +select @target_cohort_id as cohort_definition_id, ir.rule_sequence, coalesce(T.person_count, 0) as person_count, coalesce(SR.person_count, 0) gain_count, EventTotal.total, 0 as mode_id +from #inclusion_rules ir +left join +( + select i.inclusion_rule_id, count_big(i.event_id) as person_count + from #qualified_events Q + JOIN #inclusion_events i on Q.person_id = I.person_id and Q.event_id = i.event_id + group by i.inclusion_rule_id +) T on ir.rule_sequence = T.inclusion_rule_id +CROSS JOIN (select count(*) as total_rules from #inclusion_rules) RuleTotal +CROSS JOIN (select count_big(event_id) as total from #qualified_events) EventTotal +LEFT JOIN @results_database_schema.cohort_inclusion_result SR on SR.mode_id = 0 AND SR.cohort_definition_id = @target_cohort_id AND (POWER(cast(2 as bigint),RuleTotal.total_rules) - POWER(cast(2 as bigint),ir.rule_sequence) - 1) = SR.inclusion_rule_mask -- POWER(2,rule count) - POWER(2,rule sequence) - 1 is the mask for 'all except this rule' +; + +-- calculate totals +delete from @results_database_schema.cohort_summary_stats where cohort_definition_id = @target_cohort_id and mode_id = 0; +insert into @results_database_schema.cohort_summary_stats (cohort_definition_id, base_count, final_count, mode_id) +select @target_cohort_id as cohort_definition_id, PC.total as person_count, coalesce(FC.total, 0) as final_count, 0 as mode_id +FROM +(select count_big(event_id) as total from #qualified_events) PC, +(select sum(sr.person_count) as total + from @results_database_schema.cohort_inclusion_result sr + CROSS JOIN (select count(*) as total_rules from #inclusion_rules) RuleTotal + where sr.mode_id = 0 and sr.cohort_definition_id = @target_cohort_id and sr.inclusion_rule_mask = POWER(cast(2 as bigint),RuleTotal.total_rules)-1 +) FC +; + +-- END: Inclusion Impact Analysis - event + +-- BEGIN: Inclusion Impact Analysis - person +-- calculte matching group counts +delete from @results_database_schema.cohort_inclusion_result where cohort_definition_id = @target_cohort_id and mode_id = 1; +insert into @results_database_schema.cohort_inclusion_result (cohort_definition_id, inclusion_rule_mask, person_count, mode_id) +select @target_cohort_id as cohort_definition_id, inclusion_rule_mask, count_big(*) as person_count, 1 as mode_id +from +( + select Q.person_id, Q.event_id, CAST(SUM(coalesce(POWER(cast(2 as bigint), I.inclusion_rule_id), 0)) AS bigint) as inclusion_rule_mask + from #best_events Q + LEFT JOIN #inclusion_events I on q.person_id = i.person_id and q.event_id = i.event_id + GROUP BY Q.person_id, Q.event_id +) MG -- matching groups +group by inclusion_rule_mask +; + +-- calculate gain counts +delete from @results_database_schema.cohort_inclusion_stats where cohort_definition_id = @target_cohort_id and mode_id = 1; +insert into @results_database_schema.cohort_inclusion_stats (cohort_definition_id, rule_sequence, person_count, gain_count, person_total, mode_id) +select @target_cohort_id as cohort_definition_id, ir.rule_sequence, coalesce(T.person_count, 0) as person_count, coalesce(SR.person_count, 0) gain_count, EventTotal.total, 1 as mode_id +from #inclusion_rules ir +left join +( + select i.inclusion_rule_id, count_big(i.event_id) as person_count + from #best_events Q + JOIN #inclusion_events i on Q.person_id = I.person_id and Q.event_id = i.event_id + group by i.inclusion_rule_id +) T on ir.rule_sequence = T.inclusion_rule_id +CROSS JOIN (select count(*) as total_rules from #inclusion_rules) RuleTotal +CROSS JOIN (select count_big(event_id) as total from #best_events) EventTotal +LEFT JOIN @results_database_schema.cohort_inclusion_result SR on SR.mode_id = 1 AND SR.cohort_definition_id = @target_cohort_id AND (POWER(cast(2 as bigint),RuleTotal.total_rules) - POWER(cast(2 as bigint),ir.rule_sequence) - 1) = SR.inclusion_rule_mask -- POWER(2,rule count) - POWER(2,rule sequence) - 1 is the mask for 'all except this rule' +; + +-- calculate totals +delete from @results_database_schema.cohort_summary_stats where cohort_definition_id = @target_cohort_id and mode_id = 1; +insert into @results_database_schema.cohort_summary_stats (cohort_definition_id, base_count, final_count, mode_id) +select @target_cohort_id as cohort_definition_id, PC.total as person_count, coalesce(FC.total, 0) as final_count, 1 as mode_id +FROM +(select count_big(event_id) as total from #best_events) PC, +(select sum(sr.person_count) as total + from @results_database_schema.cohort_inclusion_result sr + CROSS JOIN (select count(*) as total_rules from #inclusion_rules) RuleTotal + where sr.mode_id = 1 and sr.cohort_definition_id = @target_cohort_id and sr.inclusion_rule_mask = POWER(cast(2 as bigint),RuleTotal.total_rules)-1 +) FC +; + +-- END: Inclusion Impact Analysis - person + +TRUNCATE TABLE #best_events; +DROP TABLE #best_events; + +TRUNCATE TABLE #inclusion_rules; +DROP TABLE #inclusion_rules; +} + + + +TRUNCATE TABLE #cohort_rows; +DROP TABLE #cohort_rows; + +TRUNCATE TABLE #final_cohort; +DROP TABLE #final_cohort; + +TRUNCATE TABLE #inclusion_events; +DROP TABLE #inclusion_events; + +TRUNCATE TABLE #qualified_events; +DROP TABLE #qualified_events; + +TRUNCATE TABLE #included_events; +DROP TABLE #included_events; + +TRUNCATE TABLE #Codesets; +DROP TABLE #Codesets; diff --git a/inst/sql/sql_server/134.sql b/inst/sql/sql_server/134.sql index 5d49d28e..a4262a18 100644 --- a/inst/sql/sql_server/134.sql +++ b/inst/sql/sql_server/134.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (705944,731533,742185,709567,719311,1344965,714785,727835) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (705944,731533,742185,709567,719311,1344965,714785,727835)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (705944,731533,742185,709567,719311,1344965,714785,727835) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (705944,731533,742185,709567,719311,1344965,714785,727835)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44813054,40480225,4262921,45765570,4047120) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44813054,40480225,4262921,45765570,4047120)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44813054,40480225,4262921,45765570,4047120) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44813054,40480225,4262921,45765570,4047120)) ) I ) C; @@ -193,49 +193,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/14.sql b/inst/sql/sql_server/14.sql index f313f507..8a84794d 100644 --- a/inst/sql/sql_server/14.sql +++ b/inst/sql/sql_server/14.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442752,4150129) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442752,4150129)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442752) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442752)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/142.sql b/inst/sql/sql_server/142.sql index ced4be69..f329bb8f 100644 --- a/inst/sql/sql_server/142.sql +++ b/inst/sql/sql_server/142.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4296653,45766114) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4296653,45766114)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4296653,45766114) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4296653,45766114)) ) I ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4295129) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4295129)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4295129) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4295129)) ) I ) C UNION ALL SELECT 36 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (312327,4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (312327,4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (312327) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (312327)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -231,49 +231,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/15.sql b/inst/sql/sql_server/15.sql index ad68ccdc..dee924ca 100644 --- a/inst/sql/sql_server/15.sql +++ b/inst/sql/sql_server/15.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37016200) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37016200)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37016200) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37016200)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/16.sql b/inst/sql/sql_server/16.sql index 39be6788..016081ca 100644 --- a/inst/sql/sql_server/16.sql +++ b/inst/sql/sql_server/16.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311059,45765578) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311059,45765578)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311059,45765578) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311059,45765578)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/17.sql b/inst/sql/sql_server/17.sql index a2adaa93..77f83d5d 100644 --- a/inst/sql/sql_server/17.sql +++ b/inst/sql/sql_server/17.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311059) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311059)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311059) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311059)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/18.sql b/inst/sql/sql_server/18.sql index f4377b48..674128f8 100644 --- a/inst/sql/sql_server/18.sql +++ b/inst/sql/sql_server/18.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (703578) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (703578)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (703578) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (703578)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/189.sql b/inst/sql/sql_server/189.sql index ba1d027a..8efb7ef0 100644 --- a/inst/sql/sql_server/189.sql +++ b/inst/sql/sql_server/189.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (198263) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (198263)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (198263) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (198263)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/190.sql b/inst/sql/sql_server/190.sql index 5e121bb0..d652b2e7 100644 --- a/inst/sql/sql_server/190.sql +++ b/inst/sql/sql_server/190.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442597) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442597)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442597) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442597)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/191.sql b/inst/sql/sql_server/191.sql index 461247b6..1a3567ef 100644 --- a/inst/sql/sql_server/191.sql +++ b/inst/sql/sql_server/191.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442165,436675,4223659,4061577,4272240,4309912) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442165,436675,4223659,4061577,4272240,4309912)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442165,436675,4223659,4061577,4272240,4309912) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442165,436675,4223659,4061577,4272240,4309912)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37396808,4090207,44782753) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37396808,4090207,44782753)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37396808,4090207,44782753) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37396808,4090207,44782753)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/192.sql b/inst/sql/sql_server/192.sql index 17866720..04e407b8 100644 --- a/inst/sql/sql_server/192.sql +++ b/inst/sql/sql_server/192.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (38001002,4051478,45768610,2106308,4262407,4055146,4049224,4181851,4082142,4182603,4059014,4096682,4118793,4177600,38001003,45772698,4311406,40490890,4309836,4300859) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (38001002,4051478,45768610,2106308,4262407,4055146,4049224,4181851,4082142,4182603,4059014,4096682,4118793,4177600,38001003,45772698,4311406,40490890,4309836,4300859)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (38001002,4051478,45768610,2106308,4262407,4055146,4049224,4181851,4082142,4182603,4059014,4096682,4118793,4177600,38001003,45772698,4311406,40490890,4300859) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (38001002,4051478,45768610,2106308,4262407,4055146,4049224,4181851,4082142,4182603,4059014,4096682,4118793,4177600,38001003,45772698,4311406,40490890,4300859)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4307580,4067764,4080556,4311252,4298842,4300127,4300126,4300128,4071068,4006156,4012540,4209297,4299540,4100838,4100839,4154597,4294426,4119134,4216866,4096219,4189651,4033871,4123077) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4307580,4067764,4080556,4311252,4298842,4300127,4300126,4300128,4071068,4006156,4012540,4209297,4299540,4100838,4100839,4154597,4294426,4119134,4216866,4096219,4189651,4033871,4123077)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4067764,4080556,4311252,4298842,4300127,4300126,4300128,4071068,4006156,4012540,4209297,4299540,4100838,4100839,4154597,4294426,4119134,4216866,4096219,4189651,4033871,4123077) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4067764,4080556,4311252,4298842,4300127,4300126,4300128,4071068,4006156,4012540,4209297,4299540,4100838,4100839,4154597,4294426,4119134,4216866,4096219,4189651,4033871,4123077)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -150,49 +150,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/193.sql b/inst/sql/sql_server/193.sql index b476e64e..c6aed9f2 100644 --- a/inst/sql/sql_server/193.sql +++ b/inst/sql/sql_server/193.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (137977,4302654) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (137977,4302654)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (137977,4302654) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (137977,4302654)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/194.sql b/inst/sql/sql_server/194.sql index 1fddab5b..3e9fd72d 100644 --- a/inst/sql/sql_server/194.sql +++ b/inst/sql/sql_server/194.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (380834,381273,4128829,43021132,436222,4103559) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (380834,381273,4128829,43021132,436222,4103559)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (380834,381273,4128829,43021132,436222,4103559) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (380834,381273,4128829,43021132,436222,4103559)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/195.sql b/inst/sql/sql_server/195.sql index 376686e8..d8091acf 100644 --- a/inst/sql/sql_server/195.sql +++ b/inst/sql/sql_server/195.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197508,4177230,192855) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197508,4177230,192855)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197508,4177230,192855) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197508,4177230,192855)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4312149,4312802,4313210,4314336,4313925,4314491,4313221,4313222,4314494,37016119,4113112,4111028,37116429,36713671,4080733,4175529,4315813) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4312149,4312802,4313210,4314336,4313925,4314491,4313221,4313222,4314494,37016119,4113112,4111028,37116429,36713671,4080733,4175529,4315813)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4312149,4312802,4313210,4314336,4313925,4314491,4313221,4313222,4314494,37016119,4113112,4111028,37116429,36713671,4080733,4175529,4315813) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4312149,4312802,4313210,4314336,4313925,4314491,4313221,4313222,4314494,37016119,4113112,4111028,37116429,36713671,4080733,4175529,4315813)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/196.sql b/inst/sql/sql_server/196.sql index 48b188cb..599a1203 100644 --- a/inst/sql/sql_server/196.sql +++ b/inst/sql/sql_server/196.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611)) ) I ) C; @@ -125,49 +125,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/197.sql b/inst/sql/sql_server/197.sql index 08b75eaa..0c3556a2 100644 --- a/inst/sql/sql_server/197.sql +++ b/inst/sql/sql_server/197.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43020660,4185932,37109911,4177223,4127089,37109912,319038,42537729,438172,316995,4108678,4124687,45766165,4108220,4058723,44783188,4080593,4108215,4108680,37109910,318443,44809539,45766212,37312532) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43020660,4185932,37109911,4177223,4127089,37109912,319038,42537729,438172,316995,4108678,4124687,45766165,4108220,4058723,44783188,4080593,4108215,4108680,37109910,318443,44809539,45766212,37312532)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43020660,4185932,37109911,4177223,4127089,37109912,319038,42537729,438172,316995,4108678,4124687,45766165,4108220,4058723,44783188,4080593,4108215,4108680,37109910,318443,44809539,45766212) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43020660,4185932,37109911,4177223,4127089,37109912,319038,42537729,438172,316995,4108678,4124687,45766165,4108220,4058723,44783188,4080593,4108215,4108680,37109910,318443,44809539,45766212)) ) I ) C; @@ -125,49 +125,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/198.sql b/inst/sql/sql_server/198.sql index 41515241..74767759 100644 --- a/inst/sql/sql_server/198.sql +++ b/inst/sql/sql_server/198.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46269889,201606,4340812) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46269889,201606,4340812)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46269889,201606,4340812) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46269889,201606,4340812)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/199.sql b/inst/sql/sql_server/199.sql index 54f04859..e1e1f183 100644 --- a/inst/sql/sql_server/199.sql +++ b/inst/sql/sql_server/199.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440383,4152280) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440383,4152280)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4152280) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4152280)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/2.sql b/inst/sql/sql_server/2.sql index 8da0ba63..293b5a75 100644 --- a/inst/sql/sql_server/2.sql +++ b/inst/sql/sql_server/2.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311061)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -148,49 +148,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/20.sql b/inst/sql/sql_server/20.sql index 5f335d5a..5b91e708 100644 --- a/inst/sql/sql_server/20.sql +++ b/inst/sql/sql_server/20.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (256451,4165112) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (256451,4165112)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (256451,4165112) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (256451,4165112)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/200.sql b/inst/sql/sql_server/200.sql index 19b0e00e..e3ff7161 100644 --- a/inst/sql/sql_server/200.sql +++ b/inst/sql/sql_server/200.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140168,4307925,4063431) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140168,4307925,4063431)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4307925,4063431) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4307925,4063431)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/201.sql b/inst/sql/sql_server/201.sql index 2a16e1fb..c0844641 100644 --- a/inst/sql/sql_server/201.sql +++ b/inst/sql/sql_server/201.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46273477,46273478,81893,75580,46269847,46269843) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46273477,46273478,81893,75580,46269847,46269843)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46273477,46273478,81893,75580,46269847,46269843) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46273477,46273478,81893,75580,46269847,46269843)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/207.sql b/inst/sql/sql_server/207.sql index 06cceee2..2aed7956 100644 --- a/inst/sql/sql_server/207.sql +++ b/inst/sql/sql_server/207.sql @@ -7,89 +7,89 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4295183,4214409,4125630,4120449,37017165,4217370,4159748,36680584,4301410,434156,4024671) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4295183,4214409,4125630,4120449,37017165,4217370,4159748,36680584,4301410,434156,4024671)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4295183,4214409,4125630,4120449,37017165,4217370,4159748,36680584,4301410,434156,4024671) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4295183,4214409,4125630,4120449,37017165,4217370,4159748,36680584,4301410,434156,4024671)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3000963) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3000963)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3000963) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3000963)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (138723) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (138723)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (138723) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (138723)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4028623,4081380,4145532,4265436,4323781,40492243,42537745,46270345,46271079) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4028623,4081380,4145532,4265436,4323781,40492243,42537745,46270345,46271079)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4028623,4081380,4145532,4265436,4323781,40492243,42537745,46270345,46271079) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4028623,4081380,4145532,4265436,4323781,40492243,42537745,46270345,46271079)) ) I ) C UNION ALL SELECT 29 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4146087,4125499) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4146087,4125499)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4146087,4125499) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4146087,4125499)) ) I ) C; @@ -803,49 +803,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/208.sql b/inst/sql/sql_server/208.sql index 26121e0f..48af9bc3 100644 --- a/inst/sql/sql_server/208.sql +++ b/inst/sql/sql_server/208.sql @@ -7,100 +7,100 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444413,437663,4141062,4152360,43530637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444413,437663,4141062,4152360,43530637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444413,437663,4141062,4152360,43530637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444413,437663,4141062,4152360,43530637)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36715585,320073,42872951,435224,440689,45766061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36715585,320073,42872951,435224,440689,45766061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36715585,320073,42872951,435224,440689,45766061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36715585,320073,42872951,435224,440689,45766061)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4250734) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4250734)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4250734) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4250734)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37393856,4148615,3017732,3013650,3017501) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37393856,4148615,3017732,3013650,3017501)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3017732,3013650,3017501) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3017732,3013650,3017501)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311853,4170143,435742,4000938,4161193,4309542,132736,72410,435613) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311853,4170143,435742,4000938,4161193,4309542,132736,72410,435613)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311853,4170143,435742,4000938,4161193,4309542,132736,72410,435613) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311853,4170143,435742,4000938,4161193,4309542,132736,72410,435613)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C; @@ -1494,49 +1494,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/209.sql b/inst/sql/sql_server/209.sql index dda4b702..87e58f69 100644 --- a/inst/sql/sql_server/209.sql +++ b/inst/sql/sql_server/209.sql @@ -7,133 +7,133 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435503,438869,4082253,4125630,4168772,44783626) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435503,438869,4082253,4125630,4168772,44783626)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435503,438869,4082253,4125630,4168772,44783626) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435503,438869,4082253,4125630,4168772,44783626)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3000963,3027484) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3000963,3027484)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3000963,3027484) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3000963,3027484)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4133980,4133151) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4133980,4133151)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4133980,4133151) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4133980,4133151)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4144746) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4144746)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4144746) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4144746)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4009785,4122936) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4009785,4122936)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4009785,4122936) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4009785,4122936)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (28396) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (28396)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (28396) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (28396)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444238) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444238)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444238) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444238)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4301410) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4301410)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4301410) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4301410)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4024671,40481388) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4024671,40481388)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4024671,40481388) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4024671,40481388)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) ) I ) C; @@ -1207,49 +1207,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/21.sql b/inst/sql/sql_server/21.sql index 906879aa..d0a00e35 100644 --- a/inst/sql/sql_server/21.sql +++ b/inst/sql/sql_server/21.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4195694,319049) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4195694,319049)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4195694,319049) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4195694,319049)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4191650,258866) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4191650,258866)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4191650,258866) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4191650,258866)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/210.sql b/inst/sql/sql_server/210.sql index a403c43b..cf1e4e40 100644 --- a/inst/sql/sql_server/210.sql +++ b/inst/sql/sql_server/210.sql @@ -7,122 +7,122 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435503,438869,4082253,4125630,4168772,44783626) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435503,438869,4082253,4125630,4168772,44783626)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435503,438869,4082253,4125630,4168772,44783626) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435503,438869,4082253,4125630,4168772,44783626)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3000963,3027484) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3000963,3027484)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3000963,3027484) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3000963,3027484)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4133980,4133151) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4133980,4133151)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4133980,4133151) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4133980,4133151)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4144746) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4144746)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4144746) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4144746)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4009785,4122936) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4009785,4122936)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4009785,4122936) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4009785,4122936)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (28396) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (28396)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (28396) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (28396)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4301410) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4301410)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4301410) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4301410)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4024671,40481388) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4024671,40481388)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4024671,40481388) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4024671,40481388)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) ) I ) C; @@ -1086,49 +1086,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/211.sql b/inst/sql/sql_server/211.sql index a3d742e9..85675c2e 100644 --- a/inst/sql/sql_server/211.sql +++ b/inst/sql/sql_server/211.sql @@ -7,133 +7,133 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432881) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432881)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432881) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432881)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3019909,4097621,3050583,37393863,4148615,3018010,3001643,3013650,3008342,3007461,3028813,4151358,3050746,42869588,4267147,3023314,3034976,37393856,3031586,42869584) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3019909,4097621,3050583,37393863,4148615,3018010,3001643,3013650,3008342,3007461,3028813,4151358,3050746,42869588,4267147,3023314,3034976,37393856,3031586,42869584)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3019909,4097621,3050583,37393863,4148615,3018010,3001643,3013650,3008342,3007461,3028813,4151358,3050746,42869588,4267147,3023314,3034976,37393856,3031586,42869584) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3019909,4097621,3050583,37393863,4148615,3018010,3001643,3013650,3008342,3007461,3028813,4151358,3050746,42869588,4267147,3023314,3034976,37393856,3031586,42869584)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37393856,4148615,3017732,3013650,3017501) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37393856,4148615,3017732,3013650,3017501)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3017732,3013650,3017501) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3017732,3013650,3017501)) ) I ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36715585,320073,42872951,435224,440689,45766061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36715585,320073,42872951,435224,440689,45766061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36715585,320073,42872951,435224,440689,45766061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36715585,320073,42872951,435224,440689,45766061)) ) I ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3000963,3027484) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3000963,3027484)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3000963,3027484) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3000963,3027484)) ) I ) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) ) I ) C UNION ALL SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267147,3031586,3050583,3007461,37393863) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267147,3031586,3050583,3007461,37393863)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863)) ) I ) C UNION ALL SELECT 27 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432870,4006469,37397537,42872952) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432870,4006469,37397537,42872952)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432870,4006469,37397537,42872952) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432870,4006469,37397537,42872952)) ) I ) C UNION ALL SELECT 28 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193448,4289321,35622701,434895) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193448,4289321,35622701,434895)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193448,4289321,35622701,434895) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193448,4289321,35622701,434895)) ) I ) C UNION ALL SELECT 29 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4295183,4214409,4125630,4120449,37017165,4217370,4159748,36680584,4301410,434156,4024671) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4295183,4214409,4125630,4120449,37017165,4217370,4159748,36680584,4301410,434156,4024671)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4295183,4214409,4125630,4120449,37017165,4217370,4159748,36680584,4301410,434156,4024671) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4295183,4214409,4125630,4120449,37017165,4217370,4159748,36680584,4301410,434156,4024671)) ) I ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4006469,37397537,4121131) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4006469,37397537,4121131)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4006469,37397537,4121131) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4006469,37397537,4121131)) ) I ) C UNION ALL SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2212642,2212641,4151358,42869588,42869584,4016241,3009542,3023314,3019909,3050746,3028813,3034976) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2212642,2212641,4151358,42869588,42869584,4016241,3009542,3023314,3019909,3050746,3028813,3034976)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2212642,2212641,4151358,42869588,42869584,4016241,3009542,3023314,3019909,3050746,3028813,3034976) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2212642,2212641,4151358,42869588,42869584,4016241,3009542,3023314,3019909,3050746,3028813,3034976)) ) I ) C; @@ -856,49 +856,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 365, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 365, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,365,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,365,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/213.sql b/inst/sql/sql_server/213.sql index 4cdecf3c..1d4d21b6 100644 --- a/inst/sql/sql_server/213.sql +++ b/inst/sql/sql_server/213.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36715585,320073,42872951,435224,440689,45766061,4119158) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36715585,320073,42872951,435224,440689,45766061,4119158)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36715585,320073,42872951,440689,45766061,4119158) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36715585,320073,42872951,440689,45766061,4119158)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193448,4289321,35622701,434895) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193448,4289321,35622701,434895)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193448,4289321,35622701,434895) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193448,4289321,35622701,434895)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37393856,4148615,3017732,3013650,3017501) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37393856,4148615,3017732,3013650,3017501)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3017732,3013650,3017501) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3017732,3013650,3017501)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4306106) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4306106)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4306106) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4306106)) ) I ) C; @@ -410,49 +410,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 365, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 365, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,365,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,365,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/214.sql b/inst/sql/sql_server/214.sql index c1dc430e..b684b38f 100644 --- a/inst/sql/sql_server/214.sql +++ b/inst/sql/sql_server/214.sql @@ -7,111 +7,111 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36715585,320073,42872951,435224,440689,45766061,4119158) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36715585,320073,42872951,435224,440689,45766061,4119158)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36715585,320073,42872951,440689,45766061,4119158) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36715585,320073,42872951,440689,45766061,4119158)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193448,4289321,35622701,434895) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193448,4289321,35622701,434895)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193448,4289321,35622701,434895) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193448,4289321,35622701,434895)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37393856,4148615,3017732,3013650,3017501) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37393856,4148615,3017732,3013650,3017501)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3017732,3013650,3017501) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3017732,3013650,3017501)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4306106) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4306106)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4306106) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4306106)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432881,4131124) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432881,4131124)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432881,4131124) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432881,4131124)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3000963,3027484) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3000963,3027484)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3000963,3027484) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3000963,3027484)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432870,37397537,42872952) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432870,37397537,42872952)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432870,37397537,42872952) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432870,37397537,42872952)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267147,3031586,3050583,3007461,37393863) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267147,3031586,3050583,3007461,37393863)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863)) ) I ) C; @@ -861,49 +861,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/215.sql b/inst/sql/sql_server/215.sql index 774b972d..5e275dc6 100644 --- a/inst/sql/sql_server/215.sql +++ b/inst/sql/sql_server/215.sql @@ -7,100 +7,100 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267147,3031586,3050583,3007461,37393863) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267147,3031586,3050583,3007461,37393863)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37397537,4121131,4006469,42537688,437242) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37397537,4121131,4006469,42537688,437242)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37397537,4121131,4006469,42537688,437242) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37397537,4121131,4006469,42537688,437242)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4280071,36715584,45766614) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4280071,36715584,45766614)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4280071,36715584,45766614) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4280071,36715584,45766614)) ) I ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432881,4131124) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432881,4131124)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432881,4131124) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432881,4131124)) ) I ) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36715585,320073,42872951,435224,440689,45766061,4119158) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36715585,320073,42872951,435224,440689,45766061,4119158)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36715585,320073,42872951,440689,45766061,4119158) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36715585,320073,42872951,440689,45766061,4119158)) ) I ) C UNION ALL SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37393856,4148615,3017732,3013650,3017501) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37393856,4148615,3017732,3013650,3017501)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3017732,3013650,3017501) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3017732,3013650,3017501)) ) I ) C UNION ALL SELECT 27 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) ) I ) C UNION ALL SELECT 28 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3000963,3027484) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3000963,3027484)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3000963,3027484) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3000963,3027484)) ) I ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4103532,4119134) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4103532,4119134)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4103532,4119134) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4103532,4119134)) ) I ) C; @@ -738,49 +738,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/216.sql b/inst/sql/sql_server/216.sql index 9e208ec7..e0ca4ff9 100644 --- a/inst/sql/sql_server/216.sql +++ b/inst/sql/sql_server/216.sql @@ -7,232 +7,232 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267147,3031586,3050583,3007461,37393863) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267147,3031586,3050583,3007461,37393863)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37397537,4121131,4006469,42537688,437242) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37397537,4121131,4006469,42537688,437242)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37397537,4121131,4006469,42537688,437242) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37397537,4121131,4006469,42537688,437242)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4280071,36715584,45766614) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4280071,36715584,45766614)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4280071,36715584,45766614) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4280071,36715584,45766614)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4098292) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4098292)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098292) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098292)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192298,200527,4064314,4272928) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192298,200527,4064314,4272928)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192298,200527,4064314,4272928) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192298,200527,4064314,4272928)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (75580,76685,80809,81893,140168,194992,201606,254443,257628,315763,374919,375260,761978,765565,3654567,3655583,3656106,4009501,4028118,4044056,4045732,4060405,4077943,4102503,4107913,4116142,4132809,4132810,4137275,4140462,4145240,4211939,4219859,4219879,4225691,4232076,4253901,4269448,4297650,4300204,4319305,4330635,4334806,37016279,37110681,37116301,37117740,42539357,44784474,45757061,45757069,45766237,46269952,46273369,46273442,46273477,46273478,46274082) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (75580,76685,80809,81893,140168,194992,201606,254443,257628,315763,374919,375260,761978,765565,3654567,3655583,3656106,4009501,4028118,4044056,4045732,4060405,4077943,4102503,4107913,4116142,4132809,4132810,4137275,4140462,4145240,4211939,4219859,4219879,4225691,4232076,4253901,4269448,4297650,4300204,4319305,4330635,4334806,37016279,37110681,37116301,37117740,42539357,44784474,45757061,45757069,45766237,46269952,46273369,46273442,46273477,46273478,46274082)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (75580,76685,80809,81893,140168,194992,201606,254443,257628,315763,374919,375260,761978,765565,3654567,3655583,3656106,4009501,4028118,4044056,4045732,4060405,4077943,4102503,4107913,4116142,4132809,4132810,4137275,4140462,4145240,4211939,4219859,4219879,4225691,4232076,4253901,4269448,4297650,4300204,4319305,4330635,4334806,37016279,37110681,37116301,37117740,42539357,44784474,45757061,45757069,45766237,46269952,46273369,46273442,46273477,46273478,46274082) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (75580,76685,80809,81893,140168,194992,201606,254443,257628,315763,374919,375260,761978,765565,3654567,3655583,3656106,4009501,4028118,4044056,4045732,4060405,4077943,4102503,4107913,4116142,4132809,4132810,4137275,4140462,4145240,4211939,4219859,4219879,4225691,4232076,4253901,4269448,4297650,4300204,4319305,4330635,4334806,37016279,37110681,37116301,37117740,42539357,44784474,45757061,45757069,45766237,46269952,46273369,46273442,46273477,46273478,46274082)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4212540) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4212540)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4212540) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4212540)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435227,4181204,35622258,4101286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435227,4181204,35622258,4101286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435227,4181204,35622258,4101286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435227,4181204,35622258,4101286)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434622,4280354,436070,436658,4146209) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434622,4280354,436070,436658,4146209)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434622,4280354,436070,436658,4146209) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434622,4280354,436070,436658,4146209)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4024671,40481388) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4024671,40481388)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4024671,40481388) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4024671,40481388)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197253,4159966,36674324) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197253,4159966,36674324)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197253,4159966,36674324) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197253,4159966,36674324)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313800,4198102) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313800,4198102)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313800,4198102) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313800,4198102)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4316372) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4316372)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4316372) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4316372)) ) I ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4030264,4295651,4043444,4057594,37016161,4056992,4043445,4323972,36402787,432571,4161665,4041104,36402625,4156433,4241295,4219140,317510,4215820,4224628,4347562,4161138,4058706,37206728,37204530,45767656,4264693,4043713,4301780,4301659,4221907,437233,4131124,36402821,4161560,37110403,4161020,4164159) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4030264,4295651,4043444,4057594,37016161,4056992,4043445,4323972,36402787,432571,4161665,4041104,36402625,4156433,4241295,4219140,317510,4215820,4224628,4347562,4161138,4058706,37206728,37204530,45767656,4264693,4043713,4301780,4301659,4221907,437233,4131124,36402821,4161560,37110403,4161020,4164159)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4030264,4295651,4043444,4057594,37016161,4056992,4043445,4323972,36402787,432571,4161665,4041104,36402625,4156433,4241295,4219140,317510,4215820,4224628,4347562,4161138,4058706,37206728,37204530,45767656,4264693,4043713,4301780,4301659,4221907,437233,4131124,36402821,4161560,37110403,4161020,4164159) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4030264,4295651,4043444,4057594,37016161,4056992,4043445,4323972,36402787,432571,4161665,4041104,36402625,4156433,4241295,4219140,317510,4215820,4224628,4347562,4161138,4058706,37206728,37204530,45767656,4264693,4043713,4301780,4301659,4221907,437233,4131124,36402821,4161560,37110403,4161020,4164159)) ) I ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432881,4131124) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432881,4131124)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432881,4131124) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432881,4131124)) ) I ) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36715585,320073,42872951,435224,440689,45766061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36715585,320073,42872951,435224,440689,45766061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36715585,320073,42872951,435224,440689,45766061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36715585,320073,42872951,435224,440689,45766061)) ) I ) C UNION ALL SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37393856,4148615,3017732,3013650,3017501) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37393856,4148615,3017732,3013650,3017501)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3017732,3013650,3017501) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3017732,3013650,3017501)) ) I ) C UNION ALL SELECT 27 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) ) I ) C UNION ALL SELECT 28 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3000963,3027484) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3000963,3027484)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3000963,3027484) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3000963,3027484)) ) I ) C UNION ALL SELECT 29 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) ) I ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4103532,4119134,40479556) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4103532,4119134,40479556)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4103532,4119134,40479556) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4103532,4119134,40479556)) ) I ) C; @@ -1462,7 +1462,7 @@ FROM ( -- date offset strategy select event_id, person_id, - case when DATEADD(day,0,end_date) > op_end_date then op_end_date else DATEADD(day,0,end_date) end as end_date + case when DATEADD(day,180,end_date) > op_end_date then op_end_date else DATEADD(day,180,end_date) end as end_date INTO #strategy_ends from #included_events; @@ -1530,49 +1530,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/217.sql b/inst/sql/sql_server/217.sql index ef3bfcbd..aabcf3d9 100644 --- a/inst/sql/sql_server/217.sql +++ b/inst/sql/sql_server/217.sql @@ -7,56 +7,56 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4006469,37397537) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4006469,37397537)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4006469,37397537) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4006469,37397537)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267147,3031586,3050583,3007461,37393863) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267147,3031586,3050583,3007461,37393863)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317510,432571,437233,3654297,3654352,4005251,4030264,4043444,4043445,4043713,4058706,4156433,4161020,4161138,4161560,4161665,4164159,4221907,4224628,4241295,4295651,4301659,4301780,4323972,4347562,36680584,37016161,37204530,37206728,42538056,45767656) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317510,432571,437233,3654297,3654352,4005251,4030264,4043444,4043445,4043713,4058706,4156433,4161020,4161138,4161560,4161665,4164159,4221907,4224628,4241295,4295651,4301659,4301780,4323972,4347562,36680584,37016161,37204530,37206728,42538056,45767656)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317510,432571,437233,3654297,3654352,4005251,4030264,4043444,4043445,4043713,4058706,4156433,4161020,4161138,4161560,4161665,4164159,4221907,4224628,4241295,4295651,4301659,4301780,4323972,4347562,36680584,37016161,37204530,37206728,42538056,45767656) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317510,432571,437233,3654297,3654352,4005251,4030264,4043444,4043445,4043713,4058706,4156433,4161020,4161138,4161560,4161665,4164159,4221907,4224628,4241295,4295651,4301659,4301780,4323972,4347562,36680584,37016161,37204530,37206728,42538056,45767656)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313800,4198102) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313800,4198102)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313800,4198102) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313800,4198102)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2212705,1314273,4182536,4049372,4022139) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2212705,1314273,4182536,4049372,4022139)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2212705,1314273,4182536,4049372,4022139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2212705,1314273,4182536,4049372,4022139)) ) I ) C; @@ -548,49 +548,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/218.sql b/inst/sql/sql_server/218.sql index e1950809..e72cf35a 100644 --- a/inst/sql/sql_server/218.sql +++ b/inst/sql/sql_server/218.sql @@ -7,155 +7,155 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4207805,4230337,4345578,44808744,439142) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4207805,4230337,4345578,44808744,439142)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4207805,4230337,4345578,44808744,439142) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4207805,4230337,4345578,44808744,439142)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442013) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442013)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442013) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442013)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440921)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443081) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443081)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443081) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443081)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435371) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435371)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435371) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435371)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4260205) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4260205)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4260205) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4260205)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (132797) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (132797)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (132797) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (132797)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4128029) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4128029)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4128029) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4128029)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4218766) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4218766)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4218766) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4218766)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4140389) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4140389)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4140389) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4140389)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (137967) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (137967)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (137967) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (137967)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40782593,4265595) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40782593,4265595)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40782593,4265595) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40782593,4265595)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4104431) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4104431)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4104431) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4104431)) ) I ) C; @@ -1609,7 +1609,7 @@ FROM ( -- date offset strategy select event_id, person_id, - case when DATEADD(day,0,end_date) > op_end_date then op_end_date else DATEADD(day,0,end_date) end as end_date + case when DATEADD(day,3,end_date) > op_end_date then op_end_date else DATEADD(day,3,end_date) end as end_date INTO #strategy_ends from #included_events; @@ -1632,49 +1632,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/219.sql b/inst/sql/sql_server/219.sql index 365372e6..4546f475 100644 --- a/inst/sql/sql_server/219.sql +++ b/inst/sql/sql_server/219.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4249449,45766194,4141660,44790742,44790539,4232320,44790740,4143106,44790741,4317150,4146438,4173781,4143834,321042,4141039,44790722,4175137,43530918,3663210,4296246,44790723,4233618,4077195,4353741,4204802,4064455) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4249449,45766194,4141660,44790539,4232320,4143106,4317150,4146438,4173781,4143834,321042,4141039,4175137,43530918,3663210,4296246,4233618,4077195,4204802,4064455)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4249449,45766194,4141660,44790742,44790539,4232320,44790740,4143106,44790741,4317150,4146438,4173781,4143834,321042,4141039,44790722,4175137,43530918,3663210,4296246,44790723,4233618,4077195,4353741,4204802,4064455) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4249449,45766194,4141660,44790539,4232320,4143106,4317150,4146438,4173781,4143834,321042,4141039,4175137,43530918,3663210,4296246,4233618,4077195,4204802,4064455)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C; @@ -200,49 +200,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/22.sql b/inst/sql/sql_server/22.sql index a31633de..91631307 100644 --- a/inst/sql/sql_server/22.sql +++ b/inst/sql/sql_server/22.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/220.sql b/inst/sql/sql_server/220.sql index 14a9ff42..1c7950b4 100644 --- a/inst/sql/sql_server/220.sql +++ b/inst/sql/sql_server/220.sql @@ -7,89 +7,89 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4296370,432791,4297361,4270861) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4296370,432791,4297361,4270861)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4296370,432791,4297361,4270861) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4296370,432791,4297361,4270861)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4231570,4235646) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4231570,4235646)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4231570,4235646) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4231570,4235646)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435613,4299470,133566) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435613,4299470,133566)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435613,4299470,133566) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435613,4299470,133566)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (138346,4104689) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (138346,4104689)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (138346,4104689) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (138346,4104689)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (133835,45766714) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (133835,45766714)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (133835,45766714) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (133835,45766714)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435839) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435839)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435839) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435839)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4296370,432791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4296370,432791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4296370,432791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4296370,432791)) ) I ) C; @@ -620,49 +620,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/221.sql b/inst/sql/sql_server/221.sql index fcf56138..0de5f370 100644 --- a/inst/sql/sql_server/221.sql +++ b/inst/sql/sql_server/221.sql @@ -7,95 +7,95 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441202,762511,762514,762509,762513,762515) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441202,762511,762514,762509,762513,762515)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441202,762511,762514,762509,762513,762515) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441202,762511,762514,762509,762513,762515)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434219,4083866,4221182,3661863,42538691,40479646,4083995) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434219,4083866,4221182,3661863,42538691,40479646,4083995)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434219,4083866,3661863,42538691,40479646,4083995) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434219,4083866,3661863,42538691,40479646,4083995)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434219) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434219)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434219) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434219)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4221182) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4221182)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4221182) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4221182)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4084168,434219,442038) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4084168,434219,442038)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4084168,434219,442038) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4084168,434219,442038)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3661863) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3661863)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3661863) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3661863)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280,442149) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280,442149)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280,442149) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280,442149)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440905) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440905)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440905) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440905)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436581) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436581)) ) I ) C; @@ -561,49 +561,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/222.sql b/inst/sql/sql_server/222.sql index 040a570f..f0517aba 100644 --- a/inst/sql/sql_server/222.sql +++ b/inst/sql/sql_server/222.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35625857) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35625857)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35625857) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35625857)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C; @@ -172,49 +172,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/223.sql b/inst/sql/sql_server/223.sql index eee6c779..c7f2c7a8 100644 --- a/inst/sql/sql_server/223.sql +++ b/inst/sql/sql_server/223.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872891) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872891)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872891) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872891)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (312938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (312938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (312938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (312938)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443700) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443700)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443700) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443700)) ) I ) C; @@ -240,49 +240,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/224.sql b/inst/sql/sql_server/224.sql index 9d71995c..e435aba1 100644 --- a/inst/sql/sql_server/224.sql +++ b/inst/sql/sql_server/224.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314664,4008859) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314664,4008859)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314664,4008859) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314664,4008859)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4224848,40479232,4161597,4049219,44783199,36714606) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4224848,40479232,4161597,4049219,44783199,36714606)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4224848,40479232,4161597,4049219,44783199,36714606) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4224848,40479232,4161597,4049219,44783199,36714606)) ) I ) C; @@ -229,49 +229,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/225.sql b/inst/sql/sql_server/225.sql index 45d92f21..79410975 100644 --- a/inst/sql/sql_server/225.sql +++ b/inst/sql/sql_server/225.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4198217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4198217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4198217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4198217)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4300204,4319305,4145240,37016279,46273369,37019030,257628) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4300204,4319305,4145240,37016279,46273369,37019030,257628)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4300204,4319305,4145240,37016279,46273369,37019030,257628) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4300204,4319305,4145240,37016279,46273369,37019030,257628)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4063581) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4063581)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4063581) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4063581)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -185,49 +185,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/226.sql b/inst/sql/sql_server/226.sql index d0cdb6e5..a4aaff5b 100644 --- a/inst/sql/sql_server/226.sql +++ b/inst/sql/sql_server/226.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45765791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45765791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45765791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45765791)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/227.sql b/inst/sql/sql_server/227.sql index a12cf51f..c81799f7 100644 --- a/inst/sql/sql_server/227.sql +++ b/inst/sql/sql_server/227.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45765791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45765791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45765791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45765791)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (132702) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (132702)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (132702) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (132702)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35625857) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35625857)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35625857) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35625857)) ) I ) C; @@ -161,49 +161,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/228.sql b/inst/sql/sql_server/228.sql index 815c48af..d7dce717 100644 --- a/inst/sql/sql_server/228.sql +++ b/inst/sql/sql_server/228.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45765791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45765791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45765791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45765791)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (132702) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (132702)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (132702) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (132702)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35625857) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35625857)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35625857) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35625857)) ) I ) C; @@ -147,49 +147,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/229.sql b/inst/sql/sql_server/229.sql index 715f4434..1df54df0 100644 --- a/inst/sql/sql_server/229.sql +++ b/inst/sql/sql_server/229.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (433957,4100234) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (433957,4100234)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (433957,4100234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (433957,4100234)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/23.sql b/inst/sql/sql_server/23.sql index cebc9115..0a4f8af7 100644 --- a/inst/sql/sql_server/23.sql +++ b/inst/sql/sql_server/23.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/230.sql b/inst/sql/sql_server/230.sql index 7b7eba4f..097ae1eb 100644 --- a/inst/sql/sql_server/230.sql +++ b/inst/sql/sql_server/230.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200762) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200762)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200762) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200762)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4012113,201613,200763,196463,4143008) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4012113,201613,200763,196463,4143008)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4012113,201613,200763,196463,4143008) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4012113,201613,200763,196463,4143008)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200762) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200762)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200762) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200762)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (257628) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (257628)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (257628) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (257628)) ) I ) C; @@ -251,49 +251,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 365, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 365, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,365,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,365,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/231.sql b/inst/sql/sql_server/231.sql index b2262d8f..63acbed6 100644 --- a/inst/sql/sql_server/231.sql +++ b/inst/sql/sql_server/231.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (132702) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (132702)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (132702) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (132702)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/232.sql b/inst/sql/sql_server/232.sql index 87e08a6e..e991154b 100644 --- a/inst/sql/sql_server/232.sql +++ b/inst/sql/sql_server/232.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4236484,4090425,4009389,4115411) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4236484,4090425,4009389,4115411)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4236484,4090425,4009389,4115411) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4236484,4090425,4009389,4115411)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (136184,4169287) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (136184,4169287)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (136184,4169287) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (136184,4169287)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/233.sql b/inst/sql/sql_server/233.sql index 38e15f20..1f803162 100644 --- a/inst/sql/sql_server/233.sql +++ b/inst/sql/sql_server/233.sql @@ -7,28 +7,28 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439847,432923,4148906,4144154,4111709,42535426,43530728,43530727,4108952,4111708,35609033) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439847,432923,4148906,4144154,4111709,42535426,43530728,43530727,4108952,4111708,35609033)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376713,4174299,36716544,4345688) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376713,4174299,36716544,4345688)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4174299,36716544,4345688) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4174299,36716544,4345688)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -348,49 +348,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/234.sql b/inst/sql/sql_server/234.sql index 60b11d9a..9956e6a7 100644 --- a/inst/sql/sql_server/234.sql +++ b/inst/sql/sql_server/234.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440448) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440448)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440448) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440448)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/235.sql b/inst/sql/sql_server/235.sql index db43eda4..0d336f7c 100644 --- a/inst/sql/sql_server/235.sql +++ b/inst/sql/sql_server/235.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374925,4164770,4070552) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374925,4164770,4070552)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374925,4164770,4070552) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374925,4164770,4070552)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/236.sql b/inst/sql/sql_server/236.sql index aef62dc8..78cdf698 100644 --- a/inst/sql/sql_server/236.sql +++ b/inst/sql/sql_server/236.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (375806,4175154) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (375806,4175154)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (375806) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (375806)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/237.sql b/inst/sql/sql_server/237.sql index d5897c83..4e00fc04 100644 --- a/inst/sql/sql_server/237.sql +++ b/inst/sql/sql_server/237.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314381,35615119) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314381,35615119)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314381,35615119) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314381,35615119)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/238.sql b/inst/sql/sql_server/238.sql index 1e4feac1..9e3266ce 100644 --- a/inst/sql/sql_server/238.sql +++ b/inst/sql/sql_server/238.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374954) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374954)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374954) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374954)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/239.sql b/inst/sql/sql_server/239.sql index eb8f4970..9c2b4201 100644 --- a/inst/sql/sql_server/239.sql +++ b/inst/sql/sql_server/239.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437854,436100) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437854,436100)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437854,436100) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437854,436100)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (438134) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (438134)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (438134) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (438134)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436100,437854) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436100,437854)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436100,437854) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436100,437854)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -185,49 +185,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 365, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 365, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,365,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,365,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/24.sql b/inst/sql/sql_server/24.sql index d57863c3..757cd0c6 100644 --- a/inst/sql/sql_server/24.sql +++ b/inst/sql/sql_server/24.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9203)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/240.sql b/inst/sql/sql_server/240.sql index 1072acdc..e139979a 100644 --- a/inst/sql/sql_server/240.sql +++ b/inst/sql/sql_server/240.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (79908,4319324,4317279,73001,81286,4345578,4263710,4102023,439142,137967) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (79908,4319324,4317279,73001,81286,4345578,4263710,4102023,439142,137967)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (79908,4319324,4317279,73001,81286,4345578,4263710,4102023) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (79908,4319324,4317279,73001,81286,4345578,4263710,4102023)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434657) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434657)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434657) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434657)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -136,49 +136,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/241.sql b/inst/sql/sql_server/241.sql index 853caaac..f8223ed5 100644 --- a/inst/sql/sql_server/241.sql +++ b/inst/sql/sql_server/241.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (139900) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (139900)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (139900) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (139900)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/243.sql b/inst/sql/sql_server/243.sql index fb2d7e82..605d95e9 100644 --- a/inst/sql/sql_server/243.sql +++ b/inst/sql/sql_server/243.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4339486,377575,4339487,4339489,4036628,4037309,4048162) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4339486,377575,4339487,4339489,4036628,4037309,4048162)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4339486,377575,4339487,4339489,4036628,4037309,4048162) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4339486,377575,4339487,4339489,4036628,4037309,4048162)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/244.sql b/inst/sql/sql_server/244.sql index 38f9354f..dae86277 100644 --- a/inst/sql/sql_server/244.sql +++ b/inst/sql/sql_server/244.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437496,4223938,78162,30284,4229392) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437496,4223938,78162,30284,4229392)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437496,4223938,78162,30284,4229392) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437496,4223938,78162,30284,4229392)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/245.sql b/inst/sql/sql_server/245.sql index 870aaaa8..fad58c63 100644 --- a/inst/sql/sql_server/245.sql +++ b/inst/sql/sql_server/245.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4223098,4301208,4111853,196715,4277276) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4223098,4301208,4111853,196715,4277276)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4223098,4301208,4111853,4277276) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4223098,4301208,4111853,4277276)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/246.sql b/inst/sql/sql_server/246.sql index 68b2664a..826575c1 100644 --- a/inst/sql/sql_server/246.sql +++ b/inst/sql/sql_server/246.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (199837,37111372,4223670,196715,36717492,45757410,45757409,4124856,4173167,4144032,4055089,4318407,4317289) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (199837,37111372,4223670,196715,36717492,45757410,45757409,4124856,4173167,4144032,4055089,4318407,4317289)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (199837,37111372,4223670) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (199837,37111372,4223670)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/247.sql b/inst/sql/sql_server/247.sql index 9639b9ae..c6a1faa0 100644 --- a/inst/sql/sql_server/247.sql +++ b/inst/sql/sql_server/247.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (762049,44782752,435565,40481089,193512,4133004,4149782,44782762,762048,46271900,4317289,4124856,4318407,4055089,45757410,45757409,4203836,44782759,4205652,762046,762051,44811347,4033521,45773536,4203618,762047,36712892,4096099) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (762049,44782752,435565,40481089,193512,4133004,4149782,44782762,762048,46271900,4317289,4124856,4318407,4055089,45757410,45757409,4203836,44782759,4205652,762046,762051,44811347,4033521,45773536,4203618,762047,36712892,4096099)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44782752,40481089,4133004) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44782752,40481089,4133004)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36712971,435887,4179911,435031,4062264,438820,4089917,4269051) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36712971,435887,4179911,435031,4062264,438820,4089917,4269051)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36712971,435887,435031,4062264,438820) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36712971,435887,435031,4062264,438820)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/248.sql b/inst/sql/sql_server/248.sql index f35440ac..e4a16905 100644 --- a/inst/sql/sql_server/248.sql +++ b/inst/sql/sql_server/248.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436093) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436093)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436093) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436093)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/249.sql b/inst/sql/sql_server/249.sql index d5445109..84157c47 100644 --- a/inst/sql/sql_server/249.sql +++ b/inst/sql/sql_server/249.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443454) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443454)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40479572,4046360,372435,377254,379778,443790,443864,444091,4046089,4046090,4129534) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40479572,4046360,372435,377254,379778,443790,443864,444091,4046089,4046090,4129534)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40479572,4046360) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40479572,4046360)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -228,49 +228,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/25.sql b/inst/sql/sql_server/25.sql index 214c8618..83cf13e7 100644 --- a/inst/sql/sql_server/25.sql +++ b/inst/sql/sql_server/25.sql @@ -94,49 +94,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/251.sql b/inst/sql/sql_server/251.sql index 6a036a2f..d0c3fdf1 100644 --- a/inst/sql/sql_server/251.sql +++ b/inst/sql/sql_server/251.sql @@ -7,84 +7,84 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4192640) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4192640)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4192640) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4192640)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201,9203)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (199074,4341076,4192640) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (199074,4341076,4192640)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (199074,4341076) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (199074,4341076)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4243504,195596) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4243504,195596)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4243504,195596) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4243504,195596)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195596,36715932) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195596,36715932)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (195596,36715932) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (195596,36715932)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4194916) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4194916)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4194916) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4194916)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9202) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9202)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9202) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9202)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2514436,2514434,2514435,2514433,2514437) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2514436,2514434,2514435,2514433,2514437)) ) I ) C; @@ -543,49 +543,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/253.sql b/inst/sql/sql_server/253.sql index d9e41546..45b96374 100644 --- a/inst/sql/sql_server/253.sql +++ b/inst/sql/sql_server/253.sql @@ -7,183 +7,183 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4192640) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4192640)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4192640) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4192640)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201,9203)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (199074,4341076,4192640) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (199074,4341076,4192640)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (199074,4341076) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (199074,4341076)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4243504,195596) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4243504,195596)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4243504,195596) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4243504,195596)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195596,36715932) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195596,36715932)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (195596,36715932) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (195596,36715932)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4194916) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4194916)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4194916) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4194916)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9202) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9202)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9202) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9202)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2514436,2514434,2514435,2514433,2514437) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2514436,2514434,2514435,2514433,2514437)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40483827,35624505,45757494) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40483827,35624505,45757494)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40483827,35624505,45757494) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40483827,35624505,45757494)) ) I ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4218106,378421,376383,4104707,4078688,201612) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4218106,378421,376383,4104707,4078688,201612)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4218106,378421,376383,4104707,4078688,201612) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4218106,378421,376383,4104707,4078688,201612)) ) I ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195856) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195856)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (195856) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (195856)) ) I ) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197917) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197917)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197917) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197917)) ) I ) C UNION ALL SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4304943,45890395) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4304943,45890395)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4304943,45890395) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4304943,45890395)) ) I ) C UNION ALL SELECT 27 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192673)) ) I ) C UNION ALL SELECT 28 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4129389) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4129389)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4129389) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4129389)) ) I ) C UNION ALL SELECT 29 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4202064) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4202064)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4202064) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4202064)) ) I ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4104431) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4104431)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4104431) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4104431)) ) I ) C; @@ -1137,49 +1137,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/254.sql b/inst/sql/sql_server/254.sql index fea7fbd7..5300104e 100644 --- a/inst/sql/sql_server/254.sql +++ b/inst/sql/sql_server/254.sql @@ -7,78 +7,78 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (380378,377091) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (380378,377091)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (380378,377091) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (380378,377091)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444413,44783583,377101) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444413,44783583,377101)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444413,44783583,377101) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444413,44783583,377101)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4236312,380378,43531630,4029498) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4236312,380378,43531630,4029498)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (380378) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (380378)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45757050,444413,44783583,46270370,377101) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45757050,444413,44783583,46270370,377101)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45757050,444413,44783583,46270370,377101) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45757050,444413,44783583,46270370,377101)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (740275,40192657,21604398,795661,705103,711584,702685,759401,21604418,740910,734354,751347,715458,742267,745466,21604422,21604437,19050832,19087394,35604901,1510417,37497998,37497998,44507780,750119,40239995,797399,42904177,734275,35200286,19006586,19020002,798874) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (740275,40192657,21604398,795661,705103,711584,702685,759401,21604418,740910,734354,751347,715458,742267,745466,21604422,21604437,19050832,19087394,35604901,1510417,37497998,37497998,44507780,750119,40239995,797399,42904177,734275,35200286,19006586,19020002,798874)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (740275,40192657,21604398,795661,705103,711584,702685,759401,21604418,740910,734354,751347,715458,742267,745466,21604422,21604437,19050832,19087394,35604901,1510417,37497998,37497998,44507780,750119,40239995,797399,42904177,734275,35200286,19006586,19020002,798874) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (740275,40192657,21604398,795661,705103,711584,702685,759401,21604418,740910,734354,751347,715458,742267,745466,21604422,21604437,19050832,19087394,35604901,1510417,37497998,37497998,44507780,750119,40239995,797399,42904177,734275,35200286,19006586,19020002,798874)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (790253,713192) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (790253,713192)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (790253,713192) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (790253,713192)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40483317,4309257) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40483317,4309257)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40483317,4309257) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40483317,4309257)) ) I ) C; @@ -464,49 +464,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/255.sql b/inst/sql/sql_server/255.sql index f9f0599f..e0aba727 100644 --- a/inst/sql/sql_server/255.sql +++ b/inst/sql/sql_server/255.sql @@ -7,106 +7,106 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (378419) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (378419)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (378419) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (378419)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37312036,37312035,4041685,37312031,37312030,35608576,4092747,4182210,37311665,4043378,45765480,45765477,4059191,37311890,37312577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37312036,37312035,4041685,37312031,37312030,35608576,4092747,4182210,37311665,4043378,45765480,45765477,4059191,37311890,37312577)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37312036,37312035,4041685,37312031,37312030,35608576,4092747,4182210,37311665,4043378,45765480,45765477,4059191,37311890,37312577) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37312036,37312035,4041685,37312031,37312030,35608576,4092747,4182210,37311665,4043378,45765480,45765477,4059191,37311890,37312577)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37116464,37017549,4244346,377788,372610,37017247) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37116464,37017549,4244346,377788,372610,37017247)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (715997,757627,701322,733523,836654) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (715997,757627,701322,733523,836654)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (715997,757627,701322,733523,836654) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (715997,757627,701322,733523,836654)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4169175,40491929,40490379,4167593,4013636,4125350,4019823) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4169175,40491929,40490379,4167593,4013636,4125350,4019823)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4169175,40491929,40490379,4167593,4013636,4125350,4019823) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4169175,40491929,40490379,4167593,4013636,4125350,4019823)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4304008,440424,132342,4173136,4024716) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4304008,440424,132342,4173136,4024716)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4304008,440424,132342,4173136,4024716) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4304008,440424,132342,4173136,4024716)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443605,44782710,380701) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443605,44782710,380701)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443605,44782710,380701) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443605,44782710,380701)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372924,375557,376713,443454,441874,439847,43530727,42538062,4148906,432923) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372924,375557,376713,443454,441874,439847,43530727,42538062,4148906,432923)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376713,443454,439847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376713,443454,439847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (379778) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (379778)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (379778) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (379778)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C; @@ -830,49 +830,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/256.sql b/inst/sql/sql_server/256.sql index c8510b42..fe13d466 100644 --- a/inst/sql/sql_server/256.sql +++ b/inst/sql/sql_server/256.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4091559) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4091559)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4091559) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4091559)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4048018,36716396) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4048018,36716396)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4048018,36716396) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4048018,36716396)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44782781,43530623,381316) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44782781,43530623,381316)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44782781,43530623,381316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44782781,43530623,381316)) ) I ) C; @@ -295,49 +295,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/257.sql b/inst/sql/sql_server/257.sql index b9bf6fb8..2f677e06 100644 --- a/inst/sql/sql_server/257.sql +++ b/inst/sql/sql_server/257.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9203)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45890237,4163685) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45890237,4163685)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45890237,4163685) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45890237,4163685)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9203,9201,9202,262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9203,9201,9202,262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9203,9201,9202,262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9203,9201,9202,262,9203)) ) I ) C; @@ -288,49 +288,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/258.sql b/inst/sql/sql_server/258.sql index f684184c..f47ff91e 100644 --- a/inst/sql/sql_server/258.sql +++ b/inst/sql/sql_server/258.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441202,442038) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441202,442038)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442038) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442038)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/259.sql b/inst/sql/sql_server/259.sql index 7e5486c7..d6133cb2 100644 --- a/inst/sql/sql_server/259.sql +++ b/inst/sql/sql_server/259.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (762509,441202,762513,762515,762511,762514,4148381) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (762509,441202,762513,762515,762511,762514,4148381)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (762509,441202,762513,762515,762511,762514,4148381) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (762509,441202,762513,762515,762511,762514,4148381)) ) I ) C; @@ -125,49 +125,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/260.sql b/inst/sql/sql_server/260.sql index c32b08df..f0b847a8 100644 --- a/inst/sql/sql_server/260.sql +++ b/inst/sql/sql_server/260.sql @@ -7,56 +7,56 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4296653,45766114) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4296653,45766114)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4296653,45766114) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4296653,45766114)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (312327,4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (312327,4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (312327) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (312327)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4295129) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4295129)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4295129) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4295129)) ) I ) C; @@ -511,49 +511,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/261.sql b/inst/sql/sql_server/261.sql index f53f1f88..835bc153 100644 --- a/inst/sql/sql_server/261.sql +++ b/inst/sql/sql_server/261.sql @@ -7,77 +7,77 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4296653,45766114) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4296653,45766114)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4296653,45766114) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4296653,45766114)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (312327,4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (312327,4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (312327) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (312327)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4295129) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4295129)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4295129) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4295129)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4296653,45766114,314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4296653,45766114,314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4296653,45766114,314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4296653,45766114,314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -935,49 +935,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/262.sql b/inst/sql/sql_server/262.sql index fb5ad0f1..5daf79a1 100644 --- a/inst/sql/sql_server/262.sql +++ b/inst/sql/sql_server/262.sql @@ -7,89 +7,89 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4296653,45766114) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4296653,45766114)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4296653,45766114) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4296653,45766114)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4295129) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4295129)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4295129) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4295129)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4296653,45766114,314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4296653,45766114,314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4296653,45766114,314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4296653,45766114,314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315296,4231426,4161973) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315296,4231426,4161973)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315296,4231426,4161973) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315296,4231426,4161973)) ) I ) C; @@ -1078,49 +1078,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/263.sql b/inst/sql/sql_server/263.sql index aac00250..6f431f4a 100644 --- a/inst/sql/sql_server/263.sql +++ b/inst/sql/sql_server/263.sql @@ -7,55 +7,55 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4296653,45766114) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4296653,45766114)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4296653,45766114) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4296653,45766114)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4295129) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4295129)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4295129) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4295129)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315296,4231426,4161973,4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315296,4231426,4161973,4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315296,4231426,4161973,4329847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315296,4231426,4161973,4329847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4296653,45766114,314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4296653,45766114,314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4296653,45766114,314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4296653,45766114,314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -697,49 +697,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/264.sql b/inst/sql/sql_server/264.sql index aca90cba..ed352bce 100644 --- a/inst/sql/sql_server/264.sql +++ b/inst/sql/sql_server/264.sql @@ -7,287 +7,287 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36714559,4275257,46269816,46269835,4058714) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36714559,4275257,46269816,46269835,4058714)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36714559,4275257,46269816,46269835,4058714) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36714559,4275257,46269816,46269835,4058714)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4291005,196029,43021368,4093637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4291005,196029,43021368,4093637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4291005,196029,43021368,4093637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4291005,196029,43021368,4093637)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390,46269836,37396401,4331292,45769564) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,46269836,37396401,4331292,45769564)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4064161,196463,46269816) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4064161,196463,46269816)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4064161,196463,46269816) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4064161,196463,46269816)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267417,4058695) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267417,4058695)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267417,4058695) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267417,4058695)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4059290) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4059290)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059290) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059290)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4026131) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4026131) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4026131,40484532) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131,40484532)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4026131,40484532) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131,40484532)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4326594,4058725,4113557,194984) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4326594,4058725,4113557,194984)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4326594,4058725,4113557,194984) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4326594,4058725,4113557,194984)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435506) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435506)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435506) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435506)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340383,201343,46269835) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340383,201343,46269835)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340383,46269835) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340383,46269835)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4229262) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4229262)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4229262) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4229262)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200762) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200762)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200762) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200762)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4163735) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163735)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4163735) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163735)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4135822) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135822)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4135822) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135822)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029488,4245975,40481531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029488,4245975,40481531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4029488,4245975) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4029488,4245975)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200528) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200528)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200528) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200528)) ) I ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4055224,4055223) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4055223)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4055224,4055223) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4055223)) ) I ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192680,46270558) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192680,46270558)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192680,46270558) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192680,46270558)) ) I ) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537742) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537742)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42537742) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42537742)) ) I ) C UNION ALL SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4130518) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130518)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4130518) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4130518)) ) I ) C UNION ALL SELECT 27 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4143915,4058694) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4143915,4058694)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4143915,4058694) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4143915,4058694)) ) I ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4337543) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4337543)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4337543) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4337543)) ) I ) C UNION ALL SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4212540) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4212540)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4212540) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4212540)) ) I ) C; @@ -940,49 +940,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/265.sql b/inst/sql/sql_server/265.sql index 2350c1c7..11ee0f7f 100644 --- a/inst/sql/sql_server/265.sql +++ b/inst/sql/sql_server/265.sql @@ -7,276 +7,276 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4291005,196029,43021368,4093637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4291005,196029,43021368,4093637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4291005,196029,43021368,4093637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4291005,196029,43021368,4093637)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390,46269836,37396401,4331292,45769564) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,46269836,37396401,4331292,45769564)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4064161,196463,46269816) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4064161,196463,46269816)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4064161,196463,46269816) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4064161,196463,46269816)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267417,4058695) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267417,4058695)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267417,4058695) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267417,4058695)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4059290) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4059290)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059290) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059290)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4026131) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4026131) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4026131,40484532) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131,40484532)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4026131,40484532) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131,40484532)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4326594,4058725,4113557,194984) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4326594,4058725,4113557,194984)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4326594,4058725,4113557,194984) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4326594,4058725,4113557,194984)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435506) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435506)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435506) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435506)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340383,201343,46269835) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340383,201343,46269835)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340383,46269835) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340383,46269835)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4229262) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4229262)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4229262) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4229262)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200762) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200762)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200762) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200762)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4163735) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163735)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4163735) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163735)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4135822) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135822)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4135822) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135822)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029488,4245975) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029488,4245975)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4029488,4245975) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4029488,4245975)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200528) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200528)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200528) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200528)) ) I ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4055224,4055223) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4055223)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4055224,4055223) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4055223)) ) I ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192680,46270558) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192680,46270558)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192680,46270558) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192680,46270558)) ) I ) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537742) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537742)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42537742) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42537742)) ) I ) C UNION ALL SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4130518) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130518)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4130518) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4130518)) ) I ) C UNION ALL SELECT 27 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4143915,4058694) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4143915,4058694)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4143915,4058694) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4143915,4058694)) ) I ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4337543) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4337543)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4337543) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4337543)) ) I ) C UNION ALL SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4212540) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4212540)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4212540) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4212540)) ) I ) C; @@ -1663,49 +1663,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/267.sql b/inst/sql/sql_server/267.sql index 657d2b30..c424d096 100644 --- a/inst/sql/sql_server/267.sql +++ b/inst/sql/sql_server/267.sql @@ -7,110 +7,110 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193782,443611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193782,443611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193782,443611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193782,443611)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4146536,4032243,2617342) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4146536,4032243,2617342)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4146536,2617342) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4146536,2617342)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197320,444044) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197320,444044)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197320,444044) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197320,444044)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196455,37116834) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196455,37116834)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196455,37116834) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196455,37116834)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1314323) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1314323)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1314323) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1314323)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43009086,1304643,1301125) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43009086,1304643,1301125)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43009086,1304643,1301125) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43009086,1304643,1301125)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42539502,4324887) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42539502,4324887)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42539502,4324887) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42539502,4324887)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46271022,45768812) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46271022,45768812)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46271022,45768812) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46271022,45768812)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443611,193782) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443611,193782)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443611,193782) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443611,193782)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -527,49 +527,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 7, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 7, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,7,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,7,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/268.sql b/inst/sql/sql_server/268.sql index 8ce4d308..743692b5 100644 --- a/inst/sql/sql_server/268.sql +++ b/inst/sql/sql_server/268.sql @@ -7,110 +7,110 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193782,443611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193782,443611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193782,443611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193782,443611)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4146536,4032243,2617342) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4146536,4032243,2617342)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4146536,2617342) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4146536,2617342)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197320,444044) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197320,444044)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197320,444044) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197320,444044)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196455,37116834) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196455,37116834)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196455,37116834) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196455,37116834)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1314323) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1314323)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1314323) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1314323)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43009086,1304643,1301125) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43009086,1304643,1301125)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43009086,1304643,1301125) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43009086,1304643,1301125)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42539502,4324887) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42539502,4324887)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42539502,4324887) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42539502,4324887)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46271022,45768812) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46271022,45768812)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46271022,45768812) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46271022,45768812)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443611,193782) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443611,193782)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443611,193782) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443611,193782)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -529,49 +529,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 7, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 7, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,7,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,7,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/269.sql b/inst/sql/sql_server/269.sql index d5224c56..0047d086 100644 --- a/inst/sql/sql_server/269.sql +++ b/inst/sql/sql_server/269.sql @@ -7,89 +7,89 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193782,443611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193782,443611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193782,443611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193782,443611)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4146536,4032243,2617342) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4146536,4032243,2617342)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4146536,2617342) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4146536,2617342)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197320,444044) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197320,444044)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197320,444044) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197320,444044)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196455,37116834) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196455,37116834)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196455,37116834) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196455,37116834)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1314323) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1314323)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1314323) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1314323)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43009086,1304643,1301125) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43009086,1304643,1301125)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43009086,1304643,1301125) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43009086,1304643,1301125)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42539502,4324887) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42539502,4324887)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42539502,4324887) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42539502,4324887)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531)) ) I ) C; @@ -533,49 +533,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/27.sql b/inst/sql/sql_server/27.sql index 740065b2..cb7ae9e4 100644 --- a/inst/sql/sql_server/27.sql +++ b/inst/sql/sql_server/27.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317009,4235703,4279553) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317009,4235703,4279553)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317009,4235703,4279553) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317009,4235703,4279553)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (255573,258780) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (255573,258780)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (255573,258780) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (255573,258780)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21603292) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21603292)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21603292) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21603292)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42483138,36812530,40727741,1356123,40142665,46234463,1356111,1356108,40142703,21603292,41143395,36421291,40745353,36787954,21158944,36894458,21090035,36883710,35130061,40142784,42479684,35133500,783228,40142910,36787269,1356143,35135829,1356140,44120754,41205832,40924271,40986621,40830666,41205663,40861866,43274335,43263324,43621601,1356154,1356147,40143105,41080205,41174344,41111516,1356173,1356180,40144087,43134418,40727834,36811735,40861768,40727839,35150375,44081619,1356217,1356215,1356101,42800913,40143326,36894464,44817882,40143337,42941603,35146684,35160199,44029688,42481922,36813480,36812414,1356244,40143708,21150787,44082127,41206083,1356138,1356136,40152662,40156382,41048760,40754973,21089505,40144020,36882733,42482744,40144024,37592046,43532281,43291091,41267401,40144035,35147990,35149212,40144037,40223712,42629522,42480849,1356191,1356187,44107471,43145868,43259954,1356196,35145836,42479568,1356211,44055847,44081467,1356120,40182262,40746100,21174574,45775117,41205378,40152687,40167702,35158799,783089,1356189,35152712) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42483138,36812530,40727741,1356123,40142665,46234463,1356111,1356108,40142703,21603292,41143395,36421291,40745353,36787954,21158944,36894458,21090035,36883710,35130061,40142784,42479684,35133500,783228,40142910,36787269,1356143,35135829,1356140,44120754,41205832,40924271,40986621,40830666,41205663,40861866,43274335,43263324,43621601,1356154,1356147,40143105,41080205,41174344,41111516,1356173,1356180,40144087,43134418,40727834,36811735,40861768,40727839,35150375,44081619,1356217,1356215,1356101,42800913,40143326,36894464,44817882,40143337,42941603,35146684,35160199,44029688,42481922,36813480,36812414,1356244,40143708,21150787,44082127,41206083,1356138,1356136,40152662,40156382,41048760,40754973,21089505,40144020,36882733,42482744,40144024,37592046,43532281,43291091,41267401,40144035,35147990,35149212,40144037,40223712,42629522,42480849,1356191,1356187,44107471,43145868,43259954,1356196,35145836,42479568,1356211,44055847,44081467,1356120,40182262,40746100,21174574,45775117,41205378,40152687,40167702,35158799,783089,1356189,35152712)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42483138,36812530,40727741,1356123,40142665,46234463,1356111,1356108,40142703,21603292,41143395,36421291,40745353,36787954,21158944,36894458,21090035,36883710,35130061,40142784,42479684,35133500,783228,40142910,36787269,1356143,35135829,1356140,44120754,41205832,40924271,40986621,40830666,41205663,40861866,43274335,43263324,43621601,1356154,1356147,40143105,41080205,41174344,41111516,1356173,1356180,40144087,43134418,40727834,36811735,40861768,40727839,35150375,44081619,1356217,1356215,1356101,42800913,40143326,36894464,44817882,40143337,42941603,35146684,35160199,44029688,42481922,36813480,36812414,1356244,40143708,21150787,44082127,41206083,1356138,1356136,40152662,40156382,41048760,40754973,21089505,40144020,36882733,42482744,40144024,37592046,43532281,43291091,41267401,40144035,35147990,35149212,40144037,40223712,42629522,42480849,1356191,1356187,44107471,43145868,43259954,1356196,35145836,42479568,1356211,44055847,44081467,1356120,40182262,40746100,21174574,45775117,41205378,40152687,40167702,35158799,783089,1356189,35152712) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42483138,36812530,40727741,1356123,40142665,46234463,1356111,1356108,40142703,21603292,41143395,36421291,40745353,36787954,21158944,36894458,21090035,36883710,35130061,40142784,42479684,35133500,783228,40142910,36787269,1356143,35135829,1356140,44120754,41205832,40924271,40986621,40830666,41205663,40861866,43274335,43263324,43621601,1356154,1356147,40143105,41080205,41174344,41111516,1356173,1356180,40144087,43134418,40727834,36811735,40861768,40727839,35150375,44081619,1356217,1356215,1356101,42800913,40143326,36894464,44817882,40143337,42941603,35146684,35160199,44029688,42481922,36813480,36812414,1356244,40143708,21150787,44082127,41206083,1356138,1356136,40152662,40156382,41048760,40754973,21089505,40144020,36882733,42482744,40144024,37592046,43532281,43291091,41267401,40144035,35147990,35149212,40144037,40223712,42629522,42480849,1356191,1356187,44107471,43145868,43259954,1356196,35145836,42479568,1356211,44055847,44081467,1356120,40182262,40746100,21174574,45775117,41205378,40152687,40167702,35158799,783089,1356189,35152712)) ) I ) C; @@ -323,49 +323,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/270.sql b/inst/sql/sql_server/270.sql index 8d554b6c..99fde03d 100644 --- a/inst/sql/sql_server/270.sql +++ b/inst/sql/sql_server/270.sql @@ -7,122 +7,122 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435503,438869,4082253,4125630,4168772,44783626) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435503,438869,4082253,4125630,4168772,44783626)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435503,438869,4082253,4125630,4168772,44783626) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435503,438869,4082253,4125630,4168772,44783626)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3000963,3027484) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3000963,3027484)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3000963,3027484) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3000963,3027484)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4133980,4133151) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4133980,4133151)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4133980,4133151) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4133980,4133151)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4144746) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4144746)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4144746) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4144746)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4009785,4122936) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4009785,4122936)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4009785,4122936) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4009785,4122936)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (28396) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (28396)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (28396) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (28396)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4301410) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4301410)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4301410) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4301410)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4024671,40481388) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4024671,40481388)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4024671,40481388) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4024671,40481388)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) ) I ) C; @@ -642,49 +642,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/271.sql b/inst/sql/sql_server/271.sql index a237846a..d238a6a0 100644 --- a/inst/sql/sql_server/271.sql +++ b/inst/sql/sql_server/271.sql @@ -7,77 +7,77 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435503,438869,4082253,4125630,4168772,44783626) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435503,438869,4082253,4125630,4168772,44783626)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435503,438869,4082253,4125630,4168772,44783626) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435503,438869,4082253,4125630,4168772,44783626)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35624756,4183718,4064310,4125630,439777,37018722,4295183,4028717,44783626,4006467)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3000963,3027484) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3000963,3027484)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3000963,3027484) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3000963,3027484)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4133980,4133151) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4133980,4133151)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4133980,4133151) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4133980,4133151)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3009542,3034976,3028813,3019909,3050746,42869584,3023314,42869588,4016241,4151358,4097621,2212641,2212642)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4144746,28396,4009785,4122936,4301410,444238) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4144746,28396,4009785,4122936,4301410,444238)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4144746,28396,4009785,4122936,4301410,444238) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4144746,28396,4009785,4122936,4301410,444238)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4149681,25518,4121113,4098749,4125628,4296149,4252396,4262394,4121114,40484201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4149681,25518,4121113,4098749,4125628,4296149,4252396,4262394,4121114,40484201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4149681,25518,4121113,4098749,4125628,4296149,4252396,4262394,4121114,40484201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4149681,25518,4121113,4098749,4125628,4296149,4252396,4262394,4121114,40484201)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -1073,49 +1073,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/273.sql b/inst/sql/sql_server/273.sql index 68d463a9..25ac30d1 100644 --- a/inst/sql/sql_server/273.sql +++ b/inst/sql/sql_server/273.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4103295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4103295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4103295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4103295)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C; @@ -172,49 +172,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 7, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 7, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,7,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,7,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/274.sql b/inst/sql/sql_server/274.sql index 9d576fe6..6a518182 100644 --- a/inst/sql/sql_server/274.sql +++ b/inst/sql/sql_server/274.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4103295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4103295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4103295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4103295)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4249449,45766194,4141660,44790742,44790539,4232320,44790740,4143106,44790741,4317150,4146438,4173781,4143834,321042,4141039,44790722,4175137,43530918,3663210,4296246,44790723,4233618,4077195,4353741,4204802,4064455) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4249449,45766194,4141660,44790742,44790539,4232320,44790740,4143106,44790741,4317150,4146438,4173781,4143834,321042,4141039,44790722,4175137,43530918,3663210,4296246,44790723,4233618,4077195,4353741,4204802,4064455)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4249449,45766194,4141660,44790742,44790539,4232320,44790740,4143106,44790741,4317150,4146438,4173781,4143834,321042,4141039,44790722,4175137,43530918,3663210,4296246,44790723,4233618,4077195,4353741,4204802,4064455) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4249449,45766194,4141660,44790742,44790539,4232320,44790740,4143106,44790741,4317150,4146438,4173781,4143834,321042,4141039,44790722,4175137,43530918,3663210,4296246,44790723,4233618,4077195,4353741,4204802,4064455)) ) I ) C; @@ -225,49 +225,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/275.sql b/inst/sql/sql_server/275.sql index 164398a8..ec6abbae 100644 --- a/inst/sql/sql_server/275.sql +++ b/inst/sql/sql_server/275.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4088349,4141527,37017188) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4088349,4141527,37017188)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4088349,4141527,37017188) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4088349,4141527,37017188)) ) I ) C; @@ -88,7 +88,7 @@ WHERE Results.ordinal = 1 -- date offset strategy select event_id, person_id, - case when DATEADD(day,0,end_date) > op_end_date then op_end_date else DATEADD(day,0,end_date) end as end_date + case when DATEADD(day,3,end_date) > op_end_date then op_end_date else DATEADD(day,3,end_date) end as end_date INTO #strategy_ends from #included_events; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/276.sql b/inst/sql/sql_server/276.sql index 64182bb3..c90908a3 100644 --- a/inst/sql/sql_server/276.sql +++ b/inst/sql/sql_server/276.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (377556,4338523) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (377556,4338523)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (377556,4338523) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (377556,4338523)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4285569,443767,437541,381290,4134613,436134) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4285569,443767,437541,381290,4134613,436134)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4285569,443767,437541,381290,4134613,436134) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4285569,443767,437541,381290,4134613,436134)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435656) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435656)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435656) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435656)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -217,7 +217,7 @@ FROM ( -- date offset strategy select event_id, person_id, - case when DATEADD(day,0,end_date) > op_end_date then op_end_date else DATEADD(day,0,end_date) end as end_date + case when DATEADD(day,90,start_date) > op_end_date then op_end_date else DATEADD(day,90,start_date) end as end_date INTO #strategy_ends from #included_events; @@ -240,49 +240,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/277.sql b/inst/sql/sql_server/277.sql index db3084d4..0568fa27 100644 --- a/inst/sql/sql_server/277.sql +++ b/inst/sql/sql_server/277.sql @@ -7,111 +7,111 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (377889,40484010,434046,379831,433496,40659147) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (377889,40484010,434046,379831,433496,40659147)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (377889,40484010,434046,379831,433496,40659147) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (377889,40484010,434046,379831,433496,40659147)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376793)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4101079) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4101079)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4101079) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4101079)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4113411) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4113411)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4113411) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4113411)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4134565) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4134565)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4134565) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4134565)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4335747) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4335747)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4335747) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4335747)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374053) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374053)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374053) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374053)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376793)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21605042,21601607,21605199,21605164,21602728,21600652) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21605042,21601607,21605199,21605164,21602728,21600652)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21605042,21601607,21605199,21605164,21602728,21600652) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21605042,21601607,21605199,21605164,21602728,21600652)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4060499,4125350,4086261,2799719) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4060499,4125350,4086261,2799719)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4060499,4125350,4086261,2799719) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4060499,4125350,4086261,2799719)) ) I ) C; @@ -761,49 +761,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/278.sql b/inst/sql/sql_server/278.sql index 49ce1f5b..772ef97c 100644 --- a/inst/sql/sql_server/278.sql +++ b/inst/sql/sql_server/278.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (38000975,4137649,4240653,4170962,38000976,4264836,4128327,40761360,4202478) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (38000975,4137649,4240653,4170962,38000976,4264836,4128327,40761360,4202478)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (38000975,4137649,4240653,4170962,38000976,4264836,4128327,40761360,4202478) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (38000975,4137649,4240653,4170962,38000976,4264836,4128327,40761360,4202478)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3005359,4301067,436096,194696,37110250,377853,4132891,378145,4143863,4168068,4269430) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3005359,4301067,436096,194696,37110250,377853,4132891,378145,4143863,4168068,4269430)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3005359,4301067,436096,194696,37110250,377853,4132891,378145,4143863,4168068,4269430) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3005359,4301067,436096,194696,37110250,377853,4132891,378145,4143863,4168068,4269430)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436096) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436096)) ) I ) C; @@ -199,49 +199,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/279.sql b/inst/sql/sql_server/279.sql index 689980e6..8c5a80c7 100644 --- a/inst/sql/sql_server/279.sql +++ b/inst/sql/sql_server/279.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (194133,134736,4145006,4134121,4151985) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (194133,134736,4145006,4134121,4151985)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (194133,4145006,4134121,4151985) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (194133,4145006,4134121,4151985)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/280.sql b/inst/sql/sql_server/280.sql index d2359b4b..3140fb54 100644 --- a/inst/sql/sql_server/280.sql +++ b/inst/sql/sql_server/280.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200219,197981,4241033) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200219,197981,4241033)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200219,197981,4241033) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200219,197981,4241033)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/281.sql b/inst/sql/sql_server/281.sql index 7775e720..6bbc482a 100644 --- a/inst/sql/sql_server/281.sql +++ b/inst/sql/sql_server/281.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197381,4306292,194491) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197381,4306292,194491)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197381,194491) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197381,194491)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/282.sql b/inst/sql/sql_server/282.sql index 19d3559d..67db420f 100644 --- a/inst/sql/sql_server/282.sql +++ b/inst/sql/sql_server/282.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (77074,73553) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (77074,73553)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (77074,73553) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (77074,73553)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/283.sql b/inst/sql/sql_server/283.sql index ff2d3565..43ab40b3 100644 --- a/inst/sql/sql_server/283.sql +++ b/inst/sql/sql_server/283.sql @@ -7,67 +7,67 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (194997,198806) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (194997,198806)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (194997,198806) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (194997,198806)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4104162) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4104162)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4104162) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4104162)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200680) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200680)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200680) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200680)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4028373) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4028373)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4028373) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4028373)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46274013) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46274013)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46274013) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46274013)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200445) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200445)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200445) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200445)) ) I ) C; @@ -462,49 +462,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/284.sql b/inst/sql/sql_server/284.sql index ec6e2762..be4647b9 100644 --- a/inst/sql/sql_server/284.sql +++ b/inst/sql/sql_server/284.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4289908,314383,318072,44782774,4138837,4149913) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4289908,314383,318072,44782774,4138837,4149913)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4289908,314383,318072,44782774,4138837,4149913) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4289908,314383,318072,44782774,4138837,4149913)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/285.sql b/inst/sql/sql_server/285.sql index 29d4f164..1dbb40d6 100644 --- a/inst/sql/sql_server/285.sql +++ b/inst/sql/sql_server/285.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4289908,314383,318072,44782774,4138837,4149913) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4289908,314383,318072,44782774,4138837,4149913)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4289908,314383,318072,44782774,4138837,4149913) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4289908,314383,318072,44782774,4138837,4149913)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4289908,318072,46273471,4299935,319720,4272028,4093494,312543) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4289908,318072,46273471,4299935,319720,4272028,4093494,312543)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4289908,318072,46273471,4299935,319720,4272028,4093494,312543) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4289908,318072,46273471,4299935,319720,4272028,4093494,312543)) ) I ) C; @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/287.sql b/inst/sql/sql_server/287.sql index d2e3bfb1..f10f27ab 100644 --- a/inst/sql/sql_server/287.sql +++ b/inst/sql/sql_server/287.sql @@ -7,51 +7,51 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443904) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443904)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443904) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443904)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437113,79908,138965,4236484,135526) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437113,79908,138965,4236484,135526)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437113,79908,138965,4236484,135526) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437113,79908,138965,4236484,135526)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (138965) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (138965)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437113,79908,4262178) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437113,79908,4262178)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437113,79908,4262178) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437113,79908,4262178)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (380995) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (380995)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (380995) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (380995)) ) I ) C; @@ -411,49 +411,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 365, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 365, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,365,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,365,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/288.sql b/inst/sql/sql_server/288.sql index 92eb26b4..b0258f66 100644 --- a/inst/sql/sql_server/288.sql +++ b/inst/sql/sql_server/288.sql @@ -7,67 +7,67 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443238,201820,442793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443238,201820,442793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443238,201820,442793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443238,201820,442793)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40484648,201254,435216,201254,195771,4058243,761051) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40484648,201254,435216,201254,195771,4058243,761051)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40484648,201254,435216,201254,195771,4058243,761051) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40484648,201254,435216,201254,195771,4058243,761051)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195771) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195771)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (195771) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (195771)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37392407,4184637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37392407,4184637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37392407,4184637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37392407,4184637)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21600744) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21600744)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21600744) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21600744)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40484649,42689695,765533,43531006,765650,45770986,201254,45768456,40484648,4128019,435216)) ) I ) C; @@ -363,49 +363,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/289.sql b/inst/sql/sql_server/289.sql index cd649548..0543023e 100644 --- a/inst/sql/sql_server/289.sql +++ b/inst/sql/sql_server/289.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21600248) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21600248)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21600248) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21600248)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (989878) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (989878)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (989878) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (989878)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45890325,45890400,2107068,4051932,4051938,2313791,2756785,4019139,2615874,2615956,2615795,2615958,2615957,2615796,2100778,2313929) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45890325,45890400,2107068,4051932,4051938,2313791,2756785,4019139,2615874,2615956,2615795,2615958,2615957,2615796,2100778,2313929)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45890325,45890400,2107068,4051932,4051938,2313791,2756785,4019139,2615874,2615956,2615795,2615958,2615957,2615796) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45890325,45890400,2107068,4051932,4051938,2313791,2756785,4019139,2615874,2615956,2615795,2615958,2615957,2615796)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44784217,38001137,38001138,4169095,4103295,4171903,441139,442289,435937) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44784217,38001137,38001138,4169095,4103295,4171903,441139,442289,435937)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44784217,38001137,38001138,4103295,4171903,441139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44784217,38001137,38001138,4103295,4171903,441139)) ) I ) C; @@ -186,49 +186,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/29.sql b/inst/sql/sql_server/29.sql index e87691d6..4392a5a4 100644 --- a/inst/sql/sql_server/29.sql +++ b/inst/sql/sql_server/29.sql @@ -7,199 +7,199 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (201254,435216,40484648) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (201254,435216,40484648)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (201254,435216,40484648) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (201254,435216,40484648)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4297650,4334806,46273442,2107572,2107561,4058299,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4297650,4334806,46273442,2107572,2107561,4058299,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4297650,4334806,46273442,2107572,2107561,4058299,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4297650,4334806,46273442,2107572,2107561,4058299,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (75614,140168) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (75614,140168)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (75614,140168) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (75614,140168)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81931) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81931)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81931) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81931)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374919) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374919)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374919) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374919)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46273369,4145240,257628) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46273369,4145240,257628)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46273369,4145240,257628) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46273369,4145240,257628)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443394) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443394)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443394) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443394)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4232076) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4232076)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4232076) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4232076)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254443) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254443)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254443) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254443)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (135215) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (135215)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (135215) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (135215)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (76685,432893) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (76685,432893)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (76685,432893) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (76685,432893)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4137275) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4137275)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4137275) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4137275)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432295)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (194992) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (194992)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (194992) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (194992)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46272236,4331739,441928,255304,4105026,46270482,134442,4063582) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46272236,4331739,441928,255304,4105026,46270482,134442,4063582)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46272236,4331739,441928,255304,4105026,46270482,134442,4063582) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46272236,4331739,441928,255304,4105026,46270482,134442,4063582)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (438688,4262578,45772123,4105005) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (438688,4262578,45772123,4105005)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (438688,4262578,45772123,4105005) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (438688,4262578,45772123,4105005)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46273477,81893,46273478,46274082,46269952,4116142) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46273477,81893,46273478,46274082,46269952,4116142)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46273477,81893,46273478,46274082,46269952,4116142) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46273477,81893,46273478,46274082,46269952,4116142)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (201606,46269889,46269999) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (201606,46269889,46269999)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (201606,46269889,46269999) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (201606,46269889,46269999)) ) I ) C; @@ -571,49 +571,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/290.sql b/inst/sql/sql_server/290.sql index 4f5eaa11..8c0a5bc7 100644 --- a/inst/sql/sql_server/290.sql +++ b/inst/sql/sql_server/290.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4192649,4142479,37016109,442300,133444,4130018,140673,138384,37016342) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4192649,4142479,37016109,442300,133444,4130018,140673,138384,37016342)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4192649,4142479,37016109,442300,133444,4130018) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4192649,4142479,37016109,442300,133444,4130018)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (133728,4132435,4220368,134312,137820,140062,4231548,4309027,4099205,4030049) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (133728,4132435,4220368,134312,137820,140062,4231548,4309027,4099205,4030049)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (133728,4132435,4220368,134312,137820,140062,4231548,4309027,4099205,4030049) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (133728,4132435,4220368,134312,137820,140062,4231548,4309027,4099205,4030049)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1501700) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1501700)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1501700) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1501700)) ) I ) C; @@ -252,49 +252,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/291.sql b/inst/sql/sql_server/291.sql index 84c27987..7876dcb4 100644 --- a/inst/sql/sql_server/291.sql +++ b/inst/sql/sql_server/291.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (78474) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (78474)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (78474) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (78474)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4163601,3177496) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163601,3177496)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4163601,3177496) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163601,3177496)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4012374,80767,73819) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4012374,80767,73819)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4012374,80767,73819) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4012374,80767,73819)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42733286,2102719) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42733286,2102719)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42733286,2102719) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42733286,2102719)) ) I ) C; @@ -236,49 +236,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/292.sql b/inst/sql/sql_server/292.sql index 474c7aea..e935b722 100644 --- a/inst/sql/sql_server/292.sql +++ b/inst/sql/sql_server/292.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) ) I ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029488,4245975,40481531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029488,4245975,40481531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4029488,4245975) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4029488,4245975)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -185,49 +185,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/293.sql b/inst/sql/sql_server/293.sql index ef5762f9..89b59c82 100644 --- a/inst/sql/sql_server/293.sql +++ b/inst/sql/sql_server/293.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4055224,4245975,194990,4058696,4029488,4337543,40481531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4245975,194990,4058696,4029488,4337543,40481531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4055224,4245975,4058696,4029488,4337543,40481531) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4245975,4058696,4029488,4337543,40481531)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (137977) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (137977)) ) I ) C UNION ALL SELECT 34 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262,262) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262,262)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262,262) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262,262)) ) I ) C; @@ -306,49 +306,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/294.sql b/inst/sql/sql_server/294.sql index 60a1e8d6..f2960213 100644 --- a/inst/sql/sql_server/294.sql +++ b/inst/sql/sql_server/294.sql @@ -7,286 +7,286 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4291005,196029,43021368,4093637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4291005,196029,43021368,4093637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4291005,196029,43021368,4093637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4291005,196029,43021368,4093637)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390,46269836,37396401,4331292,45769564) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,46269836,37396401,4331292,45769564)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4064161,196463,46269816) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4064161,196463,46269816)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4064161,196463,46269816) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4064161,196463,46269816)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267417,4058695) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267417,4058695)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267417,4058695) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267417,4058695)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4059290) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4059290)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059290) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059290)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4026131) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4026131) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4026131,40484532) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131,40484532)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4026131,40484532) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131,40484532)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4326594,4058725,4113557,194984) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4326594,4058725,4113557,194984)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4326594,4058725,4113557,194984) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4326594,4058725,4113557,194984)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435506) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435506)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435506) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435506)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340383,201343,46269835) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340383,201343,46269835)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340383,46269835) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340383,46269835)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4229262) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4229262)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4229262) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4229262)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200762) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200762)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200762) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200762)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4163735) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163735)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4163735) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163735)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4135822) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135822)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4135822) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135822)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200528) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200528)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200528) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200528)) ) I ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4055224,4055223) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4055223)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4055224,4055223) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4055223)) ) I ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192680,46270558) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192680,46270558)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192680,46270558) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192680,46270558)) ) I ) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537742) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537742)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42537742) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42537742)) ) I ) C UNION ALL SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4130518) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130518)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4130518) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4130518)) ) I ) C UNION ALL SELECT 27 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4143915,4058694) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4143915,4058694)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4143915,4058694) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4143915,4058694)) ) I ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4337543) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4337543)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4337543) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4337543)) ) I ) C UNION ALL SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4212540) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4212540)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4212540) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4212540)) ) I ) C UNION ALL SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4055224,4245975,194990,4058696,4029488,4337543,40481531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4245975,194990,4058696,4029488,4337543,40481531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4055224,4245975,4058696,4029488,4337543,40481531) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4245975,4058696,4029488,4337543,40481531)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -1674,49 +1674,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/295.sql b/inst/sql/sql_server/295.sql index 2d7b34fe..5eab09ac 100644 --- a/inst/sql/sql_server/295.sql +++ b/inst/sql/sql_server/295.sql @@ -7,287 +7,287 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4291005,196029,43021368,4093637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4291005,196029,43021368,4093637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4291005,196029,43021368,4093637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4291005,196029,43021368,4093637)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390,46269836,37396401,4331292,45769564) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,46269836,37396401,4331292,45769564)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4064161,196463,46269816) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4064161,196463,46269816)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4064161,196463,46269816) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4064161,196463,46269816)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267417,4058695) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267417,4058695)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267417,4058695) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267417,4058695)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4059290) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4059290)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059290) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059290)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4026131) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4026131) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4026131,40484532) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131,40484532)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4026131,40484532) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131,40484532)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4326594,4058725,4113557,194984) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4326594,4058725,4113557,194984)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4326594,4058725,4113557,194984) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4326594,4058725,4113557,194984)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435506) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435506)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435506) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435506)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340383,201343,46269835) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340383,201343,46269835)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340383,46269835) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340383,46269835)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4229262) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4229262)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4229262) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4229262)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200762) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200762)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200762) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200762)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4163735) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163735)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4163735) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163735)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4135822) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135822)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4135822) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135822)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029488,4245975) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029488,4245975)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4029488,4245975) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4029488,4245975)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200528) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200528)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200528) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200528)) ) I ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4055224,4055223) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4055223)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4055224,4055223) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4055223)) ) I ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192680,46270558) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192680,46270558)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192680,46270558) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192680,46270558)) ) I ) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537742) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537742)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42537742) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42537742)) ) I ) C UNION ALL SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4130518) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130518)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4130518) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4130518)) ) I ) C UNION ALL SELECT 27 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4143915,4058694) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4143915,4058694)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4143915,4058694) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4143915,4058694)) ) I ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4337543) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4337543)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4337543) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4337543)) ) I ) C UNION ALL SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4212540) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4212540)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4212540) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4212540)) ) I ) C; @@ -1674,49 +1674,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/296.sql b/inst/sql/sql_server/296.sql index bce0514f..6a55da27 100644 --- a/inst/sql/sql_server/296.sql +++ b/inst/sql/sql_server/296.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443904) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443904)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443904) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443904)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437113,79908,138965,4236484,135526) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437113,79908,138965,4236484,135526)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437113,79908,138965,4236484,135526) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437113,79908,138965,4236484,135526)) ) I ) C; @@ -209,49 +209,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/298.sql b/inst/sql/sql_server/298.sql index c39231fd..6c1a95a0 100644 --- a/inst/sql/sql_server/298.sql +++ b/inst/sql/sql_server/298.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3037678,4217034) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3037678,4217034)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3037678,4217034) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3037678,4217034)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4189531,4059452,37018346,37018350,37018354,37018347,37018355,37018352,37018349,37018348,37018351,37018353,36674698,4128064,4125958,4056462,4128061,4263367,3184561,433257,195289,195314,42597049) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4189531,4059452,37018346,37018350,37018354,37018347,37018355,37018352,37018349,37018348,37018351,37018353,36674698,4128064,4125958,4056462,4128061,4263367,3184561,433257,195289,195314,42597049)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4189531,4059452,37018346,37018350,37018354,37018347,37018355,37018352,37018349,37018348,37018351,37018353,36674698,4128064,4125958,4056462,4128061,4263367,3184561,433257,195289,195314,42597049) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4189531,4059452,37018346,37018350,37018354,37018347,37018355,37018352,37018349,37018348,37018351,37018353,36674698,4128064,4125958,4056462,4128061,4263367,3184561,433257,195289,195314,42597049)) UNION select distinct cr.concept_id_1 as concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4059452) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4059452)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059452) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059452)) ) C join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.concept_id_2 and cr.relationship_id = 'Maps to' and cr.invalid_reason IS NULL @@ -42,55 +42,55 @@ join @vocabulary_database_schema.concept_relationship cr on C.concept_id = cr.co ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192279,192359,193016,193253,194385,195314,195834,201313,261071,444044,4103224,4128219,4263367,46271022) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192279,192359,193016,193253,194385,195314,195834,201313,261071,444044,4103224,4128219,4263367,46271022)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192279,192359,193016,194385,195314,195834,201313,261071,444044,4103224,4128219,4263367,46271022) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192279,192359,193016,194385,195314,195834,201313,261071,444044,4103224,4128219,4263367,46271022)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197930,43530912,4066005,37116834,195014,195289,195737,45769152,193782,443611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197930,43530912,4066005,37116834,195014,195289,195737,45769152,193782,443611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197930,43530912,4066005,37116834,195014,195289,195737,45769152,193782,443611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197930,43530912,4066005,37116834,195014,195289,195737,45769152,193782,443611)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42733186,4032243,42733185,4206254,313232,4019967,2617462,2108276,4197217,2108277,438624,710018,44786436,2313999,4300839,44782924,4026915,40483083,2617461,2108302,4214705,42733188,38003418,43021985,2108035,46270032,4289454,710017,2617440,443212,38003417) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42733186,4032243,42733185,4206254,313232,4019967,2617462,2108276,4197217,2108277,438624,710018,44786436,2313999,4300839,44782924,4026915,40483083,2617461,2108302,4214705,42733188,38003418,43021985,2108035,46270032,4289454,710017,2617440,443212,38003417)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42733186,4032243,42733185,4206254,313232,4019967,2617462,2108276,4197217,2108277,438624,710018,44786436,2313999,4300839,44782924,4026915,40483083,2617461,2108302,4214705,42733188,38003418,43021985,2108035,46270032,4289454,710017,2617440,443212,38003417) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42733186,4032243,42733185,4206254,313232,4019967,2617462,2108276,4197217,2108277,438624,710018,44786436,2313999,4300839,44782924,4026915,40483083,2617461,2108302,4214705,42733188,38003418,43021985,2108035,46270032,4289454,710017,2617440,443212,38003417)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437038) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437038)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437038) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437038)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4189531,4059452,37018349,37018353,37018347,37018355,37018351,37018348,37018352,37018346,37018354,37018350) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4189531,4059452,37018349,37018353,37018347,37018355,37018351,37018348,37018352,37018346,37018354,37018350)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4189531,4059452,37018349,37018353,37018347,37018355,37018351,37018348,37018352,37018346,37018354,37018350) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4189531,4059452,37018349,37018353,37018347,37018355,37018351,37018348,37018352,37018346,37018354,37018350)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -404,49 +404,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/299.sql b/inst/sql/sql_server/299.sql index 56dea317..363e0e9b 100644 --- a/inst/sql/sql_server/299.sql +++ b/inst/sql/sql_server/299.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112183,4103703,192671,4245614,2108900,28779,2002608,443530,2108878,4202064) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112183,4103703,192671,4245614,2108900,28779,2002608,443530,2108878,4202064)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112183,4103703,192671,4245614,2108900,28779,2002608,443530,2108878,4202064) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112183,4103703,192671,4245614,2108900,28779,2002608,443530,2108878,4202064)) ) I ) C; @@ -125,49 +125,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/3.sql b/inst/sql/sql_server/3.sql index 9c12b679..e4c0406a 100644 --- a/inst/sql/sql_server/3.sql +++ b/inst/sql/sql_server/3.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254761,4089228) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254761,4089228)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254761,4089228) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254761,4089228)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/30.sql b/inst/sql/sql_server/30.sql index 3e6b1c50..40606282 100644 --- a/inst/sql/sql_server/30.sql +++ b/inst/sql/sql_server/30.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43012518,1836191,1782521,1763204,1749301,1759455,1777417,19035953,1710446,1750074,1726228,19078424,19135812,19010337,19026710,1742253,1716903,1736887,1798476,36879076,1797258,1778262,1709170,1790868) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43012518,1836191,1782521,1763204,1749301,1759455,1777417,19035953,1710446,1750074,1726228,19078424,19135812,19010337,19026710,1742253,1716903,1736887,1798476,36879076,1797258,1778262,1709170,1790868)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43012518,1836191,1782521,1763204,1749301,1759455,1777417,19035953,1710446,1750074,1726228,19078424,19135812,19010337,19026710,1742253,1716903,1736887,1798476,36879076,1797258,1778262,1709170,1790868) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43012518,1836191,1782521,1763204,1749301,1759455,1777417,19035953,1710446,1750074,1726228,19078424,19135812,19010337,19026710,1742253,1716903,1736887,1798476,36879076,1797258,1778262,1709170,1790868)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45771090,4112923,4090539,258675,432541,434557) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45771090,4112923,4090539,258675,432541,434557)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45771090,4112923,4090539,258675,432541) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45771090,4112923,4090539,258675,432541)) ) I ) C; @@ -172,49 +172,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/300.sql b/inst/sql/sql_server/300.sql index c73a5d5d..51bd0873 100644 --- a/inst/sql/sql_server/300.sql +++ b/inst/sql/sql_server/300.sql @@ -7,35 +7,35 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4302555,45757810) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4302555,45757810)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4302555) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4302555)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443213,437611,4067106,433260) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443213,437611,4067106,433260)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4010333,4141640,42536667,4172857,37110086,4059477,4144036) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4010333,4141640,42536667,4172857,37110086,4059477,4144036)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4010333,4141640,42536667,4172857,37110086,4059477,4144036) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4010333,4141640,42536667,4172857,37110086,4059477,4144036)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44827910,35209473) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44827910,35209473)) ) I ) C; @@ -345,49 +345,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/304.sql b/inst/sql/sql_server/304.sql index 74f34ca7..2bf2c447 100644 --- a/inst/sql/sql_server/304.sql +++ b/inst/sql/sql_server/304.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (377252) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (377252)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (377252) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (377252)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/305.sql b/inst/sql/sql_server/305.sql index 9ab26c43..5eae0aaf 100644 --- a/inst/sql/sql_server/305.sql +++ b/inst/sql/sql_server/305.sql @@ -7,51 +7,51 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376938)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (380975) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (380975)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4131769,4307728) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4131769,4307728)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4131769,4307728) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4131769,4307728)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (380975) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (380975)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (380975) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (380975)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (377889) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (377889)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (377889) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (377889)) ) I ) C; @@ -305,49 +305,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/306.sql b/inst/sql/sql_server/306.sql index 907cd002..9bb0b2e6 100644 --- a/inst/sql/sql_server/306.sql +++ b/inst/sql/sql_server/306.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112970)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112970) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112970)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376938)) ) I ) C; @@ -165,49 +165,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/307.sql b/inst/sql/sql_server/307.sql index 998259a0..102a2ff2 100644 --- a/inst/sql/sql_server/307.sql +++ b/inst/sql/sql_server/307.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4216000) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4216000)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4216000) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4216000)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376938)) ) I ) C; @@ -165,49 +165,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/308.sql b/inst/sql/sql_server/308.sql index d3f1d72f..df293843 100644 --- a/inst/sql/sql_server/308.sql +++ b/inst/sql/sql_server/308.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376938)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311324) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311324)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311324) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311324)) ) I ) C; @@ -291,49 +291,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/31.sql b/inst/sql/sql_server/31.sql index 481dfc7a..aef12c73 100644 --- a/inst/sql/sql_server/31.sql +++ b/inst/sql/sql_server/31.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443392,4144289) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443392,4144289)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443392,4144289) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443392,4144289)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,4111921,4179242) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,4111921,4179242)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,4111921,4179242) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,4111921,4179242)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -136,49 +136,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/311.sql b/inst/sql/sql_server/311.sql index dea1be0f..c32b91fc 100644 --- a/inst/sql/sql_server/311.sql +++ b/inst/sql/sql_server/311.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440087,46273509) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440087,46273509)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440087,46273509) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440087,46273509)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4305841,73754,436100,436962,43530739) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4305841,73754,436100,436962,43530739)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4305841,73754,436100,436962,43530739) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4305841,73754,436100,436962,43530739)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/318.sql b/inst/sql/sql_server/318.sql index 82254de8..5c51210f 100644 --- a/inst/sql/sql_server/318.sql +++ b/inst/sql/sql_server/318.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) ) I ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029488,4245975,40481531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029488,4245975,40481531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4029488,4245975) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4029488,4245975)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -185,49 +185,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/32.sql b/inst/sql/sql_server/32.sql index 0aadf96b..adfe90c2 100644 --- a/inst/sql/sql_server/32.sql +++ b/inst/sql/sql_server/32.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3038553,36304833) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3038553,36304833)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3038553,36304833) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3038553,36304833)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4215968,4176962) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4215968,4176962)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4215968,4176962) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4215968,4176962)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3025315,4099154,3013762,3027492,3023166) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3025315,4099154,3013762,3027492,3023166)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3025315,4099154,3013762,3027492,3023166) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3025315,4099154,3013762,3027492,3023166)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4264825) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4264825)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4264825) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4264825)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -202,49 +202,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/324.sql b/inst/sql/sql_server/324.sql index e004a042..d20e39e3 100644 --- a/inst/sql/sql_server/324.sql +++ b/inst/sql/sql_server/324.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (38000975,4137649,4240653,35611566,4170962,38000976,3005359,4264836,4128327,4301067,40761360,4202478) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (38000975,4137649,4240653,35611566,4170962,38000976,3005359,4264836,4128327,4301067,40761360,4202478)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (38000975,4137649,4240653,35611566,4170962,38000976,3005359,4264836,4128327,4301067,40761360,4202478) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (38000975,4137649,4240653,35611566,4170962,38000976,3005359,4264836,4128327,4301067,40761360,4202478)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4269430) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4269430)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4269430) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4269430)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -214,49 +214,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/325.sql b/inst/sql/sql_server/325.sql index 5189ec59..1cc23559 100644 --- a/inst/sql/sql_server/325.sql +++ b/inst/sql/sql_server/325.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9203,9201,9202,262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9203,9201,9202,262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9203,9201,9202,262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9203,9201,9202,262,9203)) ) I ) C; @@ -288,49 +288,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/327.sql b/inst/sql/sql_server/327.sql index 11d0350e..87156c8d 100644 --- a/inst/sql/sql_server/327.sql +++ b/inst/sql/sql_server/327.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4226263) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4226263)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4226263) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4226263)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/328.sql b/inst/sql/sql_server/328.sql index 39972d90..3bc85d0d 100644 --- a/inst/sql/sql_server/328.sql +++ b/inst/sql/sql_server/328.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314754,4084392,4239051) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314754,4084392,4239051)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314754,4084392,4239051) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314754,4084392,4239051)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/33.sql b/inst/sql/sql_server/33.sql index df4c21f4..08b100d3 100644 --- a/inst/sql/sql_server/33.sql +++ b/inst/sql/sql_server/33.sql @@ -7,17 +7,17 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37312036,37312035,4041685,37312031,37312030,35608576,4092747,4182210,37311665,4043378,45765480,45765477,37311890,37312577,4059191) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37312036,37312035,4041685,37312031,37312030,35608576,4092747,4182210,37311665,4043378,45765480,45765477,37311890,37312577,4059191)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37312036,37312035,4041685,37312031,37312030,35608576,4092747,4182210,37311665,4043378,45765480,45765477,37311890,37312577,4059191) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37312036,37312035,4041685,37312031,37312030,35608576,4092747,4182210,37311665,4043378,45765480,45765477,37311890,37312577,4059191)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37116464,37017549,4244346,377788,372610,37017247) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37116464,37017549,4244346,377788,372610,37017247)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -117,49 +117,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/330.sql b/inst/sql/sql_server/330.sql index 415877c3..3304cf40 100644 --- a/inst/sql/sql_server/330.sql +++ b/inst/sql/sql_server/330.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4023572) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4023572)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4023572) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4023572)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/331.sql b/inst/sql/sql_server/331.sql index 3c70a030..08a35b05 100644 --- a/inst/sql/sql_server/331.sql +++ b/inst/sql/sql_server/331.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43021132,4103559,37110340) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43021132,4103559,37110340)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43021132,4103559,37110340) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43021132,4103559,37110340)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/332.sql b/inst/sql/sql_server/332.sql index ad83f82c..516822f2 100644 --- a/inst/sql/sql_server/332.sql +++ b/inst/sql/sql_server/332.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (38000975,4137649,4240653,35611566,4170962,38000976,3005359,4264836,4128327,4301067,40761360,4202478) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (38000975,4137649,4240653,35611566,4170962,38000976,3005359,4264836,4128327,4301067,40761360,4202478)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (38000975,4137649,4240653,35611566,4170962,38000976,3005359,4264836,4128327,4301067,40761360,4202478) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (38000975,4137649,4240653,35611566,4170962,38000976,3005359,4264836,4128327,4301067,40761360,4202478)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436096) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436096)) ) I ) C; @@ -172,49 +172,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/333.sql b/inst/sql/sql_server/333.sql index f771506a..16dd9480 100644 --- a/inst/sql/sql_server/333.sql +++ b/inst/sql/sql_server/333.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726,4261832,46269818,4083236) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726,4261832,46269818,4083236)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726,4261832,46269818,4083236) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726,4261832,46269818,4083236)) ) I ) C; @@ -139,49 +139,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/334.sql b/inst/sql/sql_server/334.sql index 09f908a7..c29a2639 100644 --- a/inst/sql/sql_server/334.sql +++ b/inst/sql/sql_server/334.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317009,4235703,4279553) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317009,4235703,4279553)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317009,4235703,4279553) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317009,4235703,4279553)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42483138,36812530,40727741,1356123,40142665,46234463,1356111,1356108,40142703,21603292,41143395,36421291,40745353,36787954,21158944,36894458,21090035,36883710,35130061,40142784,42479684,35133500,783228,40142910,36787269,1356143,35135829,1356140,44120754,41205832,40924271,40986621,40830666,41205663,40861866,43274335,43263324,43621601,1356154,1356147,40143105,41080205,41174344,41111516,1356173,1356180,40144087,43134418,40727834,36811735,40861768,40727839,35150375,44081619,1356217,1356215,1356101,42800913,40143326,36894464,44817882,40143337,42941603,35146684,35160199,44029688,42481922,36813480,36812414,1356244,40143708,21150787,44082127,41206083,1356138,1356136,40152662,40156382,41048760,40754973,21089505,40144020,36882733,42482744,40144024,37592046,43532281,43291091,41267401,40144035,35147990,35149212,40144037,40223712,42629522,42480849,1356191,1356187,44107471,43145868,43259954,1356196,35145836,42479568,1356211,44055847,44081467,1356120,40182262,40746100,21174574,45775117,41205378,40152687,40167702,35158799,783089,1356189,35152712) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42483138,36812530,40727741,1356123,40142665,46234463,1356111,1356108,40142703,21603292,41143395,36421291,40745353,36787954,21158944,36894458,21090035,36883710,35130061,40142784,42479684,35133500,783228,40142910,36787269,1356143,35135829,1356140,44120754,41205832,40924271,40986621,40830666,41205663,40861866,43274335,43263324,43621601,1356154,1356147,40143105,41080205,41174344,41111516,1356173,1356180,40144087,43134418,40727834,36811735,40861768,40727839,35150375,44081619,1356217,1356215,1356101,42800913,40143326,36894464,44817882,40143337,42941603,35146684,35160199,44029688,42481922,36813480,36812414,1356244,40143708,21150787,44082127,41206083,1356138,1356136,40152662,40156382,41048760,40754973,21089505,40144020,36882733,42482744,40144024,37592046,43532281,43291091,41267401,40144035,35147990,35149212,40144037,40223712,42629522,42480849,1356191,1356187,44107471,43145868,43259954,1356196,35145836,42479568,1356211,44055847,44081467,1356120,40182262,40746100,21174574,45775117,41205378,40152687,40167702,35158799,783089,1356189,35152712)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42483138,36812530,40727741,1356123,40142665,46234463,1356111,1356108,40142703,21603292,41143395,36421291,40745353,36787954,21158944,36894458,21090035,36883710,35130061,40142784,42479684,35133500,783228,40142910,36787269,1356143,35135829,1356140,44120754,41205832,40924271,40986621,40830666,41205663,40861866,43274335,43263324,43621601,1356154,1356147,40143105,41080205,41174344,41111516,1356173,1356180,40144087,43134418,40727834,36811735,40861768,40727839,35150375,44081619,1356217,1356215,1356101,42800913,40143326,36894464,44817882,40143337,42941603,35146684,35160199,44029688,42481922,36813480,36812414,1356244,40143708,21150787,44082127,41206083,1356138,1356136,40152662,40156382,41048760,40754973,21089505,40144020,36882733,42482744,40144024,37592046,43532281,43291091,41267401,40144035,35147990,35149212,40144037,40223712,42629522,42480849,1356191,1356187,44107471,43145868,43259954,1356196,35145836,42479568,1356211,44055847,44081467,1356120,40182262,40746100,21174574,45775117,41205378,40152687,40167702,35158799,783089,1356189,35152712) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42483138,36812530,40727741,1356123,40142665,46234463,1356111,1356108,40142703,21603292,41143395,36421291,40745353,36787954,21158944,36894458,21090035,36883710,35130061,40142784,42479684,35133500,783228,40142910,36787269,1356143,35135829,1356140,44120754,41205832,40924271,40986621,40830666,41205663,40861866,43274335,43263324,43621601,1356154,1356147,40143105,41080205,41174344,41111516,1356173,1356180,40144087,43134418,40727834,36811735,40861768,40727839,35150375,44081619,1356217,1356215,1356101,42800913,40143326,36894464,44817882,40143337,42941603,35146684,35160199,44029688,42481922,36813480,36812414,1356244,40143708,21150787,44082127,41206083,1356138,1356136,40152662,40156382,41048760,40754973,21089505,40144020,36882733,42482744,40144024,37592046,43532281,43291091,41267401,40144035,35147990,35149212,40144037,40223712,42629522,42480849,1356191,1356187,44107471,43145868,43259954,1356196,35145836,42479568,1356211,44055847,44081467,1356120,40182262,40746100,21174574,45775117,41205378,40152687,40167702,35158799,783089,1356189,35152712)) ) I ) C; @@ -223,49 +223,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/335.sql b/inst/sql/sql_server/335.sql index 006b2792..d6ccc594 100644 --- a/inst/sql/sql_server/335.sql +++ b/inst/sql/sql_server/335.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441542,4029621) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441542,4029621)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441542,4029621) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441542,4029621)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/339.sql b/inst/sql/sql_server/339.sql index e8c13fba..7fe68099 100644 --- a/inst/sql/sql_server/339.sql +++ b/inst/sql/sql_server/339.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317002) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317002)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317002) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317002)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/34.sql b/inst/sql/sql_server/34.sql index 8e79c7aa..225920e6 100644 --- a/inst/sql/sql_server/34.sql +++ b/inst/sql/sql_server/34.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316866,42709887) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316866,42709887)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316866,42709887) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316866,42709887)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/340.sql b/inst/sql/sql_server/340.sql index 706684a7..4c39e22f 100644 --- a/inst/sql/sql_server/340.sql +++ b/inst/sql/sql_server/340.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140214,40481101,4082588,4297361) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140214,40481101,4082588,4297361)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140214,40481101,4082588,4297361) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140214,40481101,4082588,4297361)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45766714,4134132,140168,4148876,4029043,432791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45766714,4134132,140168,4148876,4029043,432791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45766714,4134132,140168,4148876,4029043,432791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45766714,4134132,140168,4148876,4029043,432791)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/341.sql b/inst/sql/sql_server/341.sql index a767e49c..62b4a049 100644 --- a/inst/sql/sql_server/341.sql +++ b/inst/sql/sql_server/341.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4152505,376961) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4152505,376961)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4152505,376961) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4152505,376961)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/342.sql b/inst/sql/sql_server/342.sql index 6918c36e..5b2dbf0d 100644 --- a/inst/sql/sql_server/342.sql +++ b/inst/sql/sql_server/342.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197672) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197672)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197672) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197672)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/343.sql b/inst/sql/sql_server/343.sql index e8f024c6..80f98157 100644 --- a/inst/sql/sql_server/343.sql +++ b/inst/sql/sql_server/343.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4118980,4101350) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4118980,4101350)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4118980,4101350) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4118980,4101350)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/344.sql b/inst/sql/sql_server/344.sql index 5e02ed97..39eebac2 100644 --- a/inst/sql/sql_server/344.sql +++ b/inst/sql/sql_server/344.sql @@ -7,78 +7,78 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201,262) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201,262)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201,262) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201,262)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9203)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45890237,4163685) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45890237,4163685)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45890237,4163685) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45890237,4163685)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9202) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9202)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9202) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9202)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (581380,8756,8782) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (581380,8756,8782)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (581380,8756,8782) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (581380,8756,8782)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (38004693,38004453,8716,581477,8977,8761,38003620) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (38004693,38004453,8716,581477,8977,8761,38003620)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (38004693,38004453,8716,581477,8977,8761,38003620) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (38004693,38004453,8716,581477,8977,8761,38003620)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667)) ) I ) C; @@ -641,49 +641,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/346.sql b/inst/sql/sql_server/346.sql index 4d7e4611..6dc0e085 100644 --- a/inst/sql/sql_server/346.sql +++ b/inst/sql/sql_server/346.sql @@ -7,67 +7,67 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201,262) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201,262)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201,262) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201,262)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9203)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45890237,4163685) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45890237,4163685)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45890237,4163685) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45890237,4163685)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9202) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9202)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9202) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9202)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (581380,8756,8782) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (581380,8756,8782)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (581380,8756,8782) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (581380,8756,8782)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667)) ) I ) C; @@ -435,49 +435,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/347.sql b/inst/sql/sql_server/347.sql index 19475a74..5dc08de1 100644 --- a/inst/sql/sql_server/347.sql +++ b/inst/sql/sql_server/347.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2614667,2614672,2614668,38003303,2614664,38003301,37399454,2614669,2614670,2614680) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2614667,2614672,2614668,38003303,2614664,38003301,37399454,2614669,2614670,2614680)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2614667,2614672,2614668,38003303,2614664,38003301,37399454,2614669,2614670,2614680) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2614667,2614672,2614668,38003303,2614664,38003301,37399454,2614669,2614670,2614680)) ) I ) C; @@ -153,49 +153,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/348.sql b/inst/sql/sql_server/348.sql index c7d39061..cbcd03d3 100644 --- a/inst/sql/sql_server/348.sql +++ b/inst/sql/sql_server/348.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437038) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437038)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437038) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437038)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/349.sql b/inst/sql/sql_server/349.sql index cec70ef9..ac5a788b 100644 --- a/inst/sql/sql_server/349.sql +++ b/inst/sql/sql_server/349.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4103703,4245614,28779,443530) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4103703,4245614,28779,443530)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4103703,4245614,28779,443530) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4103703,4245614,28779,443530)) ) I ) C; @@ -125,49 +125,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/35.sql b/inst/sql/sql_server/35.sql index 490e115d..37461c6b 100644 --- a/inst/sql/sql_server/35.sql +++ b/inst/sql/sql_server/35.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (194385,46271022,192279,4263367,261071,201313,4103224,193253,195314,192359,45768812) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (194385,46271022,192279,4263367,261071,201313,4103224,193253,195314,192359,45768812)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (194385,46271022,192279,4263367,261071,201313,4103224,195314,192359,45768812) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (194385,46271022,192279,4263367,261071,201313,4103224,195314,192359,45768812)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930,197320) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930,197320)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930,197320) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930,197320)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4090651,4032243,45889365,4027133,38003431) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4090651,4032243,45889365,4027133,38003431)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4090651,4032243,45889365,4027133,38003431) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4090651,4032243,45889365,4027133,38003431)) ) I ) C; @@ -377,49 +377,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/350.sql b/inst/sql/sql_server/350.sql index 10877a70..4a257644 100644 --- a/inst/sql/sql_server/350.sql +++ b/inst/sql/sql_server/350.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (261687) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (261687)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (261687) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (261687)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/351.sql b/inst/sql/sql_server/351.sql index 98e50eb2..872798f4 100644 --- a/inst/sql/sql_server/351.sql +++ b/inst/sql/sql_server/351.sql @@ -7,56 +7,56 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537251) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537251)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42537251) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42537251)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4283893) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4283893)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4283893) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4283893)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4209223) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4209223)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4209223) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4209223)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4116650,40480483) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4116650,40480483)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4116650,40480483) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4116650,40480483)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442983) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442983)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442983) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442983)) ) I ) C; @@ -322,49 +322,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/352.sql b/inst/sql/sql_server/352.sql index 36a12f4d..5828fd07 100644 --- a/inst/sql/sql_server/352.sql +++ b/inst/sql/sql_server/352.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4083666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4083666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4083666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4083666)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/353.sql b/inst/sql/sql_server/353.sql index c3448c96..f82a51c6 100644 --- a/inst/sql/sql_server/353.sql +++ b/inst/sql/sql_server/353.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (379019) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (379019)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (379019) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (379019)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/354.sql b/inst/sql/sql_server/354.sql index eafc4991..c780fbc7 100644 --- a/inst/sql/sql_server/354.sql +++ b/inst/sql/sql_server/354.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4195085,4320791,260427) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4195085,4320791,260427)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4195085,4320791,260427) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4195085,4320791,260427)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/355.sql b/inst/sql/sql_server/355.sql index 6176e79e..fb1122cc 100644 --- a/inst/sql/sql_server/355.sql +++ b/inst/sql/sql_server/355.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4173027,24969,761988) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4173027,24969,761988)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4173027,24969,761988) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4173027,24969,761988)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/356.sql b/inst/sql/sql_server/356.sql index e62fd4d5..a0a97016 100644 --- a/inst/sql/sql_server/356.sql +++ b/inst/sql/sql_server/356.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4051478,4049224,4082142,4096682) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4051478,4049224,4082142,4096682)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4051478,4049224,4082142,4096682) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4051478,4049224,4082142,4096682)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45768610,4262407,4055146,45772698) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45768610,4262407,4055146,45772698)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45768610,4262407,4055146,45772698) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45768610,4262407,4055146,45772698)) ) I ) C; @@ -150,49 +150,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/357.sql b/inst/sql/sql_server/357.sql index 05f3b4cf..0d8fa9f9 100644 --- a/inst/sql/sql_server/357.sql +++ b/inst/sql/sql_server/357.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4078925) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4078925)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4078925) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4078925)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/358.sql b/inst/sql/sql_server/358.sql index ca7b674c..6ee92f41 100644 --- a/inst/sql/sql_server/358.sql +++ b/inst/sql/sql_server/358.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4256228) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4256228)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4256228) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4256228)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314971)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314971) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314971)) ) I ) C; @@ -174,49 +174,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/359.sql b/inst/sql/sql_server/359.sql index 7dd5e85f..664d378d 100644 --- a/inst/sql/sql_server/359.sql +++ b/inst/sql/sql_server/359.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4256228,319049) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4256228,319049)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (319049) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (319049)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/36.sql b/inst/sql/sql_server/36.sql index bfb5638c..78595ed6 100644 --- a/inst/sql/sql_server/36.sql +++ b/inst/sql/sql_server/36.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4276586,44783356,439727) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4276586,44783356,439727)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4276586,44783356,439727) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4276586,44783356,439727)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013105,432554) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013105,432554)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013105,432554) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013105,432554)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1736971,1789428,1727223,964008,42874220,1756831,1747157,1724869,43560385,35200446,1738135,42874212,1703069,1717002,1758536,1736829,42544019,1711523,1704183,1738170,1787101,1715472,1769389,1712889,40238930,1748921,1746244,1781406,1710281,1736999,1724827,1710612) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1736971,1789428,1727223,964008,42874220,1756831,1747157,1724869,43560385,35200446,1738135,42874212,1703069,1717002,1758536,1736829,42544019,1711523,1704183,1738170,1787101,1715472,1769389,1712889,40238930,1748921,1746244,1781406,1710281,1736999,1724827,1710612)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1736971,1789428,1727223,964008,42874220,1756831,1747157,1724869,43560385,35200446,1738135,42874212,1703069,1717002,1758536,1736829,42544019,1711523,1704183,1738170,1787101,1715472,1769389,1712889,40238930,1748921,1746244,1781406,1710281,1736999,1724827,1710612) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1736971,1789428,1727223,964008,42874220,1756831,1747157,1724869,43560385,35200446,1738135,42874212,1703069,1717002,1758536,1736829,42544019,1711523,1704183,1738170,1787101,1715472,1769389,1712889,40238930,1748921,1746244,1781406,1710281,1736999,1724827,1710612)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013105) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013105)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013105) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013105)) ) I ) C; @@ -373,49 +373,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/360.sql b/inst/sql/sql_server/360.sql index 816274e1..0e1f587b 100644 --- a/inst/sql/sql_server/360.sql +++ b/inst/sql/sql_server/360.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254061,38001034,38001033,38001032) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254061,38001034,38001033,38001032)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254061,38001034,38001033,38001032) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254061,38001034,38001033,38001032)) ) I ) C; @@ -125,49 +125,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/361.sql b/inst/sql/sql_server/361.sql index d9f3053a..714f6ea6 100644 --- a/inst/sql/sql_server/361.sql +++ b/inst/sql/sql_server/361.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (73754) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (73754)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (73754) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (73754)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/362.sql b/inst/sql/sql_server/362.sql index cb11ae9d..9ace9b2e 100644 --- a/inst/sql/sql_server/362.sql +++ b/inst/sql/sql_server/362.sql @@ -7,89 +7,89 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193782,443611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193782,443611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193782,443611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193782,443611)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4146536,4032243,2617342) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4146536,4032243,2617342)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4146536,2617342) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4146536,2617342)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197320,444044) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197320,444044)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197320,444044) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197320,444044)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196455,37116834) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196455,37116834)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196455,37116834) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196455,37116834)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1314323) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1314323)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1314323) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1314323)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43009086,1304643,1301125) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43009086,1304643,1301125)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43009086,1304643,1301125) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43009086,1304643,1301125)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42539502,4324887) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42539502,4324887)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42539502,4324887) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42539502,4324887)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531)) ) I ) C; @@ -537,49 +537,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/363.sql b/inst/sql/sql_server/363.sql index 7dd1ceca..2bd14371 100644 --- a/inst/sql/sql_server/363.sql +++ b/inst/sql/sql_server/363.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (72404) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (72404)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (72404) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (72404)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/364.sql b/inst/sql/sql_server/364.sql index 22969da4..9492b1ba 100644 --- a/inst/sql/sql_server/364.sql +++ b/inst/sql/sql_server/364.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435524) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435524)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435524) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435524)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/365.sql b/inst/sql/sql_server/365.sql index 083dfc87..1e8ea1f8 100644 --- a/inst/sql/sql_server/365.sql +++ b/inst/sql/sql_server/365.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197684) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197684)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197684) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197684)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4021780) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4021780)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4021780) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4021780)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4082798) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4082798)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4082798) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4082798)) ) I ) C; @@ -246,49 +246,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/366.sql b/inst/sql/sql_server/366.sql index 9a036672..5241f5f9 100644 --- a/inst/sql/sql_server/366.sql +++ b/inst/sql/sql_server/366.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (28060) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (28060)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (28060) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (28060)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4226263) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4226263)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4226263) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4226263)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437779) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437779)) ) I ) C; @@ -215,49 +215,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/367.sql b/inst/sql/sql_server/367.sql index 8c4f3e52..8b838c0e 100644 --- a/inst/sql/sql_server/367.sql +++ b/inst/sql/sql_server/367.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (257007) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (257007)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (257007) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (257007)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4320791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4320791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4320791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4320791)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42536525) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42536525)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42536525) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42536525)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36683564) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36683564)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36683564) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36683564)) ) I ) C; @@ -271,49 +271,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/368.sql b/inst/sql/sql_server/368.sql index b0d12ee1..e8bd5ab3 100644 --- a/inst/sql/sql_server/368.sql +++ b/inst/sql/sql_server/368.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4283893) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4283893)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4283893) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4283893)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/369.sql b/inst/sql/sql_server/369.sql index 7ea76c46..25f9fb8f 100644 --- a/inst/sql/sql_server/369.sql +++ b/inst/sql/sql_server/369.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43021227) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43021227)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43021227) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43021227)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/37.sql b/inst/sql/sql_server/37.sql index 9f7e069a..efba0757 100644 --- a/inst/sql/sql_server/37.sql +++ b/inst/sql/sql_server/37.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4196134,44806379,4340380,44813294,197494,439672) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4196134,44806379,4340380,44813294,197494,439672)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4196134,44806379,4340380,44813294,197494,439672) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4196134,44806379,4340380,44813294,197494,439672)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/370.sql b/inst/sql/sql_server/370.sql index 1397aa72..dd01cc7f 100644 --- a/inst/sql/sql_server/370.sql +++ b/inst/sql/sql_server/370.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43021227,36683564) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43021227,36683564)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43021227,36683564) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43021227,36683564)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/371.sql b/inst/sql/sql_server/371.sql index abbf6ab2..159745de 100644 --- a/inst/sql/sql_server/371.sql +++ b/inst/sql/sql_server/371.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442774) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442774)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442774) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442774)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3654996) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3654996)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3654996) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3654996)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4200298,4144753,4176923) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4200298,4144753,4176923)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4200298,4144753,4176923) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4200298,4144753,4176923)) ) I ) C; @@ -220,49 +220,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/372.sql b/inst/sql/sql_server/372.sql index 4438ac96..e97e5260 100644 --- a/inst/sql/sql_server/372.sql +++ b/inst/sql/sql_server/372.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372328) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372328)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (372328) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (372328)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4226263) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4226263)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4226263) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4226263)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437779) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437779)) ) I ) C; @@ -128,49 +128,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/373.sql b/inst/sql/sql_server/373.sql index e79b812c..255af29d 100644 --- a/inst/sql/sql_server/373.sql +++ b/inst/sql/sql_server/373.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439777,4280354) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439777,4280354)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4280354) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4280354)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3000963,3027484) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3000963,3027484)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3000963,3027484) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3000963,3027484)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (135214,3656046,4030270,4058607,4067525,4071736,4130681,45765440)) ) I ) C; @@ -241,49 +241,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/374.sql b/inst/sql/sql_server/374.sql index 5c86877d..1251c042 100644 --- a/inst/sql/sql_server/374.sql +++ b/inst/sql/sql_server/374.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440069) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440069)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440069) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440069)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/375.sql b/inst/sql/sql_server/375.sql index f10f3ba1..c406db15 100644 --- a/inst/sql/sql_server/375.sql +++ b/inst/sql/sql_server/375.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4145627,4319446) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4145627,4319446)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4145627,4319446) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4145627,4319446)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/376.sql b/inst/sql/sql_server/376.sql index 5833e59d..bd028fcc 100644 --- a/inst/sql/sql_server/376.sql +++ b/inst/sql/sql_server/376.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4177600) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4177600)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4177600) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4177600)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/377.sql b/inst/sql/sql_server/377.sql index 1c0491df..c8b03f0e 100644 --- a/inst/sql/sql_server/377.sql +++ b/inst/sql/sql_server/377.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4155911) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4155911)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4155911) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4155911)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/378.sql b/inst/sql/sql_server/378.sql index f198f32e..acf3223b 100644 --- a/inst/sql/sql_server/378.sql +++ b/inst/sql/sql_server/378.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4307580) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4307580)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4307580) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4307580)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/379.sql b/inst/sql/sql_server/379.sql index 117a06fc..5c0c18d4 100644 --- a/inst/sql/sql_server/379.sql +++ b/inst/sql/sql_server/379.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4118793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4118793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4118793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4118793)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/38.sql b/inst/sql/sql_server/38.sql index ae07e956..08023561 100644 --- a/inst/sql/sql_server/38.sql +++ b/inst/sql/sql_server/38.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (321588,443563) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (321588,443563)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (321588,443563) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (321588,443563)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/380.sql b/inst/sql/sql_server/380.sql index ea9ea774..efbd0a61 100644 --- a/inst/sql/sql_server/380.sql +++ b/inst/sql/sql_server/380.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (137977) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (137977)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (137977) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (137977)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/381.sql b/inst/sql/sql_server/381.sql index 5fd0e3b0..c128e204 100644 --- a/inst/sql/sql_server/381.sql +++ b/inst/sql/sql_server/381.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4169287) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4169287)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4169287) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4169287)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (133835) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (133835)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (133835) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (133835)) ) I ) C; @@ -136,49 +136,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/382.sql b/inst/sql/sql_server/382.sql index d1df846c..b37f3744 100644 --- a/inst/sql/sql_server/382.sql +++ b/inst/sql/sql_server/382.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (135618) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (135618)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (135618) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (135618)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4169287) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4169287)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4169287) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4169287)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140214) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140214)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140214) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140214)) ) I ) C; @@ -246,49 +246,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/383.sql b/inst/sql/sql_server/383.sql index f2f89795..600221e4 100644 --- a/inst/sql/sql_server/383.sql +++ b/inst/sql/sql_server/383.sql @@ -7,61 +7,61 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45766714) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45766714)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029043,434119,435613,378425,381859,37110555,4030291) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029043,434119,435613,378425,381859,37110555,4030291)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4029043,434119,435613,378425,381859,37110555,4030291) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4029043,434119,435613,378425,381859,37110555,4030291)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (134438,37311784) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (134438,37311784)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (134438,37311784) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (134438,37311784)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (920458,1518254,975125,1550557,903963,1551099,1506270) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (920458,1518254,975125,1550557,903963,1551099,1506270)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (920458,1518254,975125,1550557,903963,1551099,1506270) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (920458,1518254,975125,1550557,903963,1551099,1506270)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (133835,42596380) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (133835,42596380)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (133835) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (133835)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4197912) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4197912)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4197912) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4197912)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -364,49 +364,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/384.sql b/inst/sql/sql_server/384.sql index 3d9083b6..67037bc7 100644 --- a/inst/sql/sql_server/384.sql +++ b/inst/sql/sql_server/384.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (134438) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (134438)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (134438) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (134438)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/385.sql b/inst/sql/sql_server/385.sql index 1916168b..37561642 100644 --- a/inst/sql/sql_server/385.sql +++ b/inst/sql/sql_server/385.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4242574) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4242574)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4242574) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4242574)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/386.sql b/inst/sql/sql_server/386.sql index 086401dc..823a560c 100644 --- a/inst/sql/sql_server/386.sql +++ b/inst/sql/sql_server/386.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (137053) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (137053)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (137053) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (137053)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/387.sql b/inst/sql/sql_server/387.sql index 1a6d9c3b..ea886dea 100644 --- a/inst/sql/sql_server/387.sql +++ b/inst/sql/sql_server/387.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4331304) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4331304)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4331304) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4331304)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/388.sql b/inst/sql/sql_server/388.sql index fd704d80..90b1defd 100644 --- a/inst/sql/sql_server/388.sql +++ b/inst/sql/sql_server/388.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4027396) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4027396)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4027396) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4027396)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/389.sql b/inst/sql/sql_server/389.sql index 308bf3f5..87fc4441 100644 --- a/inst/sql/sql_server/389.sql +++ b/inst/sql/sql_server/389.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4027396,375806,4117779) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4027396,375806,4117779)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4027396,375806) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4027396,375806)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/39.sql b/inst/sql/sql_server/39.sql index f83734e9..a55239a0 100644 --- a/inst/sql/sql_server/39.sql +++ b/inst/sql/sql_server/39.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443611,193782,443919,45887996,2617395,2617396,44786436,2617401,2617405,2617397,2617404,2617403,2617400,2617402,2617399,2617398) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443611,193782,443919,45887996,2617395,2617396,44786436,2617401,2617405,2617397,2617404,2617403,2617400,2617402,2617399,2617398)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443611,193782,443919,45887996,2617395,2617396,44786436,2617401,2617405,2617397,2617404,2617403,2617400,2617402,2617399,2617398) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443611,193782,443919,45887996,2617395,2617396,44786436,2617401,2617405,2617397,2617404,2617403,2617400,2617402,2617399,2617398)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4027133,45889365,4090651,4032243,38003431) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4027133,45889365,4090651,4032243,38003431)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4027133,45889365,4090651,4032243,38003431) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4027133,45889365,4090651,4032243,38003431)) ) I ) C; @@ -516,49 +516,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/391.sql b/inst/sql/sql_server/391.sql index 17a583f4..6cbdeb81 100644 --- a/inst/sql/sql_server/391.sql +++ b/inst/sql/sql_server/391.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (377889,40484010,434046,379831,433496,40659147) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (377889,40484010,434046,379831,433496,40659147)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (377889,40484010,434046,379831,433496,40659147) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (377889,40484010,434046,379831,433496,40659147)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376793)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -136,49 +136,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/392.sql b/inst/sql/sql_server/392.sql index 30de3c40..c14164df 100644 --- a/inst/sql/sql_server/392.sql +++ b/inst/sql/sql_server/392.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4183452,380733) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4183452,380733)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4183452,380733) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4183452,380733)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/393.sql b/inst/sql/sql_server/393.sql index 3b028b66..330f2886 100644 --- a/inst/sql/sql_server/393.sql +++ b/inst/sql/sql_server/393.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4151985,607566) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4151985,607566)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4151985,607566) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4151985,607566)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315947,137729,4020345,37110596) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315947,137729,4020345,37110596)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315947,137729,4020345,37110596) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315947,137729,4020345,37110596)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/394.sql b/inst/sql/sql_server/394.sql index 35483c43..35582f25 100644 --- a/inst/sql/sql_server/394.sql +++ b/inst/sql/sql_server/394.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (318800) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (318800)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (318800) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (318800)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (201340) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (201340)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (201340) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (201340)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (30753) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (30753)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (30753) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (30753)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4091509) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4091509)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4091509) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4091509)) ) I ) C; @@ -271,49 +271,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/395.sql b/inst/sql/sql_server/395.sql index 0a2bffd1..4fb6de13 100644 --- a/inst/sql/sql_server/395.sql +++ b/inst/sql/sql_server/395.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (194696,443431) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (194696,443431)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (194696) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (194696)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/396.sql b/inst/sql/sql_server/396.sql index 6b100996..08222c89 100644 --- a/inst/sql/sql_server/396.sql +++ b/inst/sql/sql_server/396.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (80180) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (80180)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (80180) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (80180)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/397.sql b/inst/sql/sql_server/397.sql index 8df857b2..5e131391 100644 --- a/inst/sql/sql_server/397.sql +++ b/inst/sql/sql_server/397.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197032) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197032)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197032) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197032)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/398.sql b/inst/sql/sql_server/398.sql index 38c27615..ea9bbbcf 100644 --- a/inst/sql/sql_server/398.sql +++ b/inst/sql/sql_server/398.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4012231,194406,192450) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4012231,194406,192450)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4012231,194406,192450) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4012231,194406,192450)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/399.sql b/inst/sql/sql_server/399.sql index bb2416ad..8ba2041e 100644 --- a/inst/sql/sql_server/399.sql +++ b/inst/sql/sql_server/399.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4319447) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4319447)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4319447) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4319447)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/4.sql b/inst/sql/sql_server/4.sql index 4b2d487f..5e016e46 100644 --- a/inst/sql/sql_server/4.sql +++ b/inst/sql/sql_server/4.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196523,80141) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196523,80141)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196523,80141) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196523,80141)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/40.sql b/inst/sql/sql_server/40.sql index 13380deb..16341f16 100644 --- a/inst/sql/sql_server/40.sql +++ b/inst/sql/sql_server/40.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (201820,442793,443238) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (201820,442793,443238)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (201820,442793,443238) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (201820,442793,443238)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (201254,4058243,435216,40484648) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (201254,4058243,435216,40484648)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (201254,4058243,435216,40484648) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (201254,4058243,435216,40484648)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40769338,43021173,42539022,46270562) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40769338,43021173,42539022,46270562)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40769338,43021173,42539022,46270562) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40769338,43021173,42539022,46270562)) ) I ) C; @@ -147,49 +147,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/400.sql b/inst/sql/sql_server/400.sql index fca29cb8..09164394 100644 --- a/inst/sql/sql_server/400.sql +++ b/inst/sql/sql_server/400.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4163261) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163261)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4163261) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163261)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/401.sql b/inst/sql/sql_server/401.sql index 364c2ae6..725cd33b 100644 --- a/inst/sql/sql_server/401.sql +++ b/inst/sql/sql_server/401.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197236,195500,201817) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197236,195500,201817)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197236) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197236)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/402.sql b/inst/sql/sql_server/402.sql index d9b66826..17162b26 100644 --- a/inst/sql/sql_server/402.sql +++ b/inst/sql/sql_server/402.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (319049) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (319049)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (319049) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (319049)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2808976,46257586,40487536,4039922,45887795,4145647,2893763,42738850,4180290,4051325,42738851,42738849) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2808976,46257586,40487536,4039922,45887795,4145647,2893763,42738850,4180290,4051325,42738851,42738849)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2808976,46257586,40487536,4039922,45887795,4145647,2893763,42738850,4180290,4051325,42738851,42738849) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2808976,46257586,40487536,4039922,45887795,4145647,2893763,42738850,4180290,4051325,42738851,42738849)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437390,4170143,4006969,4306572,318459,4027553,312437) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437390,4170143,4006969,4306572,318459,4027553,312437)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437390,4170143,4006969,4306572,318459,4027553,312437) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437390,4170143,4006969,4306572,318459,4027553,312437)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4179670,3655952,4063381) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4179670,3655952,4063381)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4179670,3655952,4063381) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4179670,3655952,4063381)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -818,49 +818,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/403.sql b/inst/sql/sql_server/403.sql index dee7463b..6a58d16f 100644 --- a/inst/sql/sql_server/403.sql +++ b/inst/sql/sql_server/403.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (319049) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (319049)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (319049) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (319049)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C; @@ -172,49 +172,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/404.sql b/inst/sql/sql_server/404.sql index ebbe61bd..cbe739e1 100644 --- a/inst/sql/sql_server/404.sql +++ b/inst/sql/sql_server/404.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4103295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4103295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4103295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4103295)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C; @@ -172,49 +172,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/405.sql b/inst/sql/sql_server/405.sql index 46ca7709..419e49d9 100644 --- a/inst/sql/sql_server/405.sql +++ b/inst/sql/sql_server/405.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217,314665) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217,314665)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217,314665) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217,314665)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/406.sql b/inst/sql/sql_server/406.sql index 2585fd15..2b19ecd1 100644 --- a/inst/sql/sql_server/406.sql +++ b/inst/sql/sql_server/406.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40277917) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40277917)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40277917) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40277917)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/407.sql b/inst/sql/sql_server/407.sql index 4c380e63..214d4661 100644 --- a/inst/sql/sql_server/407.sql +++ b/inst/sql/sql_server/407.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195562) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195562)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (195562) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (195562)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/41.sql b/inst/sql/sql_server/41.sql index 8f7a26c5..ed704611 100644 --- a/inst/sql/sql_server/41.sql +++ b/inst/sql/sql_server/41.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (194385,46271022,192279,4263367,261071,201313,4103224,193253,195314,192359,45768812) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (194385,46271022,192279,4263367,261071,201313,4103224,193253,195314,192359,45768812)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (194385,46271022,192279,4263367,261071,201313,4103224,195314,192359,45768812) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (194385,46271022,192279,4263367,261071,201313,4103224,195314,192359,45768812)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930,197320) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930,197320)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930,197320) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930,197320)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/410.sql b/inst/sql/sql_server/410.sql index 65daa400..bcce93aa 100644 --- a/inst/sql/sql_server/410.sql +++ b/inst/sql/sql_server/410.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81902,77340,4126297,195588) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81902,77340,4126297,195588)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81902,77340,4126297,195588) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81902,77340,4126297,195588)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4167328,4265485,198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4167328,4265485,198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4167328,4265485,198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4167328,4265485,198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/411.sql b/inst/sql/sql_server/411.sql index 995959e7..8c2e22c7 100644 --- a/inst/sql/sql_server/411.sql +++ b/inst/sql/sql_server/411.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (132797,196236) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (132797,196236)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (132797,196236) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (132797,196236)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/412.sql b/inst/sql/sql_server/412.sql index 5bb1ae28..876394c2 100644 --- a/inst/sql/sql_server/412.sql +++ b/inst/sql/sql_server/412.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443904) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443904)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443904) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443904)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/414.sql b/inst/sql/sql_server/414.sql index 81876cbf..3e9776d6 100644 --- a/inst/sql/sql_server/414.sql +++ b/inst/sql/sql_server/414.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140214,40481101,4082588) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140214,40481101,4082588)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140214,40481101,4082588) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140214,40481101,4082588)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45766714,4297361,4134132,140168,4148876,4029043,432791,35625857,4080937) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45766714,4297361,4134132,140168,4148876,4029043,432791,35625857,4080937)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45766714,4297361,4134132,140168,4148876,4029043,432791,35625857,4080937) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45766714,4297361,4134132,140168,4148876,4029043,432791,35625857,4080937)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/415.sql b/inst/sql/sql_server/415.sql index d77b2f83..4a02f51f 100644 --- a/inst/sql/sql_server/415.sql +++ b/inst/sql/sql_server/415.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40481101) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40481101)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40481101) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40481101)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/416.sql b/inst/sql/sql_server/416.sql index d3e16648..5db67c43 100644 --- a/inst/sql/sql_server/416.sql +++ b/inst/sql/sql_server/416.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (135618,37110753,200164) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (135618,37110753,200164)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (135618,37110753,200164) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (135618,37110753,200164)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/417.sql b/inst/sql/sql_server/417.sql index 1a40704c..9aded8af 100644 --- a/inst/sql/sql_server/417.sql +++ b/inst/sql/sql_server/417.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112183,4103703,192671,4245614,2108900,28779,2002608,443530,2108878) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112183,4103703,192671,4245614,2108900,28779,2002608,443530,2108878)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112183,4103703,192671,4245614,2108900,28779,2002608,443530,2108878) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112183,4103703,192671,4245614,2108900,28779,2002608,443530,2108878)) ) I ) C; @@ -125,49 +125,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/42.sql b/inst/sql/sql_server/42.sql index 2d4b6138..551fb15a 100644 --- a/inst/sql/sql_server/42.sql +++ b/inst/sql/sql_server/42.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443611,193782,443919,45887996,2617395,2617396,44786436,2617401,2617405,2617397,2617404,2617403,2617400,2617402,2617399,2617398) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443611,193782,443919,45887996,2617395,2617396,44786436,2617401,2617405,2617397,2617404,2617403,2617400,2617402,2617399,2617398)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443611,193782,443919,45887996,2617395,2617396,44786436,2617401,2617405,2617397,2617404,2617403,2617400,2617402,2617399,2617398) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443611,193782,443919,45887996,2617395,2617396,44786436,2617401,2617405,2617397,2617404,2617403,2617400,2617402,2617399,2617398)) ) I ) C; @@ -118,49 +118,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/43.sql b/inst/sql/sql_server/43.sql index 86e368e8..c5226ebf 100644 --- a/inst/sql/sql_server/43.sql +++ b/inst/sql/sql_server/43.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45771090,4112923,4090539,258675,432541,434557) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45771090,4112923,4090539,258675,432541,434557)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45771090,4112923,4090539,258675,432541) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45771090,4112923,4090539,258675,432541)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/44.sql b/inst/sql/sql_server/44.sql index beb6a4dd..02897682 100644 --- a/inst/sql/sql_server/44.sql +++ b/inst/sql/sql_server/44.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311061)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/444.sql b/inst/sql/sql_server/444.sql index cbe3be41..989cddbe 100644 --- a/inst/sql/sql_server/444.sql +++ b/inst/sql/sql_server/444.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (24134) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (24134)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (24134) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (24134)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/445.sql b/inst/sql/sql_server/445.sql index d9b7b80d..30202df6 100644 --- a/inst/sql/sql_server/445.sql +++ b/inst/sql/sql_server/445.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (24609) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (24609)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (24609) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (24609)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/446.sql b/inst/sql/sql_server/446.sql index 953d205d..0e44e9ff 100644 --- a/inst/sql/sql_server/446.sql +++ b/inst/sql/sql_server/446.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (27918) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (27918)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (27918) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (27918)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/447.sql b/inst/sql/sql_server/447.sql index 88a27fa4..957cd0cf 100644 --- a/inst/sql/sql_server/447.sql +++ b/inst/sql/sql_server/447.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (30753) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (30753)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (30753) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (30753)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/448.sql b/inst/sql/sql_server/448.sql index 9fed8044..e7dc26ba 100644 --- a/inst/sql/sql_server/448.sql +++ b/inst/sql/sql_server/448.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (31317) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (31317)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (31317) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (31317)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/449.sql b/inst/sql/sql_server/449.sql index 2d55a762..145d0f27 100644 --- a/inst/sql/sql_server/449.sql +++ b/inst/sql/sql_server/449.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (31967) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (31967)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (31967) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (31967)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/45.sql b/inst/sql/sql_server/45.sql index 67692b6c..610c4a41 100644 --- a/inst/sql/sql_server/45.sql +++ b/inst/sql/sql_server/45.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311061)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -183,49 +183,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/450.sql b/inst/sql/sql_server/450.sql index 071fcc04..c19af3e0 100644 --- a/inst/sql/sql_server/450.sql +++ b/inst/sql/sql_server/450.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (75860) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (75860)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (75860) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (75860)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/451.sql b/inst/sql/sql_server/451.sql index f0c61371..8f02717a 100644 --- a/inst/sql/sql_server/451.sql +++ b/inst/sql/sql_server/451.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (76685) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (76685)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (76685) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (76685)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/452.sql b/inst/sql/sql_server/452.sql index ebb96410..b57115e8 100644 --- a/inst/sql/sql_server/452.sql +++ b/inst/sql/sql_server/452.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (77074) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (77074)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (77074) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (77074)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/453.sql b/inst/sql/sql_server/453.sql index 6b100996..08222c89 100644 --- a/inst/sql/sql_server/453.sql +++ b/inst/sql/sql_server/453.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (80180) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (80180)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (80180) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (80180)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/454.sql b/inst/sql/sql_server/454.sql index c6f8e155..11055554 100644 --- a/inst/sql/sql_server/454.sql +++ b/inst/sql/sql_server/454.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (80182) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (80182)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (80182) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (80182)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/455.sql b/inst/sql/sql_server/455.sql index c937d2a0..6c8ce77d 100644 --- a/inst/sql/sql_server/455.sql +++ b/inst/sql/sql_server/455.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (80204) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (80204)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (80204) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (80204)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/456.sql b/inst/sql/sql_server/456.sql index 20b49eb8..5a845a36 100644 --- a/inst/sql/sql_server/456.sql +++ b/inst/sql/sql_server/456.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (80502) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (80502)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (80502) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (80502)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/457.sql b/inst/sql/sql_server/457.sql index 426cb7a6..ac6e20bf 100644 --- a/inst/sql/sql_server/457.sql +++ b/inst/sql/sql_server/457.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (80809) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (80809)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (80809) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (80809)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/458.sql b/inst/sql/sql_server/458.sql index 24184136..3d09b56f 100644 --- a/inst/sql/sql_server/458.sql +++ b/inst/sql/sql_server/458.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81893) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81893)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81893) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81893)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/459.sql b/inst/sql/sql_server/459.sql index d3dada4e..276ad550 100644 --- a/inst/sql/sql_server/459.sql +++ b/inst/sql/sql_server/459.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81902) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81902)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81902) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81902)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/46.sql b/inst/sql/sql_server/46.sql index ff41fbf6..796ec902 100644 --- a/inst/sql/sql_server/46.sql +++ b/inst/sql/sql_server/46.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311061)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -293,49 +293,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/460.sql b/inst/sql/sql_server/460.sql index fdc5f895..86ef03aa 100644 --- a/inst/sql/sql_server/460.sql +++ b/inst/sql/sql_server/460.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81931) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81931)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81931) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81931)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/461.sql b/inst/sql/sql_server/461.sql index b2262d8f..63acbed6 100644 --- a/inst/sql/sql_server/461.sql +++ b/inst/sql/sql_server/461.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (132702) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (132702)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (132702) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (132702)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/462.sql b/inst/sql/sql_server/462.sql index 9a9a5f17..4e25b74e 100644 --- a/inst/sql/sql_server/462.sql +++ b/inst/sql/sql_server/462.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (132703) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (132703)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (132703) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (132703)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/463.sql b/inst/sql/sql_server/463.sql index e8a3e4c6..2665e044 100644 --- a/inst/sql/sql_server/463.sql +++ b/inst/sql/sql_server/463.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (132797) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (132797)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (132797) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (132797)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/464.sql b/inst/sql/sql_server/464.sql index 5ef552e1..95870aac 100644 --- a/inst/sql/sql_server/464.sql +++ b/inst/sql/sql_server/464.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (133169) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (133169)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (133169) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (133169)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/465.sql b/inst/sql/sql_server/465.sql index e6c46216..d61b3099 100644 --- a/inst/sql/sql_server/465.sql +++ b/inst/sql/sql_server/465.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (133444) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (133444)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (133444) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (133444)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/466.sql b/inst/sql/sql_server/466.sql index 3c1af27d..137a44d9 100644 --- a/inst/sql/sql_server/466.sql +++ b/inst/sql/sql_server/466.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (133834) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (133834)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (133834) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (133834)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/467.sql b/inst/sql/sql_server/467.sql index 5b3fd347..66b9c0f1 100644 --- a/inst/sql/sql_server/467.sql +++ b/inst/sql/sql_server/467.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (134442) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (134442)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (134442) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (134442)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/468.sql b/inst/sql/sql_server/468.sql index 3be36b84..1ff72c14 100644 --- a/inst/sql/sql_server/468.sql +++ b/inst/sql/sql_server/468.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (136774) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (136774)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (136774) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (136774)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/469.sql b/inst/sql/sql_server/469.sql index ea9ea774..efbd0a61 100644 --- a/inst/sql/sql_server/469.sql +++ b/inst/sql/sql_server/469.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (137977) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (137977)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (137977) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (137977)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/47.sql b/inst/sql/sql_server/47.sql index 45f9fbee..cad96058 100644 --- a/inst/sql/sql_server/47.sql +++ b/inst/sql/sql_server/47.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311061)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -409,49 +409,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/470.sql b/inst/sql/sql_server/470.sql index b6d30c45..35f35f7a 100644 --- a/inst/sql/sql_server/470.sql +++ b/inst/sql/sql_server/470.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (138379) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (138379)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (138379) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (138379)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/471.sql b/inst/sql/sql_server/471.sql index b871b686..67f36056 100644 --- a/inst/sql/sql_server/471.sql +++ b/inst/sql/sql_server/471.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (138502) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (138502)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (138502) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (138502)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/472.sql b/inst/sql/sql_server/472.sql index 494bb52b..f598a027 100644 --- a/inst/sql/sql_server/472.sql +++ b/inst/sql/sql_server/472.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (138994) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (138994)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (138994) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (138994)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/473.sql b/inst/sql/sql_server/473.sql index 0e0bb86b..65078de4 100644 --- a/inst/sql/sql_server/473.sql +++ b/inst/sql/sql_server/473.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (139803) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (139803)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (139803) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (139803)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/474.sql b/inst/sql/sql_server/474.sql index 00ab9c55..6bbebca9 100644 --- a/inst/sql/sql_server/474.sql +++ b/inst/sql/sql_server/474.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (139899) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (139899)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (139899) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (139899)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/475.sql b/inst/sql/sql_server/475.sql index 3594b055..fb77362b 100644 --- a/inst/sql/sql_server/475.sql +++ b/inst/sql/sql_server/475.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140168) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140168)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140168) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140168)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/476.sql b/inst/sql/sql_server/476.sql index 961ecdc7..c76f39c4 100644 --- a/inst/sql/sql_server/476.sql +++ b/inst/sql/sql_server/476.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140352) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140352)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140352) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140352)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/477.sql b/inst/sql/sql_server/477.sql index bd67f04c..b016f720 100644 --- a/inst/sql/sql_server/477.sql +++ b/inst/sql/sql_server/477.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140673)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/478.sql b/inst/sql/sql_server/478.sql index e1009e9d..e220842e 100644 --- a/inst/sql/sql_server/478.sql +++ b/inst/sql/sql_server/478.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (141232) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (141232)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (141232) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (141232)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/479.sql b/inst/sql/sql_server/479.sql index c05c6557..de913a94 100644 --- a/inst/sql/sql_server/479.sql +++ b/inst/sql/sql_server/479.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (141456) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (141456)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (141456) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (141456)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/48.sql b/inst/sql/sql_server/48.sql index 3a57ec7b..50e04a82 100644 --- a/inst/sql/sql_server/48.sql +++ b/inst/sql/sql_server/48.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311061)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -783,49 +783,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/480.sql b/inst/sql/sql_server/480.sql index 9276e9c9..26b5f0c4 100644 --- a/inst/sql/sql_server/480.sql +++ b/inst/sql/sql_server/480.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (141933) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (141933)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (141933) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (141933)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/481.sql b/inst/sql/sql_server/481.sql index 73c95bf5..9e2b41bb 100644 --- a/inst/sql/sql_server/481.sql +++ b/inst/sql/sql_server/481.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192359) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192359)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192359) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192359)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/482.sql b/inst/sql/sql_server/482.sql index 6e80b01f..4c025bc8 100644 --- a/inst/sql/sql_server/482.sql +++ b/inst/sql/sql_server/482.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192671) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192671)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192671) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192671)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/483.sql b/inst/sql/sql_server/483.sql index 0176fef8..f84f60ec 100644 --- a/inst/sql/sql_server/483.sql +++ b/inst/sql/sql_server/483.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192675) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192675)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192675) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192675)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/484.sql b/inst/sql/sql_server/484.sql index a9c48e3d..6d6f259f 100644 --- a/inst/sql/sql_server/484.sql +++ b/inst/sql/sql_server/484.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193782) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193782)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193782) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193782)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/485.sql b/inst/sql/sql_server/485.sql index 33dd4d82..b523c42c 100644 --- a/inst/sql/sql_server/485.sql +++ b/inst/sql/sql_server/485.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (194133) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (194133)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (194133) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (194133)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/486.sql b/inst/sql/sql_server/486.sql index 0bc0d321..a8a4085c 100644 --- a/inst/sql/sql_server/486.sql +++ b/inst/sql/sql_server/486.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (194702) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (194702)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (194702) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (194702)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/487.sql b/inst/sql/sql_server/487.sql index c13edd48..844d4811 100644 --- a/inst/sql/sql_server/487.sql +++ b/inst/sql/sql_server/487.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (194992) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (194992)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (194992) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (194992)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/488.sql b/inst/sql/sql_server/488.sql index e333ef4c..be03cb64 100644 --- a/inst/sql/sql_server/488.sql +++ b/inst/sql/sql_server/488.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196523) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196523)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196523) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196523)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/489.sql b/inst/sql/sql_server/489.sql index 16e5a1a9..5e21d1bc 100644 --- a/inst/sql/sql_server/489.sql +++ b/inst/sql/sql_server/489.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197320) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197320)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197320) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197320)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/490.sql b/inst/sql/sql_server/490.sql index 42fc77eb..0c8c7b26 100644 --- a/inst/sql/sql_server/490.sql +++ b/inst/sql/sql_server/490.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197494) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197494)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197494) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197494)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/491.sql b/inst/sql/sql_server/491.sql index 829baebe..932bb1d1 100644 --- a/inst/sql/sql_server/491.sql +++ b/inst/sql/sql_server/491.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197508) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197508)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197508) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197508)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/492.sql b/inst/sql/sql_server/492.sql index 34105846..842fcc4f 100644 --- a/inst/sql/sql_server/492.sql +++ b/inst/sql/sql_server/492.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (198571) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (198571)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (198571) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (198571)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/493.sql b/inst/sql/sql_server/493.sql index 5b4e7801..28915ca4 100644 --- a/inst/sql/sql_server/493.sql +++ b/inst/sql/sql_server/493.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (198984) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (198984)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (198984) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (198984)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/494.sql b/inst/sql/sql_server/494.sql index 3bce7ccd..3252efa1 100644 --- a/inst/sql/sql_server/494.sql +++ b/inst/sql/sql_server/494.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (198985) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (198985)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (198985) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (198985)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/495.sql b/inst/sql/sql_server/495.sql index 9bfcfa7b..84bc4bda 100644 --- a/inst/sql/sql_server/495.sql +++ b/inst/sql/sql_server/495.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (199074) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (199074)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (199074) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (199074)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/496.sql b/inst/sql/sql_server/496.sql index 3b816891..49dc251e 100644 --- a/inst/sql/sql_server/496.sql +++ b/inst/sql/sql_server/496.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200219) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200219)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200219) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200219)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/497.sql b/inst/sql/sql_server/497.sql index 46ae90f2..b7d2f60c 100644 --- a/inst/sql/sql_server/497.sql +++ b/inst/sql/sql_server/497.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200762) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200762)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200762) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200762)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/498.sql b/inst/sql/sql_server/498.sql index 8ef5f8a4..f9509956 100644 --- a/inst/sql/sql_server/498.sql +++ b/inst/sql/sql_server/498.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (201214) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (201214)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (201214) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (201214)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/499.sql b/inst/sql/sql_server/499.sql index da3e8b83..6aa2fc84 100644 --- a/inst/sql/sql_server/499.sql +++ b/inst/sql/sql_server/499.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (201254) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (201254)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (201254) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (201254)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/5.sql b/inst/sql/sql_server/5.sql index b5e7eb53..fe43fad4 100644 --- a/inst/sql/sql_server/5.sql +++ b/inst/sql/sql_server/5.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4305080,4041664) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4305080,4041664)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4305080,4041664) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4305080,4041664)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4222908) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4222908)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4222908) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4222908)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/500.sql b/inst/sql/sql_server/500.sql index 145f9675..527864e6 100644 --- a/inst/sql/sql_server/500.sql +++ b/inst/sql/sql_server/500.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (201340) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (201340)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (201340) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (201340)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/501.sql b/inst/sql/sql_server/501.sql index 0b762035..45ff9f49 100644 --- a/inst/sql/sql_server/501.sql +++ b/inst/sql/sql_server/501.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (201606) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (201606)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (201606) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (201606)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/502.sql b/inst/sql/sql_server/502.sql index 316e850e..5ed5c392 100644 --- a/inst/sql/sql_server/502.sql +++ b/inst/sql/sql_server/502.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (201620) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (201620)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (201620) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (201620)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/503.sql b/inst/sql/sql_server/503.sql index 2ec54f93..482326cb 100644 --- a/inst/sql/sql_server/503.sql +++ b/inst/sql/sql_server/503.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (201826) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (201826)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (201826) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (201826)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/504.sql b/inst/sql/sql_server/504.sql index 864ae691..34e14452 100644 --- a/inst/sql/sql_server/504.sql +++ b/inst/sql/sql_server/504.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254443) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254443)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254443) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254443)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/505.sql b/inst/sql/sql_server/505.sql index bb2ce585..c7b84f3c 100644 --- a/inst/sql/sql_server/505.sql +++ b/inst/sql/sql_server/505.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254761) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254761)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254761) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254761)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/506.sql b/inst/sql/sql_server/506.sql index 184e6675..294b1499 100644 --- a/inst/sql/sql_server/506.sql +++ b/inst/sql/sql_server/506.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (255573) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (255573)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (255573) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (255573)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/507.sql b/inst/sql/sql_server/507.sql index 103478b2..e7ed3c0f 100644 --- a/inst/sql/sql_server/507.sql +++ b/inst/sql/sql_server/507.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (255848) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (255848)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (255848) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (255848)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/508.sql b/inst/sql/sql_server/508.sql index f00e05bc..0b6e1556 100644 --- a/inst/sql/sql_server/508.sql +++ b/inst/sql/sql_server/508.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (257007) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (257007)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (257007) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (257007)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/509.sql b/inst/sql/sql_server/509.sql index ad15546a..403668d0 100644 --- a/inst/sql/sql_server/509.sql +++ b/inst/sql/sql_server/509.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (257628) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (257628)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (257628) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (257628)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/51.sql b/inst/sql/sql_server/51.sql index 3d6bc2ac..5bf8887c 100644 --- a/inst/sql/sql_server/51.sql +++ b/inst/sql/sql_server/51.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -123,49 +123,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/510.sql b/inst/sql/sql_server/510.sql index 885736cd..2d0b2c41 100644 --- a/inst/sql/sql_server/510.sql +++ b/inst/sql/sql_server/510.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (312327) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (312327)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (312327) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (312327)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/511.sql b/inst/sql/sql_server/511.sql index 80e6a265..74669210 100644 --- a/inst/sql/sql_server/511.sql +++ b/inst/sql/sql_server/511.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (312437) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (312437)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (312437) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (312437)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/512.sql b/inst/sql/sql_server/512.sql index 596e83cd..80c92f17 100644 --- a/inst/sql/sql_server/512.sql +++ b/inst/sql/sql_server/512.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (312939) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (312939)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (312939) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (312939)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/513.sql b/inst/sql/sql_server/513.sql index 9e365105..556fbb6d 100644 --- a/inst/sql/sql_server/513.sql +++ b/inst/sql/sql_server/513.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/514.sql b/inst/sql/sql_server/514.sql index ba4c77e7..10f7072b 100644 --- a/inst/sql/sql_server/514.sql +++ b/inst/sql/sql_server/514.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313223) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313223)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313223) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313223)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/515.sql b/inst/sql/sql_server/515.sql index 6c879067..bb9e62d0 100644 --- a/inst/sql/sql_server/515.sql +++ b/inst/sql/sql_server/515.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313459) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313459)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313459) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313459)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/516.sql b/inst/sql/sql_server/516.sql index 78cd0c25..f29dbb1f 100644 --- a/inst/sql/sql_server/516.sql +++ b/inst/sql/sql_server/516.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313800) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313800)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313800) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313800)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/517.sql b/inst/sql/sql_server/517.sql index ea760381..5285ab72 100644 --- a/inst/sql/sql_server/517.sql +++ b/inst/sql/sql_server/517.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314381) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314381)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314381) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314381)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/518.sql b/inst/sql/sql_server/518.sql index e3621623..fecc18ee 100644 --- a/inst/sql/sql_server/518.sql +++ b/inst/sql/sql_server/518.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314383) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314383)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314383) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314383)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/519.sql b/inst/sql/sql_server/519.sql index f5c3fcf0..2860a2f9 100644 --- a/inst/sql/sql_server/519.sql +++ b/inst/sql/sql_server/519.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316139) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316139)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316139)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/52.sql b/inst/sql/sql_server/52.sql index bb73dbb5..afd03c2e 100644 --- a/inst/sql/sql_server/52.sql +++ b/inst/sql/sql_server/52.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -123,49 +123,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/520.sql b/inst/sql/sql_server/520.sql index 4c496cab..f648636f 100644 --- a/inst/sql/sql_server/520.sql +++ b/inst/sql/sql_server/520.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316866) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316866)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316866) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316866)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/521.sql b/inst/sql/sql_server/521.sql index 01780fc7..d815d61d 100644 --- a/inst/sql/sql_server/521.sql +++ b/inst/sql/sql_server/521.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317009) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317009)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317009) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317009)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/522.sql b/inst/sql/sql_server/522.sql index 596e8bc8..e52f0713 100644 --- a/inst/sql/sql_server/522.sql +++ b/inst/sql/sql_server/522.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317576) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317576)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317576) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317576)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/523.sql b/inst/sql/sql_server/523.sql index 27806c66..a980865c 100644 --- a/inst/sql/sql_server/523.sql +++ b/inst/sql/sql_server/523.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (318443) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (318443)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (318443) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (318443)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/524.sql b/inst/sql/sql_server/524.sql index 3cb44184..5ce42b3d 100644 --- a/inst/sql/sql_server/524.sql +++ b/inst/sql/sql_server/524.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (318736) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (318736)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (318736) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (318736)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/525.sql b/inst/sql/sql_server/525.sql index 31f8c217..e3cea11d 100644 --- a/inst/sql/sql_server/525.sql +++ b/inst/sql/sql_server/525.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (318800) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (318800)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (318800) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (318800)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/526.sql b/inst/sql/sql_server/526.sql index 97c8e2bd..436e0828 100644 --- a/inst/sql/sql_server/526.sql +++ b/inst/sql/sql_server/526.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (319041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (319041)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (319041) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (319041)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/527.sql b/inst/sql/sql_server/527.sql index 0b8712a6..3845d798 100644 --- a/inst/sql/sql_server/527.sql +++ b/inst/sql/sql_server/527.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (319049) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (319049)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (319049) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (319049)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/528.sql b/inst/sql/sql_server/528.sql index 8f9cec7c..b8474f94 100644 --- a/inst/sql/sql_server/528.sql +++ b/inst/sql/sql_server/528.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (320749) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (320749)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (320749) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (320749)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/529.sql b/inst/sql/sql_server/529.sql index 385d104e..9d9a4d11 100644 --- a/inst/sql/sql_server/529.sql +++ b/inst/sql/sql_server/529.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (321042) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (321042)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (321042) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (321042)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/53.sql b/inst/sql/sql_server/53.sql index 54f60023..0bfed741 100644 --- a/inst/sql/sql_server/53.sql +++ b/inst/sql/sql_server/53.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -186,49 +186,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/530.sql b/inst/sql/sql_server/530.sql index 39b015fc..2d1f64ad 100644 --- a/inst/sql/sql_server/530.sql +++ b/inst/sql/sql_server/530.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (321052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (321052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (321052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (321052)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/531.sql b/inst/sql/sql_server/531.sql index 8a69a17d..7aa034a0 100644 --- a/inst/sql/sql_server/531.sql +++ b/inst/sql/sql_server/531.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (321318) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (321318)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (321318) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (321318)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/532.sql b/inst/sql/sql_server/532.sql index 5c75afb3..30b8cad7 100644 --- a/inst/sql/sql_server/532.sql +++ b/inst/sql/sql_server/532.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (321588) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (321588)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (321588) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (321588)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/533.sql b/inst/sql/sql_server/533.sql index 87e1eb3c..7713be55 100644 --- a/inst/sql/sql_server/533.sql +++ b/inst/sql/sql_server/533.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372328) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372328)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (372328) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (372328)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/534.sql b/inst/sql/sql_server/534.sql index 7ed1a0fe..14ef1675 100644 --- a/inst/sql/sql_server/534.sql +++ b/inst/sql/sql_server/534.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (373503) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (373503)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (373503) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (373503)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/535.sql b/inst/sql/sql_server/535.sql index 46d9f9f9..d47d5e21 100644 --- a/inst/sql/sql_server/535.sql +++ b/inst/sql/sql_server/535.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374021) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374021)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374021) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374021)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/536.sql b/inst/sql/sql_server/536.sql index 5a01f6dc..f18712ca 100644 --- a/inst/sql/sql_server/536.sql +++ b/inst/sql/sql_server/536.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374028) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374028)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374028) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374028)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/537.sql b/inst/sql/sql_server/537.sql index 439fcae5..0b0a41e6 100644 --- a/inst/sql/sql_server/537.sql +++ b/inst/sql/sql_server/537.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374366) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374366)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374366) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374366)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/538.sql b/inst/sql/sql_server/538.sql index 6670e580..7e692259 100644 --- a/inst/sql/sql_server/538.sql +++ b/inst/sql/sql_server/538.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374377) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374377)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374377) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374377)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/539.sql b/inst/sql/sql_server/539.sql index de6b681b..9fada6a7 100644 --- a/inst/sql/sql_server/539.sql +++ b/inst/sql/sql_server/539.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374919) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374919)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374919) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374919)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/54.sql b/inst/sql/sql_server/54.sql index b0c8a3fa..d4d33480 100644 --- a/inst/sql/sql_server/54.sql +++ b/inst/sql/sql_server/54.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444413,377091,4196708) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444413,377091,4196708)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444413,4196708) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444413,4196708)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444413) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444413)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444413) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444413)) ) I ) C; @@ -172,49 +172,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/540.sql b/inst/sql/sql_server/540.sql index 1e4feac1..9e3266ce 100644 --- a/inst/sql/sql_server/540.sql +++ b/inst/sql/sql_server/540.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374954) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374954)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374954) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374954)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/541.sql b/inst/sql/sql_server/541.sql index 10d41903..b6584512 100644 --- a/inst/sql/sql_server/541.sql +++ b/inst/sql/sql_server/541.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (375806) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (375806)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (375806) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (375806)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/542.sql b/inst/sql/sql_server/542.sql index bdc786a4..d7fb4be3 100644 --- a/inst/sql/sql_server/542.sql +++ b/inst/sql/sql_server/542.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376713) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376713)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376713) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376713)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/543.sql b/inst/sql/sql_server/543.sql index 7cbe351c..9aef9ecb 100644 --- a/inst/sql/sql_server/543.sql +++ b/inst/sql/sql_server/543.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (377091) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (377091)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (377091) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (377091)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/544.sql b/inst/sql/sql_server/544.sql index cbe88ab1..762bf4df 100644 --- a/inst/sql/sql_server/544.sql +++ b/inst/sql/sql_server/544.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (378143) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (378143)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (378143) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (378143)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/545.sql b/inst/sql/sql_server/545.sql index 36c50f0f..2161d8b9 100644 --- a/inst/sql/sql_server/545.sql +++ b/inst/sql/sql_server/545.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (378253) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (378253)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (378253) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (378253)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/546.sql b/inst/sql/sql_server/546.sql index ce9196a0..97b2e013 100644 --- a/inst/sql/sql_server/546.sql +++ b/inst/sql/sql_server/546.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (378414) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (378414)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (378414) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (378414)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/547.sql b/inst/sql/sql_server/547.sql index 31d371a1..934919da 100644 --- a/inst/sql/sql_server/547.sql +++ b/inst/sql/sql_server/547.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (378416) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (378416)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (378416) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (378416)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/549.sql b/inst/sql/sql_server/549.sql index f41e403d..7d42fc62 100644 --- a/inst/sql/sql_server/549.sql +++ b/inst/sql/sql_server/549.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (380378) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (380378)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (380378) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (380378)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/550.sql b/inst/sql/sql_server/550.sql index 673cf893..50bcbc5e 100644 --- a/inst/sql/sql_server/550.sql +++ b/inst/sql/sql_server/550.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (381009) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (381009)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (381009) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (381009)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/551.sql b/inst/sql/sql_server/551.sql index f4440a4c..0c20c0ca 100644 --- a/inst/sql/sql_server/551.sql +++ b/inst/sql/sql_server/551.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (606878) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (606878)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (606878) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (606878)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/552.sql b/inst/sql/sql_server/552.sql index dc1173c6..5d6c6864 100644 --- a/inst/sql/sql_server/552.sql +++ b/inst/sql/sql_server/552.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (381270) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (381270)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (381270) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (381270)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/553.sql b/inst/sql/sql_server/553.sql index 9cdea043..c03bb5d5 100644 --- a/inst/sql/sql_server/553.sql +++ b/inst/sql/sql_server/553.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (381316) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (381316)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (381316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (381316)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/554.sql b/inst/sql/sql_server/554.sql index 159f9fce..55e9abcb 100644 --- a/inst/sql/sql_server/554.sql +++ b/inst/sql/sql_server/554.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (381591) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (381591)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (381591) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (381591)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/555.sql b/inst/sql/sql_server/555.sql index 8bad923f..b9d51662 100644 --- a/inst/sql/sql_server/555.sql +++ b/inst/sql/sql_server/555.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432585) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432585)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432585) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432585)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/556.sql b/inst/sql/sql_server/556.sql index ccb2eb78..ea598cee 100644 --- a/inst/sql/sql_server/556.sql +++ b/inst/sql/sql_server/556.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432595) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432595)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432595) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432595)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/557.sql b/inst/sql/sql_server/557.sql index 986f273a..ea5e2290 100644 --- a/inst/sql/sql_server/557.sql +++ b/inst/sql/sql_server/557.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432791)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/558.sql b/inst/sql/sql_server/558.sql index 7c6a22d2..6479adbe 100644 --- a/inst/sql/sql_server/558.sql +++ b/inst/sql/sql_server/558.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432867) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432867)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432867) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432867)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/559.sql b/inst/sql/sql_server/559.sql index 9e050275..ac05ea46 100644 --- a/inst/sql/sql_server/559.sql +++ b/inst/sql/sql_server/559.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432870) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432870)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432870) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432870)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/56.sql b/inst/sql/sql_server/56.sql index af9d1ab6..c7a2fbb0 100644 --- a/inst/sql/sql_server/56.sql +++ b/inst/sql/sql_server/56.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311061)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -239,49 +239,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/560.sql b/inst/sql/sql_server/560.sql index 6a4a05d7..78f433d6 100644 --- a/inst/sql/sql_server/560.sql +++ b/inst/sql/sql_server/560.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432881) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432881)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432881) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432881)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/561.sql b/inst/sql/sql_server/561.sql index 6173abab..6819a477 100644 --- a/inst/sql/sql_server/561.sql +++ b/inst/sql/sql_server/561.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432893) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432893)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432893) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432893)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/562.sql b/inst/sql/sql_server/562.sql index b8e16cd8..102956e0 100644 --- a/inst/sql/sql_server/562.sql +++ b/inst/sql/sql_server/562.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (433595) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (433595)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (433595) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (433595)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/563.sql b/inst/sql/sql_server/563.sql index e39cc666..0a9945ae 100644 --- a/inst/sql/sql_server/563.sql +++ b/inst/sql/sql_server/563.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (433736) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (433736)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (433736) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (433736)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/564.sql b/inst/sql/sql_server/564.sql index 14e34303..b959ce20 100644 --- a/inst/sql/sql_server/564.sql +++ b/inst/sql/sql_server/564.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434119) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434119)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434119) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434119)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/565.sql b/inst/sql/sql_server/565.sql index 22a54760..90631ba0 100644 --- a/inst/sql/sql_server/565.sql +++ b/inst/sql/sql_server/565.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434557) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434557)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434557) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434557)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/566.sql b/inst/sql/sql_server/566.sql index 6ae2f51f..4f493b0a 100644 --- a/inst/sql/sql_server/566.sql +++ b/inst/sql/sql_server/566.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434584) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434584)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434584) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434584)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/567.sql b/inst/sql/sql_server/567.sql index 7555f04a..e24447ef 100644 --- a/inst/sql/sql_server/567.sql +++ b/inst/sql/sql_server/567.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434592) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434592)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434592) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434592)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/568.sql b/inst/sql/sql_server/568.sql index af6cea16..27d89cba 100644 --- a/inst/sql/sql_server/568.sql +++ b/inst/sql/sql_server/568.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434610) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434610)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434610) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434610)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/569.sql b/inst/sql/sql_server/569.sql index 05b12e81..308362d2 100644 --- a/inst/sql/sql_server/569.sql +++ b/inst/sql/sql_server/569.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434821) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434821)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434821) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434821)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/57.sql b/inst/sql/sql_server/57.sql index b567bbf4..b9b57736 100644 --- a/inst/sql/sql_server/57.sql +++ b/inst/sql/sql_server/57.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437312) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437312)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437312) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437312)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/570.sql b/inst/sql/sql_server/570.sql index c5a2c56a..235ddfca 100644 --- a/inst/sql/sql_server/570.sql +++ b/inst/sql/sql_server/570.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435224) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435224)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435224) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435224)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/571.sql b/inst/sql/sql_server/571.sql index 62db9a7a..7eb8fffe 100644 --- a/inst/sql/sql_server/571.sql +++ b/inst/sql/sql_server/571.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435783) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435783)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435783) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435783)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/572.sql b/inst/sql/sql_server/572.sql index 9f1fc1b4..407f6181 100644 --- a/inst/sql/sql_server/572.sql +++ b/inst/sql/sql_server/572.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436073) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436073)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436073) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436073)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/573.sql b/inst/sql/sql_server/573.sql index 811d9039..389a253e 100644 --- a/inst/sql/sql_server/573.sql +++ b/inst/sql/sql_server/573.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436096) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436096)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/574.sql b/inst/sql/sql_server/574.sql index f8f0b1de..f51324d0 100644 --- a/inst/sql/sql_server/574.sql +++ b/inst/sql/sql_server/574.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436100) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436100)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436100) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436100)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/575.sql b/inst/sql/sql_server/575.sql index b4b46a02..69ee13a5 100644 --- a/inst/sql/sql_server/575.sql +++ b/inst/sql/sql_server/575.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436642) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436642)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436642) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436642)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/576.sql b/inst/sql/sql_server/576.sql index 49698dc7..1c99f87e 100644 --- a/inst/sql/sql_server/576.sql +++ b/inst/sql/sql_server/576.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436665) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436665)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436665) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436665)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/577.sql b/inst/sql/sql_server/577.sql index 8aa3b3e8..4bff780a 100644 --- a/inst/sql/sql_server/577.sql +++ b/inst/sql/sql_server/577.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436676)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436676) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436676)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/578.sql b/inst/sql/sql_server/578.sql index d0bcd5fb..329ba02b 100644 --- a/inst/sql/sql_server/578.sql +++ b/inst/sql/sql_server/578.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436962) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436962)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436962) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436962)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/579.sql b/inst/sql/sql_server/579.sql index 140daebc..6b825e2f 100644 --- a/inst/sql/sql_server/579.sql +++ b/inst/sql/sql_server/579.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437082) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437082)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437082) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437082)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/580.sql b/inst/sql/sql_server/580.sql index 08a17a7e..985ce44b 100644 --- a/inst/sql/sql_server/580.sql +++ b/inst/sql/sql_server/580.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437222) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437222)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437222) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437222)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/581.sql b/inst/sql/sql_server/581.sql index dcb01e1b..36ca4ad2 100644 --- a/inst/sql/sql_server/581.sql +++ b/inst/sql/sql_server/581.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437233) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437233)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437233) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437233)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/582.sql b/inst/sql/sql_server/582.sql index b567bbf4..b9b57736 100644 --- a/inst/sql/sql_server/582.sql +++ b/inst/sql/sql_server/582.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437312) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437312)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437312) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437312)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/583.sql b/inst/sql/sql_server/583.sql index d878e9fe..9fdc684a 100644 --- a/inst/sql/sql_server/583.sql +++ b/inst/sql/sql_server/583.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437541) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437541)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437541) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437541)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/584.sql b/inst/sql/sql_server/584.sql index 54896e4b..abee355b 100644 --- a/inst/sql/sql_server/584.sql +++ b/inst/sql/sql_server/584.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437663) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437663)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437663) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437663)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/585.sql b/inst/sql/sql_server/585.sql index b3f16dec..b0deb72a 100644 --- a/inst/sql/sql_server/585.sql +++ b/inst/sql/sql_server/585.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437833) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437833)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437833) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437833)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/586.sql b/inst/sql/sql_server/586.sql index 8ed6b594..1e53bc11 100644 --- a/inst/sql/sql_server/586.sql +++ b/inst/sql/sql_server/586.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (438120) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (438120)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (438120) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (438120)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/587.sql b/inst/sql/sql_server/587.sql index 2aa5ed6b..9b46580a 100644 --- a/inst/sql/sql_server/587.sql +++ b/inst/sql/sql_server/587.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (438130) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (438130)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (438130) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (438130)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/588.sql b/inst/sql/sql_server/588.sql index e866d0ba..7c6ae213 100644 --- a/inst/sql/sql_server/588.sql +++ b/inst/sql/sql_server/588.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (438409) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (438409)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (438409) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (438409)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/589.sql b/inst/sql/sql_server/589.sql index b945049e..cb701975 100644 --- a/inst/sql/sql_server/589.sql +++ b/inst/sql/sql_server/589.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439393) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439393)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439393) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439393)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/59.sql b/inst/sql/sql_server/59.sql index bd691b54..b46c2073 100644 --- a/inst/sql/sql_server/59.sql +++ b/inst/sql/sql_server/59.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311061)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -185,49 +185,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/590.sql b/inst/sql/sql_server/590.sql index 28e48db9..48eeb1c6 100644 --- a/inst/sql/sql_server/590.sql +++ b/inst/sql/sql_server/590.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439727) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439727)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439727) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439727)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/591.sql b/inst/sql/sql_server/591.sql index a3c94148..40ea3415 100644 --- a/inst/sql/sql_server/591.sql +++ b/inst/sql/sql_server/591.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439776) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439776)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439776) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439776)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/592.sql b/inst/sql/sql_server/592.sql index b369dc2a..2ec84eec 100644 --- a/inst/sql/sql_server/592.sql +++ b/inst/sql/sql_server/592.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439777) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439777)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439777) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439777)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/593.sql b/inst/sql/sql_server/593.sql index e3b9023e..32b89a49 100644 --- a/inst/sql/sql_server/593.sql +++ b/inst/sql/sql_server/593.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440377) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440377)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440377) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440377)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/594.sql b/inst/sql/sql_server/594.sql index 9ab4ece0..dacfe7d2 100644 --- a/inst/sql/sql_server/594.sql +++ b/inst/sql/sql_server/594.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440383) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440383)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440383) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440383)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/595.sql b/inst/sql/sql_server/595.sql index 0d01daee..c014ee17 100644 --- a/inst/sql/sql_server/595.sql +++ b/inst/sql/sql_server/595.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440417) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440417)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440417) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440417)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/596.sql b/inst/sql/sql_server/596.sql index 1acc10d4..da99840d 100644 --- a/inst/sql/sql_server/596.sql +++ b/inst/sql/sql_server/596.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440674) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440674)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440674) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440674)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/597.sql b/inst/sql/sql_server/597.sql index 0c4596d3..810e7a9e 100644 --- a/inst/sql/sql_server/597.sql +++ b/inst/sql/sql_server/597.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440740) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440740)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440740) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440740)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/598.sql b/inst/sql/sql_server/598.sql index 9c1b99e2..7427fff1 100644 --- a/inst/sql/sql_server/598.sql +++ b/inst/sql/sql_server/598.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440940) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440940)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440940) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440940)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/599.sql b/inst/sql/sql_server/599.sql index aaf3682c..2c9e5105 100644 --- a/inst/sql/sql_server/599.sql +++ b/inst/sql/sql_server/599.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441202) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441202)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441202) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441202)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/6.sql b/inst/sql/sql_server/6.sql index 8ad83a07..fd140d02 100644 --- a/inst/sql/sql_server/6.sql +++ b/inst/sql/sql_server/6.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444413,437663,4141062,4152360,43530637,4178904) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444413,437663,4141062,4152360,43530637,4178904)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444413,437663,4141062,4152360,43530637,4178904) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444413,437663,4141062,4152360,43530637,4178904)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -218,49 +218,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/60.sql b/inst/sql/sql_server/60.sql index 92e8d86c..4558fd96 100644 --- a/inst/sql/sql_server/60.sql +++ b/inst/sql/sql_server/60.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -225,49 +225,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/600.sql b/inst/sql/sql_server/600.sql index 493b836e..ef14d51e 100644 --- a/inst/sql/sql_server/600.sql +++ b/inst/sql/sql_server/600.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441284) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441284)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441284) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441284)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/601.sql b/inst/sql/sql_server/601.sql index 143e50ce..bc07f1a4 100644 --- a/inst/sql/sql_server/601.sql +++ b/inst/sql/sql_server/601.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441408) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441408)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441408) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441408)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/602.sql b/inst/sql/sql_server/602.sql index 3e9cd4e6..84c44dcf 100644 --- a/inst/sql/sql_server/602.sql +++ b/inst/sql/sql_server/602.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441542) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441542)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441542) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441542)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/603.sql b/inst/sql/sql_server/603.sql index aa50ad45..46f369d1 100644 --- a/inst/sql/sql_server/603.sql +++ b/inst/sql/sql_server/603.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441788) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441788)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441788) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441788)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/604.sql b/inst/sql/sql_server/604.sql index 6ef55ba7..163a008c 100644 --- a/inst/sql/sql_server/604.sql +++ b/inst/sql/sql_server/604.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441848) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441848)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441848) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441848)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/605.sql b/inst/sql/sql_server/605.sql index 66cb93b9..b545cd21 100644 --- a/inst/sql/sql_server/605.sql +++ b/inst/sql/sql_server/605.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442752) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442752)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442752) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442752)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/606.sql b/inst/sql/sql_server/606.sql index 32b48964..a9d0b013 100644 --- a/inst/sql/sql_server/606.sql +++ b/inst/sql/sql_server/606.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443213) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443213)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443213) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443213)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/607.sql b/inst/sql/sql_server/607.sql index 4e291fe5..7b08d4b5 100644 --- a/inst/sql/sql_server/607.sql +++ b/inst/sql/sql_server/607.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443387) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443387)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443387) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443387)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/608.sql b/inst/sql/sql_server/608.sql index 40737d25..0935cb3d 100644 --- a/inst/sql/sql_server/608.sql +++ b/inst/sql/sql_server/608.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443392) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443392)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443392) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443392)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/609.sql b/inst/sql/sql_server/609.sql index 4c3b458b..0248d17b 100644 --- a/inst/sql/sql_server/609.sql +++ b/inst/sql/sql_server/609.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443454) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443454)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/61.sql b/inst/sql/sql_server/61.sql index 6a7a155d..24fb19ec 100644 --- a/inst/sql/sql_server/61.sql +++ b/inst/sql/sql_server/61.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4051938,2313791,2756785,4019139,2615874,2615956,2615795,2615958,2615957,2615796) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4051938,2313791,2756785,4019139,2615874,2615956,2615795,2615958,2615957,2615796)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4051938,2313791,2756785,4019139,2615874,2615956,2615795,2615958,2615957,2615796) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4051938,2313791,2756785,4019139,2615874,2615956,2615795,2615958,2615957,2615796)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (320425,317302,4305210,4169095) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (320425,317302,4305210,4169095)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (320425,317302,4305210) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (320425,317302,4305210)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C; @@ -312,49 +312,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/610.sql b/inst/sql/sql_server/610.sql index fe4413ff..f5dd08ce 100644 --- a/inst/sql/sql_server/610.sql +++ b/inst/sql/sql_server/610.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443700) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443700)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443700) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443700)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/611.sql b/inst/sql/sql_server/611.sql index 91a147c8..1ea6ec06 100644 --- a/inst/sql/sql_server/611.sql +++ b/inst/sql/sql_server/611.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443727) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443727)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443727) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443727)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/612.sql b/inst/sql/sql_server/612.sql index 1c488113..ae31709d 100644 --- a/inst/sql/sql_server/612.sql +++ b/inst/sql/sql_server/612.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444044) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444044)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444044) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444044)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/613.sql b/inst/sql/sql_server/613.sql index e1fa662e..a614779d 100644 --- a/inst/sql/sql_server/613.sql +++ b/inst/sql/sql_server/613.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444070) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444070)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444070) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444070)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/614.sql b/inst/sql/sql_server/614.sql index 2c8e2847..103c3d9e 100644 --- a/inst/sql/sql_server/614.sql +++ b/inst/sql/sql_server/614.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444247) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444247)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444247) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444247)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/615.sql b/inst/sql/sql_server/615.sql index 71eb543f..f2f97729 100644 --- a/inst/sql/sql_server/615.sql +++ b/inst/sql/sql_server/615.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444429) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444429)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444429) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444429)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/616.sql b/inst/sql/sql_server/616.sql index d26b9875..b34ea7fe 100644 --- a/inst/sql/sql_server/616.sql +++ b/inst/sql/sql_server/616.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000634) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000634)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000634) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000634)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/617.sql b/inst/sql/sql_server/617.sql index 3f9ff787..dc70b115 100644 --- a/inst/sql/sql_server/617.sql +++ b/inst/sql/sql_server/617.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4002359) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4002359)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4002359) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4002359)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/618.sql b/inst/sql/sql_server/618.sql index 2f996a69..289b5f0f 100644 --- a/inst/sql/sql_server/618.sql +++ b/inst/sql/sql_server/618.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013643) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013643)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013643) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013643)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/619.sql b/inst/sql/sql_server/619.sql index 41d0487c..8eaf112e 100644 --- a/inst/sql/sql_server/619.sql +++ b/inst/sql/sql_server/619.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4024659) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4024659)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4024659) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4024659)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/62.sql b/inst/sql/sql_server/62.sql index 5cf71531..785c74d9 100644 --- a/inst/sql/sql_server/62.sql +++ b/inst/sql/sql_server/62.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4196708) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4196708)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4196708) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4196708)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/620.sql b/inst/sql/sql_server/620.sql index 7200f007..27d85271 100644 --- a/inst/sql/sql_server/620.sql +++ b/inst/sql/sql_server/620.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4028363) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4028363)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4028363) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4028363)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/621.sql b/inst/sql/sql_server/621.sql index a814be78..463223a2 100644 --- a/inst/sql/sql_server/621.sql +++ b/inst/sql/sql_server/621.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4030518) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4030518)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4030518) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4030518)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/622.sql b/inst/sql/sql_server/622.sql index 1a4cd8ce..eb5c62e9 100644 --- a/inst/sql/sql_server/622.sql +++ b/inst/sql/sql_server/622.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4038838) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4038838)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4038838) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4038838)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/623.sql b/inst/sql/sql_server/623.sql index 2cf02423..96fb8856 100644 --- a/inst/sql/sql_server/623.sql +++ b/inst/sql/sql_server/623.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4046338) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4046338)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4046338) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4046338)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/624.sql b/inst/sql/sql_server/624.sql index 859de1a2..4365b851 100644 --- a/inst/sql/sql_server/624.sql +++ b/inst/sql/sql_server/624.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4058821) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4058821)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4058821) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4058821)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/625.sql b/inst/sql/sql_server/625.sql index 266047ad..8542b5da 100644 --- a/inst/sql/sql_server/625.sql +++ b/inst/sql/sql_server/625.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4063434) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4063434)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4063434) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4063434)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/626.sql b/inst/sql/sql_server/626.sql index 4b2f9dbd..50a9de04 100644 --- a/inst/sql/sql_server/626.sql +++ b/inst/sql/sql_server/626.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4064161) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4064161)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4064161) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4064161)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/627.sql b/inst/sql/sql_server/627.sql index ab6f0e6e..b98bd2fc 100644 --- a/inst/sql/sql_server/627.sql +++ b/inst/sql/sql_server/627.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4067106) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4067106)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4067106) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4067106)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/628.sql b/inst/sql/sql_server/628.sql index 9b6ec23d..34491d34 100644 --- a/inst/sql/sql_server/628.sql +++ b/inst/sql/sql_server/628.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4070552) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4070552)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4070552) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4070552)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/629.sql b/inst/sql/sql_server/629.sql index 9212958c..c9a5c053 100644 --- a/inst/sql/sql_server/629.sql +++ b/inst/sql/sql_server/629.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4074815) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4074815)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4074815) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4074815)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/63.sql b/inst/sql/sql_server/63.sql index f62aa5f7..5feede27 100644 --- a/inst/sql/sql_server/63.sql +++ b/inst/sql/sql_server/63.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443904) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443904)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443904) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443904)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437113,79908,138965,4236484,135526) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437113,79908,138965,4236484,135526)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437113,79908,138965,4236484,135526) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437113,79908,138965,4236484,135526)) ) I ) C; @@ -360,49 +360,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/630.sql b/inst/sql/sql_server/630.sql index 5b15477a..d8166b26 100644 --- a/inst/sql/sql_server/630.sql +++ b/inst/sql/sql_server/630.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4091559) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4091559)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4091559) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4091559)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/631.sql b/inst/sql/sql_server/631.sql index 873a6bbd..8b3501c0 100644 --- a/inst/sql/sql_server/631.sql +++ b/inst/sql/sql_server/631.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4092289) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4092289)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4092289) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4092289)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/632.sql b/inst/sql/sql_server/632.sql index 1fcfe0ef..f7555e45 100644 --- a/inst/sql/sql_server/632.sql +++ b/inst/sql/sql_server/632.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4098292) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4098292)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098292) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098292)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/633.sql b/inst/sql/sql_server/633.sql index 22831d44..1fbf35c7 100644 --- a/inst/sql/sql_server/633.sql +++ b/inst/sql/sql_server/633.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4098597) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4098597)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098597) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098597)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/634.sql b/inst/sql/sql_server/634.sql index 56996f3f..0919b86d 100644 --- a/inst/sql/sql_server/634.sql +++ b/inst/sql/sql_server/634.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4101602) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4101602)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4101602) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4101602)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/635.sql b/inst/sql/sql_server/635.sql index 526447f6..566c5a68 100644 --- a/inst/sql/sql_server/635.sql +++ b/inst/sql/sql_server/635.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4103295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4103295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4103295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4103295)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/636.sql b/inst/sql/sql_server/636.sql index 273a3235..6ed98496 100644 --- a/inst/sql/sql_server/636.sql +++ b/inst/sql/sql_server/636.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112853) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112853)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112853) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112853)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/637.sql b/inst/sql/sql_server/637.sql index 8b8fecd9..2fa9291a 100644 --- a/inst/sql/sql_server/637.sql +++ b/inst/sql/sql_server/637.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4124836) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4124836)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4124836) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4124836)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/638.sql b/inst/sql/sql_server/638.sql index 15feb5a7..f0c34ef8 100644 --- a/inst/sql/sql_server/638.sql +++ b/inst/sql/sql_server/638.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4131909) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4131909)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4131909) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4131909)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/639.sql b/inst/sql/sql_server/639.sql index 943af013..c6c9d685 100644 --- a/inst/sql/sql_server/639.sql +++ b/inst/sql/sql_server/639.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4133004) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4133004)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4133004) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4133004)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/64.sql b/inst/sql/sql_server/64.sql index 70a9956b..3755afce 100644 --- a/inst/sql/sql_server/64.sql +++ b/inst/sql/sql_server/64.sql @@ -7,132 +7,132 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444413,437663,4141062,4152360,4178904) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444413,437663,4141062,4152360,4178904)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444413,437663,4141062,4152360,4178904) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444413,437663,4141062,4152360,4178904)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254761,4089228) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254761,4089228)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254761,4089228) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254761,4089228)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4223659,4272240,44782753) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4223659,4272240,44782753)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4223659,4272240,44782753) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4223659,4272240,44782753)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4158491,37396808,4219363,4221911,37205051,37205052,45772721,4225027,40484614,4092860,4090207) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4158491,37396808,4219363,4221911,37205051,37205052,45772721,4225027,40484614,4092860,4090207)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4158491,37396808,4219363,4221911,37205051,37205052,45772721,4225027,40484614,4092860,4090207) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4158491,37396808,4219363,4221911,37205051,37205052,45772721,4225027,40484614,4092860,4090207)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4185711,43530714,436235,4289517) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4185711,43530714,436235,4289517)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4185711,43530714,436235,4289517) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4185711,43530714,436235,4289517)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4305080,4041664) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4305080,4041664)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4305080,4041664) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4305080,4041664)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4222908) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4222908)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4222908) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4222908)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442752) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442752)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442752) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442752)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (258828,4298555,195464,442315,4347181,442774,36713056,37118025,4316217,37312366,46284893) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (258828,4298555,195464,442315,4347181,442774,36713056,37118025,4316217,37312366,46284893)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (258828,4298555,195464,442315,4347181,442774,36713056,37118025,4316217,37312366,46284893) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (258828,4298555,195464,442315,4347181,442774,36713056,37118025,4316217,37312366,46284893)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -376,49 +376,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/640.sql b/inst/sql/sql_server/640.sql index cba4cd34..42734630 100644 --- a/inst/sql/sql_server/640.sql +++ b/inst/sql/sql_server/640.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4137275) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4137275)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4137275) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4137275)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/641.sql b/inst/sql/sql_server/641.sql index ddc42dbf..5ac2d955 100644 --- a/inst/sql/sql_server/641.sql +++ b/inst/sql/sql_server/641.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4138837) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4138837)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4138837) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4138837)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/642.sql b/inst/sql/sql_server/642.sql index 68cac3a9..d44de825 100644 --- a/inst/sql/sql_server/642.sql +++ b/inst/sql/sql_server/642.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4139034) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4139034)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4139034) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4139034)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/643.sql b/inst/sql/sql_server/643.sql index 898c3eb3..83c40d9e 100644 --- a/inst/sql/sql_server/643.sql +++ b/inst/sql/sql_server/643.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4147411) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4147411)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4147411) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4147411)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/644.sql b/inst/sql/sql_server/644.sql index fca29cb8..09164394 100644 --- a/inst/sql/sql_server/644.sql +++ b/inst/sql/sql_server/644.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4163261) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163261)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4163261) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163261)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/645.sql b/inst/sql/sql_server/645.sql index 279d20fc..a5ba33a2 100644 --- a/inst/sql/sql_server/645.sql +++ b/inst/sql/sql_server/645.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4164770) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4164770)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4164770) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4164770)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/646.sql b/inst/sql/sql_server/646.sql index 590c7031..98dc0b95 100644 --- a/inst/sql/sql_server/646.sql +++ b/inst/sql/sql_server/646.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4169095) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4169095)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4169095) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4169095)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/647.sql b/inst/sql/sql_server/647.sql index 8332e533..35a23c47 100644 --- a/inst/sql/sql_server/647.sql +++ b/inst/sql/sql_server/647.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4174977) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4174977)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4174977) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4174977)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/648.sql b/inst/sql/sql_server/648.sql index 213c833c..f510d720 100644 --- a/inst/sql/sql_server/648.sql +++ b/inst/sql/sql_server/648.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/649.sql b/inst/sql/sql_server/649.sql index 7d5c1d7c..3d69e557 100644 --- a/inst/sql/sql_server/649.sql +++ b/inst/sql/sql_server/649.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4181343) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4181343)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4181343) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4181343)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/65.sql b/inst/sql/sql_server/65.sql index a97150e7..b126abdc 100644 --- a/inst/sql/sql_server/65.sql +++ b/inst/sql/sql_server/65.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (199074) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (199074)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (199074) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (199074)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/650.sql b/inst/sql/sql_server/650.sql index 781b590f..60ed73ea 100644 --- a/inst/sql/sql_server/650.sql +++ b/inst/sql/sql_server/650.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4181351) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4181351)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4181351) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4181351)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/651.sql b/inst/sql/sql_server/651.sql index 8bbaf017..c4d413fe 100644 --- a/inst/sql/sql_server/651.sql +++ b/inst/sql/sql_server/651.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4182210) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4182210)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4182210) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4182210)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/652.sql b/inst/sql/sql_server/652.sql index cbee609b..1cb03c12 100644 --- a/inst/sql/sql_server/652.sql +++ b/inst/sql/sql_server/652.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4182711) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4182711)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4182711) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4182711)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/653.sql b/inst/sql/sql_server/653.sql index ac7e01d9..9f2041c1 100644 --- a/inst/sql/sql_server/653.sql +++ b/inst/sql/sql_server/653.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4185711) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4185711)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4185711) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4185711)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/654.sql b/inst/sql/sql_server/654.sql index f3084d20..44c46644 100644 --- a/inst/sql/sql_server/654.sql +++ b/inst/sql/sql_server/654.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4185932) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4185932)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4185932) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4185932)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/655.sql b/inst/sql/sql_server/655.sql index 1239d4b6..2d4f9710 100644 --- a/inst/sql/sql_server/655.sql +++ b/inst/sql/sql_server/655.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4201096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4201096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4201096) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4201096)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/656.sql b/inst/sql/sql_server/656.sql index 2dec87d5..f9aadf1e 100644 --- a/inst/sql/sql_server/656.sql +++ b/inst/sql/sql_server/656.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4223659) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4223659)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4223659) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4223659)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/657.sql b/inst/sql/sql_server/657.sql index 3c550c8f..26f1ef95 100644 --- a/inst/sql/sql_server/657.sql +++ b/inst/sql/sql_server/657.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4236484) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4236484)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4236484) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4236484)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/658.sql b/inst/sql/sql_server/658.sql index 3ea88245..93f04d73 100644 --- a/inst/sql/sql_server/658.sql +++ b/inst/sql/sql_server/658.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4245975) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4245975)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4245975) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4245975)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/659.sql b/inst/sql/sql_server/659.sql index 3cac9f29..cfd05b8a 100644 --- a/inst/sql/sql_server/659.sql +++ b/inst/sql/sql_server/659.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4246127) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4246127)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4246127) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4246127)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/66.sql b/inst/sql/sql_server/66.sql index 75481efb..670905c8 100644 --- a/inst/sql/sql_server/66.sql +++ b/inst/sql/sql_server/66.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197320,432961,444044) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197320,432961,444044)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197320,432961,444044) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197320,432961,444044)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/660.sql b/inst/sql/sql_server/660.sql index 5cf3e672..741d3ab8 100644 --- a/inst/sql/sql_server/660.sql +++ b/inst/sql/sql_server/660.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4253901) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4253901)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4253901) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4253901)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/661.sql b/inst/sql/sql_server/661.sql index 271505a4..d9fcae6f 100644 --- a/inst/sql/sql_server/661.sql +++ b/inst/sql/sql_server/661.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4256228) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4256228)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4256228) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4256228)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/662.sql b/inst/sql/sql_server/662.sql index 01ce1afb..efb1ec45 100644 --- a/inst/sql/sql_server/662.sql +++ b/inst/sql/sql_server/662.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4260535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4260535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4260535) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4260535)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/663.sql b/inst/sql/sql_server/663.sql index c85c12cd..d4184a2e 100644 --- a/inst/sql/sql_server/663.sql +++ b/inst/sql/sql_server/663.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4266367) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4266367)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4266367) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4266367)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/664.sql b/inst/sql/sql_server/664.sql index 988178f1..a116bd40 100644 --- a/inst/sql/sql_server/664.sql +++ b/inst/sql/sql_server/664.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4272240) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4272240)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4272240) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4272240)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/665.sql b/inst/sql/sql_server/665.sql index 29cdeaa0..eef781ea 100644 --- a/inst/sql/sql_server/665.sql +++ b/inst/sql/sql_server/665.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4273391) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4273391)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4273391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4273391)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/666.sql b/inst/sql/sql_server/666.sql index 88a5edd3..031387b5 100644 --- a/inst/sql/sql_server/666.sql +++ b/inst/sql/sql_server/666.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4281232) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4281232)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4281232) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4281232)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/667.sql b/inst/sql/sql_server/667.sql index 53717354..20040ce6 100644 --- a/inst/sql/sql_server/667.sql +++ b/inst/sql/sql_server/667.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4284492) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4284492)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4284492) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4284492)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/668.sql b/inst/sql/sql_server/668.sql index 908756c8..646772a0 100644 --- a/inst/sql/sql_server/668.sql +++ b/inst/sql/sql_server/668.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4285717) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4285717)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4285717) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4285717)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/669.sql b/inst/sql/sql_server/669.sql index e64422de..d0c64c9d 100644 --- a/inst/sql/sql_server/669.sql +++ b/inst/sql/sql_server/669.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4286201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4286201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4286201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4286201)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/67.sql b/inst/sql/sql_server/67.sql index 83cbc894..7a59c3d3 100644 --- a/inst/sql/sql_server/67.sql +++ b/inst/sql/sql_server/67.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (377604,4029488,4245975,4337543) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (377604,4029488,4245975,4337543)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4245975,4337543) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4245975,4337543)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/670.sql b/inst/sql/sql_server/670.sql index 11c3beba..2412fac6 100644 --- a/inst/sql/sql_server/670.sql +++ b/inst/sql/sql_server/670.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4290976) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4290976)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4290976) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4290976)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/671.sql b/inst/sql/sql_server/671.sql index 5cd80d25..0d409fb6 100644 --- a/inst/sql/sql_server/671.sql +++ b/inst/sql/sql_server/671.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4299535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4299535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4299535) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4299535)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/672.sql b/inst/sql/sql_server/672.sql index 810667a7..24e41881 100644 --- a/inst/sql/sql_server/672.sql +++ b/inst/sql/sql_server/672.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4307095) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4307095)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4307095) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4307095)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/673.sql b/inst/sql/sql_server/673.sql index 9ad55759..5aa73f6c 100644 --- a/inst/sql/sql_server/673.sql +++ b/inst/sql/sql_server/673.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311499) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311499)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311499) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311499)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/674.sql b/inst/sql/sql_server/674.sql index 20a56271..402512f1 100644 --- a/inst/sql/sql_server/674.sql +++ b/inst/sql/sql_server/674.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4318985) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4318985)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4318985) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4318985)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/675.sql b/inst/sql/sql_server/675.sql index 4e37867c..985ce7b6 100644 --- a/inst/sql/sql_server/675.sql +++ b/inst/sql/sql_server/675.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4322024) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4322024)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4322024) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4322024)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/676.sql b/inst/sql/sql_server/676.sql index 172e2218..9abf3116 100644 --- a/inst/sql/sql_server/676.sql +++ b/inst/sql/sql_server/676.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (319047) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (319047)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (319047) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (319047)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/677.sql b/inst/sql/sql_server/677.sql index dca95547..704a7a21 100644 --- a/inst/sql/sql_server/677.sql +++ b/inst/sql/sql_server/677.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36712702) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36712702)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36712702) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36712702)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/678.sql b/inst/sql/sql_server/678.sql index beb6a4dd..02897682 100644 --- a/inst/sql/sql_server/678.sql +++ b/inst/sql/sql_server/678.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311061)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/679.sql b/inst/sql/sql_server/679.sql index 2945d211..cb6bf061 100644 --- a/inst/sql/sql_server/679.sql +++ b/inst/sql/sql_server/679.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40479589) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40479589)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40479589) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40479589)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/68.sql b/inst/sql/sql_server/68.sql index 94cf14e3..c73d0e60 100644 --- a/inst/sql/sql_server/68.sql +++ b/inst/sql/sql_server/68.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316139) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316139)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316139)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315295)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -228,49 +228,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/680.sql b/inst/sql/sql_server/680.sql index 8e4a862e..b408d0e9 100644 --- a/inst/sql/sql_server/680.sql +++ b/inst/sql/sql_server/680.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40481901) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40481901)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40481901) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40481901)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/681.sql b/inst/sql/sql_server/681.sql index 7c8d77b0..f8dbd019 100644 --- a/inst/sql/sql_server/681.sql +++ b/inst/sql/sql_server/681.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40481902) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40481902)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40481902) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40481902)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/682.sql b/inst/sql/sql_server/682.sql index f609eecb..55eb50b1 100644 --- a/inst/sql/sql_server/682.sql +++ b/inst/sql/sql_server/682.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40490918) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40490918)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40490918) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40490918)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/683.sql b/inst/sql/sql_server/683.sql index 3c96180d..2785e0e0 100644 --- a/inst/sql/sql_server/683.sql +++ b/inst/sql/sql_server/683.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42535714) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42535714)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42535714) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42535714)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/684.sql b/inst/sql/sql_server/684.sql index f04530e7..8e660cfb 100644 --- a/inst/sql/sql_server/684.sql +++ b/inst/sql/sql_server/684.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43530714) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43530714)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43530714) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43530714)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/685.sql b/inst/sql/sql_server/685.sql index 77fe8739..f82c7ce3 100644 --- a/inst/sql/sql_server/685.sql +++ b/inst/sql/sql_server/685.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44784217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44784217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44784217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44784217)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/686.sql b/inst/sql/sql_server/686.sql index 91e94c40..f19d8848 100644 --- a/inst/sql/sql_server/686.sql +++ b/inst/sql/sql_server/686.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45763653) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45763653)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45763653) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45763653)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/687.sql b/inst/sql/sql_server/687.sql index 47720a32..ec3211fc 100644 --- a/inst/sql/sql_server/687.sql +++ b/inst/sql/sql_server/687.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46271022) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46271022)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46271022) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46271022)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/688.sql b/inst/sql/sql_server/688.sql index 79cc14cf..c34d8ac7 100644 --- a/inst/sql/sql_server/688.sql +++ b/inst/sql/sql_server/688.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4306655) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4306655)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4306655) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4306655)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/689.sql b/inst/sql/sql_server/689.sql index 6d4cff31..da3d6b03 100644 --- a/inst/sql/sql_server/689.sql +++ b/inst/sql/sql_server/689.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4079843) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4079843)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4079843) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4079843)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/69.sql b/inst/sql/sql_server/69.sql index d5b2dc75..7f465ab9 100644 --- a/inst/sql/sql_server/69.sql +++ b/inst/sql/sql_server/69.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432791)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/690.sql b/inst/sql/sql_server/690.sql index 93825908..dca13728 100644 --- a/inst/sql/sql_server/690.sql +++ b/inst/sql/sql_server/690.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440925) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440925)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440925) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440925)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/691.sql b/inst/sql/sql_server/691.sql index e6da5ee3..cdc531c5 100644 --- a/inst/sql/sql_server/691.sql +++ b/inst/sql/sql_server/691.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443904) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443904)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443904) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443904)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437113,79908,138965,4236484,135526) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437113,79908,138965,4236484,135526)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437113,79908,138965,4236484,135526) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437113,79908,138965,4236484,135526)) ) I ) C; @@ -209,49 +209,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/692.sql b/inst/sql/sql_server/692.sql index 62556ed2..fd085e25 100644 --- a/inst/sql/sql_server/692.sql +++ b/inst/sql/sql_server/692.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443904) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443904)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443904) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443904)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/693.sql b/inst/sql/sql_server/693.sql index 983da3bc..9068f66c 100644 --- a/inst/sql/sql_server/693.sql +++ b/inst/sql/sql_server/693.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36715585,320073,42872951,435224,440689,45766061,4119158) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36715585,320073,42872951,435224,440689,45766061,4119158)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36715585,320073,42872951,440689,45766061,4119158) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36715585,320073,42872951,440689,45766061,4119158)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193448,4289321,35622701,434895) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193448,4289321,35622701,434895)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193448,4289321,35622701,434895) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193448,4289321,35622701,434895)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37393856,4148615,3017732,3013650,3017501) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37393856,4148615,3017732,3013650,3017501)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3017732,3013650,3017501) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3017732,3013650,3017501)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4306106) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4306106)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4306106) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4306106)) ) I ) C; @@ -410,49 +410,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/694.sql b/inst/sql/sql_server/694.sql index a6a359da..ad82b5e3 100644 --- a/inst/sql/sql_server/694.sql +++ b/inst/sql/sql_server/694.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440448) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440448)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440448) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440448)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/695.sql b/inst/sql/sql_server/695.sql index b4aff456..977056b5 100644 --- a/inst/sql/sql_server/695.sql +++ b/inst/sql/sql_server/695.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112970)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112970) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112970)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/696.sql b/inst/sql/sql_server/696.sql index 5a7f5910..d08f94b4 100644 --- a/inst/sql/sql_server/696.sql +++ b/inst/sql/sql_server/696.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (380975) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (380975)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (380975) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (380975)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/697.sql b/inst/sql/sql_server/697.sql index e9bfd856..d1528d8b 100644 --- a/inst/sql/sql_server/697.sql +++ b/inst/sql/sql_server/697.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (377252) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (377252)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (377252) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (377252)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/698.sql b/inst/sql/sql_server/698.sql index f633535a..daefe666 100644 --- a/inst/sql/sql_server/698.sql +++ b/inst/sql/sql_server/698.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376938)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/699.sql b/inst/sql/sql_server/699.sql index c2eadd44..32723447 100644 --- a/inst/sql/sql_server/699.sql +++ b/inst/sql/sql_server/699.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4152280) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4152280)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4152280) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4152280)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/7.sql b/inst/sql/sql_server/7.sql index 8db8cd22..e775cbf7 100644 --- a/inst/sql/sql_server/7.sql +++ b/inst/sql/sql_server/7.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (378253,375527,38000975,38000976) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (378253,375527,38000975,38000976)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (378253,375527,38000975,38000976) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (378253,375527,38000975,38000976)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (73231,441334) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (73231,441334)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (73231,441334) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (73231,441334)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -136,49 +136,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/70.sql b/inst/sql/sql_server/70.sql index 70be89d4..a01d9ed6 100644 --- a/inst/sql/sql_server/70.sql +++ b/inst/sql/sql_server/70.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372924,375557,376713,443454,441874,439847,432923) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372924,375557,376713,443454,441874,439847,432923)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/701.sql b/inst/sql/sql_server/701.sql index b2f352da..76c79f8e 100644 --- a/inst/sql/sql_server/701.sql +++ b/inst/sql/sql_server/701.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200528) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200528)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200528) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200528)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/702.sql b/inst/sql/sql_server/702.sql index 6066b028..7caef82c 100644 --- a/inst/sql/sql_server/702.sql +++ b/inst/sql/sql_server/702.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4146380) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4146380)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4146380) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4146380)) ) I ) C; @@ -112,49 +112,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/703.sql b/inst/sql/sql_server/703.sql index 6f487de6..856c9a7f 100644 --- a/inst/sql/sql_server/703.sql +++ b/inst/sql/sql_server/703.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4263457) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4263457)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4263457) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4263457)) ) I ) C; @@ -112,49 +112,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/705.sql b/inst/sql/sql_server/705.sql index 6b9b31a7..f1b26c43 100644 --- a/inst/sql/sql_server/705.sql +++ b/inst/sql/sql_server/705.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4230543) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4230543)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4230543) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4230543)) ) I ) C; @@ -127,49 +127,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/706.sql b/inst/sql/sql_server/706.sql index 54486c25..209c39b2 100644 --- a/inst/sql/sql_server/706.sql +++ b/inst/sql/sql_server/706.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4055672,37026454,2212731,37041470,45889638,37044890,44809199,4245261,37070720) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055672,37026454,2212731,37041470,45889638,37044890,44809199,4245261,37070720)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4055672,37026454,2212731,37041470,45889638,37044890,44809199,4245261,37070720) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055672,37026454,2212731,37041470,45889638,37044890,44809199,4245261,37070720)) ) I ) C; @@ -112,49 +112,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/707.sql b/inst/sql/sql_server/707.sql index 3cfeae9a..85d9a129 100644 --- a/inst/sql/sql_server/707.sql +++ b/inst/sql/sql_server/707.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/708.sql b/inst/sql/sql_server/708.sql index cbb99b79..d664a166 100644 --- a/inst/sql/sql_server/708.sql +++ b/inst/sql/sql_server/708.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4306239,37042344,37074906) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4306239,37042344,37074906)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4306239,37042344,37074906) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4306239,37042344,37074906)) ) I ) C; @@ -112,49 +112,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/709.sql b/inst/sql/sql_server/709.sql index 3f3a7e44..3d50fddb 100644 --- a/inst/sql/sql_server/709.sql +++ b/inst/sql/sql_server/709.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4212540) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4212540)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4212540) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4212540)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/71.sql b/inst/sql/sql_server/71.sql index 1184301a..b5876103 100644 --- a/inst/sql/sql_server/71.sql +++ b/inst/sql/sql_server/71.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -228,49 +228,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/710.sql b/inst/sql/sql_server/710.sql index 5cf1ae87..67020fe2 100644 --- a/inst/sql/sql_server/710.sql +++ b/inst/sql/sql_server/710.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4064161,196463,46269816) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4064161,196463,46269816)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4064161,196463,46269816) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4064161,196463,46269816)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/711.sql b/inst/sql/sql_server/711.sql index 9ce07d18..5a203748 100644 --- a/inst/sql/sql_server/711.sql +++ b/inst/sql/sql_server/711.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537742) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537742)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42537742) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42537742)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/712.sql b/inst/sql/sql_server/712.sql index e7fe59f0..daa0ba04 100644 --- a/inst/sql/sql_server/712.sql +++ b/inst/sql/sql_server/712.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4291005,196029,43021368,4093637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4291005,196029,43021368,4093637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4291005,196029,43021368,4093637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4291005,196029,43021368,4093637)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/713.sql b/inst/sql/sql_server/713.sql index ff180cd6..f816cd48 100644 --- a/inst/sql/sql_server/713.sql +++ b/inst/sql/sql_server/713.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340383,201343,46269835,46269818,4340386) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340383,201343,46269835,46269818,4340386)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340383,201343,46269835,46269818,4340386) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340383,201343,46269835,46269818,4340386)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/714.sql b/inst/sql/sql_server/714.sql index 3a2a725d..22f4f748 100644 --- a/inst/sql/sql_server/714.sql +++ b/inst/sql/sql_server/714.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (433527) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (433527)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (433527) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (433527)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/715.sql b/inst/sql/sql_server/715.sql index a59a4eb4..5eedcb6d 100644 --- a/inst/sql/sql_server/715.sql +++ b/inst/sql/sql_server/715.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267417,4058695) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267417,4058695)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267417,4058695) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267417,4058695)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/716.sql b/inst/sql/sql_server/716.sql index 9a5345f7..03012184 100644 --- a/inst/sql/sql_server/716.sql +++ b/inst/sql/sql_server/716.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4055224,4245975,194990,4058696,4029488,4337543,40481531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4245975,194990,4058696,4029488,4337543,40481531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4055224,4245975,4058696,4029488,4337543,40481531) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4245975,4058696,4029488,4337543,40481531)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/717.sql b/inst/sql/sql_server/717.sql index a5438a74..68c279a6 100644 --- a/inst/sql/sql_server/717.sql +++ b/inst/sql/sql_server/717.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192680,24966) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192680,24966)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192680,24966) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192680,24966)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/719.sql b/inst/sql/sql_server/719.sql index 2943416b..0322cda6 100644 --- a/inst/sql/sql_server/719.sql +++ b/inst/sql/sql_server/719.sql @@ -7,73 +7,73 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) ) I ) C UNION ALL SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4055224,4245975,194990,4058696,4029488,4337543,40481531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4245975,194990,4058696,4029488,4337543,40481531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4055224,4245975,4058696,4029488,4337543,40481531) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4245975,4058696,4029488,4337543,40481531)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (137977) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (137977)) ) I ) C UNION ALL SELECT 34 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262,262) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262,262)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262,262) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262,262)) ) I ) C UNION ALL SELECT 36 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4291005,196029,4093637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4291005,196029,4093637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4291005,196029,4093637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4291005,196029,4093637)) ) I ) C UNION ALL SELECT 37 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340383,201343,46269835,46269818,4340386) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340383,201343,46269835,46269818,4340386)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340383,46269835,46269818,4340386) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340383,46269835,46269818,4340386)) ) I ) C; @@ -501,49 +501,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/72.sql b/inst/sql/sql_server/72.sql index 90b8b035..e931b4f8 100644 --- a/inst/sql/sql_server/72.sql +++ b/inst/sql/sql_server/72.sql @@ -7,55 +7,55 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4146943,46274061,4266367,42537960,4112824,4299935,46269706,763011) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4146943,46274061,4266367,42537960,4112824,4299935,46269706,763011)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4146943,46274061,4266367,42537960,4112824,4299935,46269706,763011) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4146943,46274061,4266367,42537960,4112824,4299935,46269706,763011)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4042202) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4042202)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4042202) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4042202)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45757528,4262075) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45757528,4262075)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45757528,4262075) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45757528,4262075)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44789502,37392948,37394408,36676235,3001703,3016424,3038149,3016676,3017256,3020370,2213094,2213181,2213063,2213062,40757077,40756898,4039357,37392223,44806470,37394297,4044987,4039358,37392224,44807860,37394300,4044988,37392761,40653953,40655680,40655681,40655682,40655683,40655684,40655685,40655686,37080282,40655687,40655688,40655689,40655690,4047171,40655691,40484560,3002988,3002646,3003682) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44789502,37392948,37394408,36676235,3001703,3016424,3038149,3016676,3017256,3020370,2213094,2213181,2213063,2213062,40757077,40756898,4039357,37392223,44806470,37394297,4044987,4039358,37392224,44807860,37394300,4044988,37392761,40653953,40655680,40655681,40655682,40655683,40655684,40655685,40655686,37080282,40655687,40655688,40655689,40655690,4047171,40655691,40484560,3002988,3002646,3003682)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44789502,37392948,37394408,36676235,3001703,3016424,3038149,3016676,3017256,3020370,2213094,2213181,2213063,2213062,40757077,40756898,4039357,37392223,44806470,37394297,4044987,4039358,37392224,44807860,37394300,4044988,37392761,40653953,40655680,40655681,40655682,40655683,40655684,40655685,40655686,37080282,40655687,40655688,40655689,40655690,4047171,40655691,40484560,3002988,3002646,3003682) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44789502,37392948,37394408,36676235,3001703,3016424,3038149,3016676,3017256,3020370,2213094,2213181,2213063,2213062,40757077,40756898,4039357,37392223,44806470,37394297,4044987,4039358,37392224,44807860,37394300,4044988,37392761,40653953,40655680,40655681,40655682,40655683,40655684,40655685,40655686,37080282,40655687,40655688,40655689,40655690,4047171,40655691,40484560,3002988,3002646,3003682)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37066972,3002696,3000619,3023674,3001047,3007341,37398130,4201049,37393224,44805899,45757528,37393225,4196405,44805900,4262075,40760327,37048815,37058506,37055728,37040765,37023170,37075082,37041511,37066453,37057346,37054344,37022661,37067997,37028300,37054453,37036578,37078464,37067504,37070652,37048012,37071077,37042025,37024679,37042070,37052164,37037245,37072518,37044556,37025175,37063376,37068553,37045806,37036252,37064420,37037941,37062169,37076139,37034233,37051887,37075960,37022372,37031117,37073627,37057853,37042870,37075259,37030627,37059249,37037961,37047321,37075847,37073492,37056311,37029363,37023424,37073273,37076384,37069805,37026917,37048913,37074405,37040736,37076803,37075491,37072743,40758391,42869813,40758149,3043198,4017924,37050279,3026510,3027889) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37066972,3002696,3000619,3023674,3001047,3007341,37398130,4201049,37393224,44805899,45757528,37393225,4196405,44805900,4262075,40760327,37048815,37058506,37055728,37040765,37023170,37075082,37041511,37066453,37057346,37054344,37022661,37067997,37028300,37054453,37036578,37078464,37067504,37070652,37048012,37071077,37042025,37024679,37042070,37052164,37037245,37072518,37044556,37025175,37063376,37068553,37045806,37036252,37064420,37037941,37062169,37076139,37034233,37051887,37075960,37022372,37031117,37073627,37057853,37042870,37075259,37030627,37059249,37037961,37047321,37075847,37073492,37056311,37029363,37023424,37073273,37076384,37069805,37026917,37048913,37074405,37040736,37076803,37075491,37072743,40758391,42869813,40758149,3043198,4017924,37050279,3026510,3027889)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37066972,3002696,3000619,3023674,3001047,3007341,37398130,4201049,37393224,44805899,45757528,37393225,4196405,44805900,4262075,40760327,37048815,37058506,37055728,37040765,37023170,37075082,37041511,37066453,37057346,37054344,37022661,37067997,37028300,37054453,37036578,37078464,37067504,37070652,37048012,37071077,37042025,37024679,37042070,37052164,37037245,37072518,37044556,37025175,37063376,37068553,37045806,37036252,37064420,37037941,37062169,37076139,37034233,37051887,37075960,37022372,37031117,37073627,37057853,37042870,37075259,37030627,37059249,37037961,37047321,37075847,37073492,37056311,37029363,37023424,37073273,37076384,37069805,37026917,37048913,37074405,37040736,37076803,37075491,37072743,40758391,42869813,40758149,3043198,4017924,37050279,3026510,3027889) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37066972,3002696,3000619,3023674,3001047,3007341,37398130,4201049,37393224,44805899,45757528,37393225,4196405,44805900,4262075,40760327,37048815,37058506,37055728,37040765,37023170,37075082,37041511,37066453,37057346,37054344,37022661,37067997,37028300,37054453,37036578,37078464,37067504,37070652,37048012,37071077,37042025,37024679,37042070,37052164,37037245,37072518,37044556,37025175,37063376,37068553,37045806,37036252,37064420,37037941,37062169,37076139,37034233,37051887,37075960,37022372,37031117,37073627,37057853,37042870,37075259,37030627,37059249,37037961,37047321,37075847,37073492,37056311,37029363,37023424,37073273,37076384,37069805,37026917,37048913,37074405,37040736,37076803,37075491,37072743,40758391,42869813,40758149,3043198,4017924,37050279,3026510,3027889)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -197,49 +197,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/720.sql b/inst/sql/sql_server/720.sql index 4586cc7c..ead36c5a 100644 --- a/inst/sql/sql_server/720.sql +++ b/inst/sql/sql_server/720.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317510,432571,437233,3654297,3654352,4005251,4030264,4043444,4043445,4043713,4058706,4156433,4161020,4161138,4161560,4161665,4164159,4221907,4224628,4241295,4295651,4301659,4301780,4323972,4347562,36680584,37016161,37204530,37206728,42538056,45767656) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317510,432571,437233,3654297,3654352,4005251,4030264,4043444,4043445,4043713,4058706,4156433,4161020,4161138,4161560,4161665,4164159,4221907,4224628,4241295,4295651,4301659,4301780,4323972,4347562,36680584,37016161,37204530,37206728,42538056,45767656)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317510,432571,437233,3654297,3654352,4005251,4030264,4043444,4043445,4043713,4058706,4156433,4161020,4161138,4161560,4161665,4164159,4221907,4224628,4241295,4295651,4301659,4301780,4323972,4347562,36680584,37016161,37204530,37206728,42538056,45767656) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317510,432571,437233,3654297,3654352,4005251,4030264,4043444,4043445,4043713,4058706,4156433,4161020,4161138,4161560,4161665,4164159,4221907,4224628,4241295,4295651,4301659,4301780,4323972,4347562,36680584,37016161,37204530,37206728,42538056,45767656)) ) I ) C UNION ALL SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (137829) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (137829)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (137829) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (137829)) ) I ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44829910) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44829910)) ) I ) C UNION ALL SELECT 34 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140065) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140065)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140065) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140065)) ) I ) C; @@ -243,7 +243,7 @@ FROM ( WHERE (MG.inclusion_rule_mask = POWER(cast(2 as bigint),2)-1) } ) Results -WHERE Results.ordinal = 1 + ; @@ -265,49 +265,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/721.sql b/inst/sql/sql_server/721.sql index 0ec234f8..6f73c55f 100644 --- a/inst/sql/sql_server/721.sql +++ b/inst/sql/sql_server/721.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (377556,4338523) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (377556,4338523)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (377556,4338523) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (377556,4338523)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4285569,443767,437541,381290,4134613,436134) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4285569,443767,437541,381290,4134613,436134)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4285569,443767,437541,381290,4134613,436134) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4285569,443767,437541,381290,4134613,436134)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435656) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435656)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435656) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435656)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -240,49 +240,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/722.sql b/inst/sql/sql_server/722.sql index d3915796..aaccab6f 100644 --- a/inst/sql/sql_server/722.sql +++ b/inst/sql/sql_server/722.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (433527,200461) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (433527,200461)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (433527,200461) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (433527,200461)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4187787) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4187787)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108115,2109428,2004211,2004286,2003899,2003523,2004206,2004470,2004483,2004265,2004250,2004251,2004266,2004451,2004464,2004245,2004467,40480864,4032749,4140385,4032014,4102643,4171198,2110142,2110214,2110209,2110210,2110211,2110212,2110215,2110229,2110230,2110231,2110232,2110216,2110218,2110219,2110220,2109763,2109453,2110242,2110241,2110239,2110243,2110240,2110245,2213283,2414398,2414397,2004222,2004229,2211767,2211765,2110246) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108115,2109428,2004211,2004286,2003899,2003523,2004206,2004470,2004483,2004265,2004250,2004251,2004266,2004451,2004464,2004245,2004467,40480864,4032749,4140385,4032014,4102643,4171198,2110142,2110214,2110209,2110210,2110211,2110212,2110215,2110229,2110230,2110231,2110232,2110216,2110218,2110219,2110220,2109763,2109453,2110242,2110241,2110239,2110243,2110240,2110245,2213283,2414398,2414397,2004222,2004229,2211767,2211765,2110246)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108115,2109428,2004211,2004286,2003899,2003523,2004206,2004470,2004483,2004265,2004250,2004251,2004266,2004451,2004464,2004245,2004467,40480864,4032749,4140385,4032014,4102643,4171198,2110142,2110214,2110209,2110210,2110211,2110212,2110215,2110229,2110230,2110231,2110232,2110216,2110218,2110219,2110220,2109763,2109453,2110242,2110241,2110239,2110243,2110240,2110245,2213283,2414398,2414397,2004222,2004229,2211767,2211765,2110246) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108115,2109428,2004211,2004286,2003899,2003523,2004206,2004470,2004483,2004265,2004250,2004251,2004266,2004451,2004464,2004245,2004467,40480864,4032749,4140385,4032014,4102643,4171198,2110142,2110214,2110209,2110210,2110211,2110212,2110215,2110229,2110230,2110231,2110232,2110216,2110218,2110219,2110220,2109763,2109453,2110242,2110241,2110239,2110243,2110240,2110245,2213283,2414398,2414397,2004222,2004229,2211767,2211765,2110246)) ) I ) C; @@ -320,49 +320,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/723.sql b/inst/sql/sql_server/723.sql index 54e79aae..f19d9650 100644 --- a/inst/sql/sql_server/723.sql +++ b/inst/sql/sql_server/723.sql @@ -5,58 +5,289 @@ CREATE TABLE #Codesets ( ; INSERT INTO #Codesets (codeset_id, concept_id) +SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726)) + +) I +) C UNION ALL +SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196029)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196029)) + +) I +) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390,46269836,37396401,4331292,45769564) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,46269836,37396401,4331292,45769564)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4064161,196463,46269816) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4064161,196463,46269816)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4064161,196463,46269816)) + +) I +) C UNION ALL +SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267417,4058695)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267417,4058695)) + +) I +) C UNION ALL +SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4059290)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059290)) + +) I +LEFT JOIN +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131)) + +) E ON I.concept_id = E.concept_id +WHERE E.concept_id is null +) C UNION ALL +SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131,40484532)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131,40484532)) + +) I +) C UNION ALL +SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4326594,4058725,4113557,194984)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4326594,4058725,4113557,194984)) + +) I +) C UNION ALL +SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) + +) I +LEFT JOIN +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435506)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435506)) + +) E ON I.concept_id = E.concept_id +WHERE E.concept_id is null +) C UNION ALL +SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340383,201343,46269835)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340383,46269835)) + +) I +) C UNION ALL +SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4229262)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4229262)) + +) I +) C UNION ALL +SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200762)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200762)) + +) I +) C UNION ALL +SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163735)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163735)) + +) I +) C UNION ALL +SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135822)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4064161,196463,46269816) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135822)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029488,4245975,40481531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029488,4245975,40481531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4029488,4245975) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4029488,4245975)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL +SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200528)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200528)) + +) I +) C UNION ALL +SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4055223)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4055223)) + +) I +) C UNION ALL +SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192680,46270558)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192680,46270558)) + +) I +) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537742) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537742)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42537742)) + +) I +) C UNION ALL +SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4130518)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4130518)) + +) I +) C UNION ALL +SELECT 27 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4143915,4058694)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4143915,4058694)) + +) I +) C UNION ALL +SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4337543)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42537742) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4337543)) + +) I +) C UNION ALL +SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4212540)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4212540)) ) I ) C; @@ -317,49 +548,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/724.sql b/inst/sql/sql_server/724.sql index 3657b60b..32117f30 100644 --- a/inst/sql/sql_server/724.sql +++ b/inst/sql/sql_server/724.sql @@ -5,90 +5,321 @@ CREATE TABLE #Codesets ( ; INSERT INTO #Codesets (codeset_id, concept_id) +SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36714559,4042860,435140,46269816,37311131,4058714,46269817,195300,318773,37016176,45757783,44788725,40484946,3661461,44788726)) + +) I +) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4291005,196029,4093637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4291005,196029,4093637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4291005,196029,4093637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4291005,196029,4093637)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390,46269836,37396401,4331292,45769564) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,46269836,37396401,4331292,45769564)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,46269836,37396401,4331292,45769564)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4064161,196463,46269816) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4064161,196463,46269816)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4064161,196463,46269816)) + +) I +) C UNION ALL +SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267417,4058695)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4064161,196463,46269816) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267417,4058695)) ) I ) C UNION ALL +SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4059290)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059290)) + +) I +LEFT JOIN +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131)) + +) E ON I.concept_id = E.concept_id +WHERE E.concept_id is null +) C UNION ALL +SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4026131,40484532)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4026131,40484532)) + +) I +) C UNION ALL +SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4326594,4058725,4113557,194984)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4326594,4058725,4113557,194984)) + +) I +) C UNION ALL +SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112853,4162276,40493428,43021272,4101758,4180793,4181343,196653,43021272,46273375,4178769,4058705,4187205,4324190)) + +) I +LEFT JOIN +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435506)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435506)) + +) E ON I.concept_id = E.concept_id +WHERE E.concept_id is null +) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340383,201343,46269835,46269818,4340386) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340383,201343,46269835,46269818,4340386)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340383,46269835,46269818,4340386) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340383,46269835,46269818,4340386)) + +) I +) C UNION ALL +SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4229262)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4229262)) + +) I +) C UNION ALL +SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200762)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200762)) + +) I +) C UNION ALL +SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163735)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163735)) + +) I +) C UNION ALL +SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135822)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135822)) + +) I +) C UNION ALL +SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4245975)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4245975)) + +) I +) C UNION ALL +SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200528)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200528)) + +) I +) C UNION ALL +SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4055223)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4055223)) + +) I +) C UNION ALL +SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192680,46270558)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192680,46270558)) ) I ) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537742) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537742)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42537742) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42537742)) ) I ) C UNION ALL SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196455) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196455)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196455)) + +) I +) C UNION ALL +SELECT 27 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4143915,4058694)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4143915,4058694)) + +) I +) C UNION ALL +SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4337543)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4337543)) + +) I +) C UNION ALL +SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4212540)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196455) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4212540)) ) I ) C UNION ALL +SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029488,4245975)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4029488,4245975)) + +) I +LEFT JOIN +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) + +) E ON I.concept_id = E.concept_id +WHERE E.concept_id is null +) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029488,4245975,40481531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029488,4245975,40481531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4029488,4245975) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4029488,4245975)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -515,49 +746,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/725.sql b/inst/sql/sql_server/725.sql index 8c1b6fb9..fafdb9ab 100644 --- a/inst/sql/sql_server/725.sql +++ b/inst/sql/sql_server/725.sql @@ -7,89 +7,89 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193782,443611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193782,443611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193782,443611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193782,443611)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4146536,4032243,2617342) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4146536,4032243,2617342)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4146536,2617342) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4146536,2617342)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197320,444044) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197320,444044)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197320,444044) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197320,444044)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196455,37116834) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196455,37116834)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196455,37116834) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196455,37116834)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1314323) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1314323)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1314323) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1314323)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43009086,1304643,1301125) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43009086,1304643,1301125)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43009086,1304643,1301125) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43009086,1304643,1301125)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42539502,4324887) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42539502,4324887)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42539502,4324887) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42539502,4324887)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4324887,4180454,2833286,2877118,4163566,4146256,4082531)) ) I ) C; @@ -537,49 +537,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/726.sql b/inst/sql/sql_server/726.sql index c10512f4..a865cbd8 100644 --- a/inst/sql/sql_server/726.sql +++ b/inst/sql/sql_server/726.sql @@ -7,216 +7,238 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441202,762511,762514,762509,762513,762515) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441202,762511,762514,762509,762513,762515)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441202,762511,762514,762509,762513,762515) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441202,762511,762514,762509,762513,762515)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434219,4083866,4221182,3661863,42538691,40479646,4083995) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434219,4083866,4221182,3661863,42538691,40479646,4083995)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434219,4083866,3661863,42538691,40479646,4083995) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434219,4083866,3661863,42538691,40479646,4083995)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434219) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434219)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434219) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434219)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4221182) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4221182)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4221182) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4221182)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4084168,434219,442038) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4084168,434219,442038)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4084168,434219,442038) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4084168,434219,442038)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3661863) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3661863)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3661863) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3661863)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280,442149) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280,442149)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280,442149) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280,442149)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440905) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440905)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440905) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440905)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436581) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436581)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201,262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201,262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201,262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201,262,9203)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9202) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9202)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9202) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9202)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4289459,45888082,4203130,4307376,4214577,2721702,4027135,45888081,45888494,45888205,45889184,8715,45888973,4202667)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (256717) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (256717)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (256717) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (256717)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (253321) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (253321)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (253321) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (253321)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317002) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317002)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317002) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317002)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313232,316447,314432) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313232,316447,314432)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313232,316447,314432) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313232,316447,314432)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1343916) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1343916)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1343916) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1343916)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36224040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36224040)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36224040) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36224040)) ) I ) C UNION ALL +SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43021227,4019380,441207)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43021227,4019380,441207)) + +) I +LEFT JOIN +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4188970)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4188970)) + +) E ON I.concept_id = E.concept_id +WHERE E.concept_id is null +) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4205502,4230167,4013354,40487536,4202832) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4205502,4230167,4013354,40487536,4202832)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4205502,4230167,4013354,40487536,4202832) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4205502,4230167,4013354,40487536,4202832)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43530807,439228,443368,440281,441488,440015,3661841,3661819,441207,4303952,433389,40490404,443351,433658,433399,435730,3661853) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43530807,439228,443368,440281,441488,440015,3661841,3661819,441207,4303952,433389,40490404,443351,433658,433399,435730,3661853)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439228,443368,440281,440015,3661841,3661819,441207,433389,40490404,443351,433658,433399,435730,3661853) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439228,443368,440281,440015,3661841,3661819,441207,433389,40490404,443351,433658,433399,435730,3661853)) ) I ) C; @@ -3288,49 +3310,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/727.sql b/inst/sql/sql_server/727.sql index 405ef9cd..2d1e602b 100644 --- a/inst/sql/sql_server/727.sql +++ b/inst/sql/sql_server/727.sql @@ -7,89 +7,89 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4296370,432791,4297361,4270861) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4296370,432791,4297361,4270861)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4296370,432791,4297361,4270861) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4296370,432791,4297361,4270861)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4231570,4235646) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4231570,4235646)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4231570,4235646) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4231570,4235646)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435613,4299470,133566) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435613,4299470,133566)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435613,4299470,133566) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435613,4299470,133566)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (138346,4104689) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (138346,4104689)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (138346,4104689) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (138346,4104689)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (133835,45766714) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (133835,45766714)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (133835,45766714) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (133835,45766714)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435839) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435839)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435839) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435839)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4173025,3661864,437478,4114305,3661861,36674264,4266230,4296183,4032280)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4296370,432791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4296370,432791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4296370,432791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4296370,432791)) ) I ) C; @@ -675,49 +675,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/728.sql b/inst/sql/sql_server/728.sql index 24c81ac2..23dfbe6a 100644 --- a/inst/sql/sql_server/728.sql +++ b/inst/sql/sql_server/728.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441269) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441269)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441269) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441269)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436956) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436956)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436956) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436956)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/729.sql b/inst/sql/sql_server/729.sql index 355b8732..7d373869 100644 --- a/inst/sql/sql_server/729.sql +++ b/inst/sql/sql_server/729.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200762) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200762)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200762) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200762)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4012113,201613,200763,196463,4143008) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4012113,201613,200763,196463,4143008)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4012113,201613,200763,196463,4143008) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4012113,201613,200763,196463,4143008)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200762) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200762)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200762) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200762)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (257628) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (257628)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (257628) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (257628)) ) I ) C; @@ -306,49 +306,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/730.sql b/inst/sql/sql_server/730.sql index 618ee195..fd3245ac 100644 --- a/inst/sql/sql_server/730.sql +++ b/inst/sql/sql_server/730.sql @@ -7,84 +7,84 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4192640) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4192640)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4192640) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4192640)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201,9203)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (199074,4341076,4192640) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (199074,4341076,4192640)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (199074,4341076) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (199074,4341076)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4243504,195596) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4243504,195596)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4243504,195596) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4243504,195596)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (195596,36715932) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (195596,36715932)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (195596,36715932) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (195596,36715932)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4194916) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4194916)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4194916) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4194916)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9202) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9202)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9202) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9202)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2514436,2514434,2514435,2514433,2514437) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2514436,2514434,2514435,2514433,2514437)) ) I ) C; @@ -810,49 +810,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/731.sql b/inst/sql/sql_server/731.sql index 1f4190ba..4d8b6af3 100644 --- a/inst/sql/sql_server/731.sql +++ b/inst/sql/sql_server/731.sql @@ -7,111 +7,111 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (377889,40484010,434046,379831,433496,40659147) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (377889,40484010,434046,379831,433496,40659147)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (377889,40484010,434046,379831,433496,40659147) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (377889,40484010,434046,379831,433496,40659147)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376793)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4101079) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4101079)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4101079) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4101079)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4113411) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4113411)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4113411) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4113411)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4134565) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4134565)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4134565) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4134565)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4335747) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4335747)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4335747) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4335747)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (374053) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (374053)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (374053) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (374053)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376793)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21605042,21601607,21605199,21605164,21602728,21600652) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21605042,21601607,21605199,21605164,21602728,21600652)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21605042,21601607,21605199,21605164,21602728,21600652) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21605042,21601607,21605199,21605164,21602728,21600652)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4060499,4125350,4086261,2799719) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4060499,4125350,4086261,2799719)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4060499,4125350,4086261,2799719) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4060499,4125350,4086261,2799719)) ) I ) C; @@ -842,49 +842,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/732.sql b/inst/sql/sql_server/732.sql index fa38c2a6..e91e1f91 100644 --- a/inst/sql/sql_server/732.sql +++ b/inst/sql/sql_server/732.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45765791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45765791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45765791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45765791)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (132702) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (132702)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (132702) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (132702)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35625857) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35625857)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35625857) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35625857)) ) I ) C; @@ -265,49 +265,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/733.sql b/inst/sql/sql_server/733.sql index 217f75c4..2144c834 100644 --- a/inst/sql/sql_server/733.sql +++ b/inst/sql/sql_server/733.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45765791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45765791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45765791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45765791)) ) I ) C; @@ -163,49 +163,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/734.sql b/inst/sql/sql_server/734.sql index aa4084d6..6a678c9d 100644 --- a/inst/sql/sql_server/734.sql +++ b/inst/sql/sql_server/734.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45765791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45765791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45765791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45765791)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/735.sql b/inst/sql/sql_server/735.sql index 97d2fc70..cb7cc4f2 100644 --- a/inst/sql/sql_server/735.sql +++ b/inst/sql/sql_server/735.sql @@ -7,51 +7,51 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) ) I ) C UNION ALL SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4055224,4245975,194990,4058696,4029488,4337543,40481531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4245975,194990,4058696,4029488,4337543,40481531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4055224,4245975,4058696,4029488,4337543) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4245975,4058696,4029488,4337543)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (137977) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (137977)) ) I ) C UNION ALL SELECT 34 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262)) ) I ) C; @@ -369,49 +369,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/736.sql b/inst/sql/sql_server/736.sql index d666424c..8086819a 100644 --- a/inst/sql/sql_server/736.sql +++ b/inst/sql/sql_server/736.sql @@ -7,84 +7,101 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390)) ) I ) C UNION ALL SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4055224,4245975,194990,4058696,4029488,4337543,40481531) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4055224,4245975,194990,4058696,4029488,4337543,40481531)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4055224,4245975,4058696,4029488,4337543) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4055224,4245975,4058696,4029488,4337543)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340390,4055225,4059299,4059298,4058695,3655440,4239091,42599120,194417)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (137977) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (137977)) ) I ) C UNION ALL SELECT 34 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201,4203130,8715,4214577,45888973,45888411,45888081,45888494,4202667,45888205,45889184,4313303,2721702,262)) ) I ) C UNION ALL -SELECT 35 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +SELECT 37 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4291005) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4340383,46269835,46269818,4340386,201343,196463,201612)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4291005) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4340383,46269835,46269818,4340386,201343,196463)) ) I ) C UNION ALL -SELECT 36 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +SELECT 38 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4291005,196029,4093637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4093637,194087,196029)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4291005,196029,4093637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4093637,194087,196029)) ) I ) C UNION ALL -SELECT 37 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +SELECT 39 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2213087)) +UNION select c.concept_id + from @vocabulary_database_schema.CONCEPT c + join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2213087)) + +) I +) C UNION ALL +SELECT 40 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4340383,201343,46269835,46269818,4340386) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40482277)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4340383,46269835,46269818,4340386) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40482277)) + +) I +) C UNION ALL +SELECT 41 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM +( + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (433753)) ) I ) C; @@ -380,20 +397,46 @@ FROM ( SELECT co.person_id,co.condition_occurrence_id,co.condition_concept_id,co.visit_occurrence_id,co.condition_start_date as start_date, COALESCE(co.condition_end_date, DATEADD(day,1,co.condition_start_date)) as end_date FROM @cdm_database_schema.CONDITION_OCCURRENCE co - JOIN #Codesets cs on (co.condition_concept_id = cs.concept_id and cs.codeset_id = 36) + JOIN #Codesets cs on (co.condition_concept_id = cs.concept_id and cs.codeset_id = 38) ) C -- End Condition Occurrence Criteria -) A on A.person_id = P.person_id AND A.START_DATE >= P.OP_START_DATE AND A.START_DATE <= P.OP_END_DATE AND A.START_DATE >= DATEADD(day,-3,P.START_DATE) AND A.START_DATE <= DATEADD(day,3,P.START_DATE) ) cc on p.person_id = cc.person_id and p.event_id = cc.event_id +) A on A.person_id = P.person_id AND A.START_DATE >= P.OP_START_DATE AND A.START_DATE <= P.OP_END_DATE AND A.START_DATE >= DATEADD(day,-7,P.START_DATE) AND A.START_DATE <= DATEADD(day,7,P.START_DATE) ) cc on p.person_id = cc.person_id and p.event_id = cc.event_id +GROUP BY p.person_id, p.event_id +HAVING COUNT(cc.event_id) = 0 +-- End Correlated Criteria + +UNION ALL +-- Begin Correlated Criteria +select 1 as index_id, p.person_id, p.event_id +from #qualified_events p +LEFT JOIN ( +SELECT p.person_id, p.event_id +FROM #qualified_events P +JOIN ( + -- Begin Measurement Criteria +select C.person_id, C.measurement_id as event_id, C.start_date, C.end_date, + C.visit_occurrence_id, C.start_date as sort_date +from +( + select m.person_id,m.measurement_id,m.measurement_concept_id,m.visit_occurrence_id,m.value_as_number,m.range_high,m.range_low,m.measurement_date as start_date, DATEADD(day,1,m.measurement_date) as end_date + FROM @cdm_database_schema.MEASUREMENT m +JOIN #Codesets cs on (m.measurement_concept_id = cs.concept_id and cs.codeset_id = 39) +) C + + +-- End Measurement Criteria + +) A on A.person_id = P.person_id AND A.START_DATE >= P.OP_START_DATE AND A.START_DATE <= P.OP_END_DATE AND A.START_DATE >= DATEADD(day,-7,P.START_DATE) AND A.START_DATE <= DATEADD(day,7,P.START_DATE) ) cc on p.person_id = cc.person_id and p.event_id = cc.event_id GROUP BY p.person_id, p.event_id HAVING COUNT(cc.event_id) = 0 -- End Correlated Criteria ) CQ on E.person_id = CQ.person_id and E.event_id = CQ.event_id GROUP BY E.person_id, E.event_id - HAVING COUNT(index_id) = 1 + HAVING COUNT(index_id) > 0 ) G -- End Criteria Group ) AC on AC.person_id = pe.person_id AND AC.event_id = pe.event_id @@ -436,7 +479,107 @@ FROM -- End Condition Occurrence Criteria -) A on A.person_id = P.person_id AND A.START_DATE >= P.OP_START_DATE AND A.START_DATE <= P.OP_END_DATE AND A.START_DATE >= DATEADD(day,-3,P.START_DATE) AND A.START_DATE <= DATEADD(day,3,P.START_DATE) ) cc on p.person_id = cc.person_id and p.event_id = cc.event_id +) A on A.person_id = P.person_id AND A.START_DATE >= P.OP_START_DATE AND A.START_DATE <= P.OP_END_DATE AND A.START_DATE >= DATEADD(day,-7,P.START_DATE) AND A.START_DATE <= DATEADD(day,7,P.START_DATE) ) cc on p.person_id = cc.person_id and p.event_id = cc.event_id +GROUP BY p.person_id, p.event_id +HAVING COUNT(cc.event_id) = 0 +-- End Correlated Criteria + + ) CQ on E.person_id = CQ.person_id and E.event_id = CQ.event_id + GROUP BY E.person_id, E.event_id + HAVING COUNT(index_id) = 1 +) G +-- End Criteria Group +) AC on AC.person_id = pe.person_id AND AC.event_id = pe.event_id +) Results +; + +select 3 as inclusion_rule_id, person_id, event_id +INTO #Inclusion_3 +FROM +( + select pe.person_id, pe.event_id + FROM #qualified_events pe + +JOIN ( +-- Begin Criteria Group +select 0 as index_id, person_id, event_id +FROM +( + select E.person_id, E.event_id + FROM #qualified_events E + INNER JOIN + ( + -- Begin Correlated Criteria +select 0 as index_id, p.person_id, p.event_id +from #qualified_events p +LEFT JOIN ( +SELECT p.person_id, p.event_id +FROM #qualified_events P +JOIN ( + -- Begin Condition Occurrence Criteria +SELECT C.person_id, C.condition_occurrence_id as event_id, C.start_date, C.end_date, + C.visit_occurrence_id, C.start_date as sort_date +FROM +( + SELECT co.person_id,co.condition_occurrence_id,co.condition_concept_id,co.visit_occurrence_id,co.condition_start_date as start_date, COALESCE(co.condition_end_date, DATEADD(day,1,co.condition_start_date)) as end_date + FROM @cdm_database_schema.CONDITION_OCCURRENCE co + JOIN #Codesets cs on (co.condition_concept_id = cs.concept_id and cs.codeset_id = 40) +) C + + +-- End Condition Occurrence Criteria + +) A on A.person_id = P.person_id AND A.START_DATE >= P.OP_START_DATE AND A.START_DATE <= P.OP_END_DATE AND A.START_DATE >= DATEADD(day,-7,P.START_DATE) AND A.START_DATE <= DATEADD(day,7,P.START_DATE) ) cc on p.person_id = cc.person_id and p.event_id = cc.event_id +GROUP BY p.person_id, p.event_id +HAVING COUNT(cc.event_id) = 0 +-- End Correlated Criteria + + ) CQ on E.person_id = CQ.person_id and E.event_id = CQ.event_id + GROUP BY E.person_id, E.event_id + HAVING COUNT(index_id) = 1 +) G +-- End Criteria Group +) AC on AC.person_id = pe.person_id AND AC.event_id = pe.event_id +) Results +; + +select 4 as inclusion_rule_id, person_id, event_id +INTO #Inclusion_4 +FROM +( + select pe.person_id, pe.event_id + FROM #qualified_events pe + +JOIN ( +-- Begin Criteria Group +select 0 as index_id, person_id, event_id +FROM +( + select E.person_id, E.event_id + FROM #qualified_events E + INNER JOIN + ( + -- Begin Correlated Criteria +select 0 as index_id, p.person_id, p.event_id +from #qualified_events p +LEFT JOIN ( +SELECT p.person_id, p.event_id +FROM #qualified_events P +JOIN ( + -- Begin Condition Occurrence Criteria +SELECT C.person_id, C.condition_occurrence_id as event_id, C.start_date, C.end_date, + C.visit_occurrence_id, C.start_date as sort_date +FROM +( + SELECT co.person_id,co.condition_occurrence_id,co.condition_concept_id,co.visit_occurrence_id,co.condition_start_date as start_date, COALESCE(co.condition_end_date, DATEADD(day,1,co.condition_start_date)) as end_date + FROM @cdm_database_schema.CONDITION_OCCURRENCE co + JOIN #Codesets cs on (co.condition_concept_id = cs.concept_id and cs.codeset_id = 41) +) C + + +-- End Condition Occurrence Criteria + +) A on A.person_id = P.person_id AND A.START_DATE >= P.OP_START_DATE AND A.START_DATE <= P.OP_END_DATE AND A.START_DATE >= DATEADD(day,-7,P.START_DATE) AND A.START_DATE <= DATEADD(day,7,P.START_DATE) ) cc on p.person_id = cc.person_id and p.event_id = cc.event_id GROUP BY p.person_id, p.event_id HAVING COUNT(cc.event_id) = 0 -- End Correlated Criteria @@ -456,7 +599,11 @@ FROM (select inclusion_rule_id, person_id, event_id from #Inclusion_0 UNION ALL select inclusion_rule_id, person_id, event_id from #Inclusion_1 UNION ALL -select inclusion_rule_id, person_id, event_id from #Inclusion_2) I; +select inclusion_rule_id, person_id, event_id from #Inclusion_2 +UNION ALL +select inclusion_rule_id, person_id, event_id from #Inclusion_3 +UNION ALL +select inclusion_rule_id, person_id, event_id from #Inclusion_4) I; TRUNCATE TABLE #Inclusion_0; DROP TABLE #Inclusion_0; @@ -466,6 +613,12 @@ DROP TABLE #Inclusion_1; TRUNCATE TABLE #Inclusion_2; DROP TABLE #Inclusion_2; +TRUNCATE TABLE #Inclusion_3; +DROP TABLE #Inclusion_3; + +TRUNCATE TABLE #Inclusion_4; +DROP TABLE #Inclusion_4; + select event_id, person_id, start_date, end_date, op_start_date, op_end_date into #included_events @@ -478,9 +631,9 @@ FROM ( LEFT JOIN #inclusion_events I on I.person_id = Q.person_id and I.event_id = Q.event_id GROUP BY Q.event_id, Q.person_id, Q.start_date, Q.end_date, Q.op_start_date, Q.op_end_date ) MG -- matching groups -{3 != 0}?{ +{5 != 0}?{ -- the matching group with all bits set ( POWER(2,# of inclusion rules) - 1 = inclusion_rule_mask - WHERE (MG.inclusion_rule_mask = POWER(cast(2 as bigint),3)-1) + WHERE (MG.inclusion_rule_mask = POWER(cast(2 as bigint),5)-1) } ) Results @@ -512,49 +665,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) @@ -569,14 +694,14 @@ delete from @results_database_schema.cohort_censor_stats where cohort_definition -- END: Censored Stats } -{1 != 0 & 3 != 0}?{ +{1 != 0 & 5 != 0}?{ -- Create a temp table of inclusion rule rows for joining in the inclusion rule impact analysis select cast(rule_sequence as int) as rule_sequence into #inclusion_rules from ( - SELECT CAST(0 as int) as rule_sequence UNION ALL SELECT CAST(1 as int) as rule_sequence UNION ALL SELECT CAST(2 as int) as rule_sequence + SELECT CAST(0 as int) as rule_sequence UNION ALL SELECT CAST(1 as int) as rule_sequence UNION ALL SELECT CAST(2 as int) as rule_sequence UNION ALL SELECT CAST(3 as int) as rule_sequence UNION ALL SELECT CAST(4 as int) as rule_sequence ) IR; diff --git a/inst/sql/sql_server/737.sql b/inst/sql/sql_server/737.sql index 7477a344..d5b9bd18 100644 --- a/inst/sql/sql_server/737.sql +++ b/inst/sql/sql_server/737.sql @@ -7,100 +7,100 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444413,437663,4141062,4152360,43530637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444413,437663,4141062,4152360,43530637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444413,437663,4141062,4152360,43530637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444413,437663,4141062,4152360,43530637)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4346179,4170869,4226022,37205085,4318555,37016869,443908,4093997,4347651,440285,4087628,4143214,4039793,37397178,40493465,4199309,44784428,44784427,44784429,44782483,43530646,4086668,3197956,4094003,43530637,37017455,4087629,4150518,4184347,4326408,4200980,4229442,4239624,4300533,4308214,4099900,4094000,4087017,438963,4243806)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3025085,21490870,21490688,3020891,3025926,3025704,3017614,3011783,3004750,3008557,3007846,3016117,3006749,3016715,3018145,3015039,3009553,4329518,4174894,21490907,21490588,4212763,44809208,21490906,21490590,4039793,4077057,4039791,4151775,3006322,3022060,4265708,3025163)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4189949,4040476,4039792,4040104,4164378,4039796,4039795,4040106,4039794,4038778,45769775,4267945)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36715585,320073,42872951,435224,440689,45766061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36715585,320073,42872951,435224,440689,45766061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36715585,320073,42872951,435224,440689,45766061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36715585,320073,42872951,435224,440689,45766061)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4250734) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4250734)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4250734) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4250734)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37393856,4148615,3017732,3013650,3017501) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37393856,4148615,3017732,3013650,3017501)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3017732,3013650,3017501) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3017732,3013650,3017501)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311853,4170143,435742,4000938,4161193,4309542,132736,72410,435613) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311853,4170143,435742,4000938,4161193,4309542,132736,72410,435613)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311853,4170143,435742,4000938,4161193,4309542,132736,72410,435613) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311853,4170143,435742,4000938,4161193,4309542,132736,72410,435613)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C; @@ -1471,7 +1471,7 @@ FROM ( -- date offset strategy select event_id, person_id, - case when DATEADD(day,0,end_date) > op_end_date then op_end_date else DATEADD(day,0,end_date) end as end_date + case when DATEADD(day,3,end_date) > op_end_date then op_end_date else DATEADD(day,3,end_date) end as end_date INTO #strategy_ends from #included_events; @@ -1494,49 +1494,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/738.sql b/inst/sql/sql_server/738.sql index ca16590f..748ad4f9 100644 --- a/inst/sql/sql_server/738.sql +++ b/inst/sql/sql_server/738.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441269) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441269)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441269) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441269)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436956) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436956)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436956) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436956)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/739.sql b/inst/sql/sql_server/739.sql index 7b7241b6..ea5a43cc 100644 --- a/inst/sql/sql_server/739.sql +++ b/inst/sql/sql_server/739.sql @@ -7,100 +7,100 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267147,3031586,3050583,3007461,37393863) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267147,3031586,3050583,3007461,37393863)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37397537,4121131,4006469,42537688,437242) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37397537,4121131,4006469,42537688,437242)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37397537,4121131,4006469,42537688,437242) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37397537,4121131,4006469,42537688,437242)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4280071,36715584,45766614) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4280071,36715584,45766614)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4280071,36715584,45766614) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4280071,36715584,45766614)) ) I ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432881,4131124) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432881,4131124)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432881,4131124) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432881,4131124)) ) I ) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36715585,320073,42872951,435224,440689,45766061,4119158) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36715585,320073,42872951,435224,440689,45766061,4119158)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36715585,320073,42872951,440689,45766061,4119158) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36715585,320073,42872951,440689,45766061,4119158)) ) I ) C UNION ALL SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37393856,4148615,3017732,3013650,3017501) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37393856,4148615,3017732,3013650,3017501)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3017732,3013650,3017501) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3017732,3013650,3017501)) ) I ) C UNION ALL SELECT 27 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,44831063,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2617149,36716029,2617148,4029669,4120449,35624756,4028718,37017165,4144746,2617150,4105643,37398911,438869,4183718,37395652,4125630,4217370,4267432,36680584,37018722,4295183,4028717,44783626,4159748,4051681,37017132,4029670,4006467,40478891,36715584)) ) I ) C UNION ALL SELECT 28 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3000963,3027484) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3000963,3027484)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3000963,3027484) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3000963,3027484)) ) I ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4103532,4119134) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4103532,4119134)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4103532,4119134) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4103532,4119134)) ) I ) C; @@ -793,49 +793,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/74.sql b/inst/sql/sql_server/74.sql index b45f4720..251aa7dc 100644 --- a/inst/sql/sql_server/74.sql +++ b/inst/sql/sql_server/74.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376713,439847,432923,43530727,4148906,43530674,42535425) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376713,439847,432923,43530727,4148906,43530674,42535425)) ) I ) C; @@ -212,49 +212,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/740.sql b/inst/sql/sql_server/740.sql index c535319e..2aba10e8 100644 --- a/inst/sql/sql_server/740.sql +++ b/inst/sql/sql_server/740.sql @@ -7,50 +7,50 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4160720,46273020,46273033,4330376,4171199,4225363,4267123,4307818,4265040,4084945,4203445,4250325,37311809,44809812,36717088,4197265,40488479,40491498,4329506,4098216,4327260,4329659,44514109,37209048,37206167,3654312,40492792,4216774,4161943,4234778,44805204,43022021,44805203,44805202,42535579,4202441,3654311) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4160720,46273020,46273033,4330376,4171199,4225363,4267123,4307818,4265040,4084945,4203445,4250325,37311809,44809812,36717088,4197265,40488479,40491498,4329506,4098216,4327260,4329659,44514109,37209048,37206167,3654312,40492792,4216774,4161943,4234778,44805204,43022021,44805203,44805202,42535579,4202441,3654311)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013643) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013643)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013643) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013643)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4339214) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4339214)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4339214) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4339214)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -242,7 +242,7 @@ HAVING COUNT(cc.event_id) >= 1 ) AC on AC.person_id = pe.person_id and AC.event_id = pe.event_id ) QE - +WHERE QE.ordinal = 1 ; --- Inclusion Rule Inserts @@ -268,7 +268,7 @@ FROM ( WHERE (MG.inclusion_rule_mask = POWER(cast(2 as bigint),0)-1) } ) Results - +WHERE Results.ordinal = 1 ; @@ -290,49 +290,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/741.sql b/inst/sql/sql_server/741.sql index ef3bfcbd..b08a0f58 100644 --- a/inst/sql/sql_server/741.sql +++ b/inst/sql/sql_server/741.sql @@ -7,56 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4006469,37397537) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4006469,37397537)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4006469,37397537) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4006469,37397537)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267147,3031586,3050583,3007461,37393863) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267147,3031586,3050583,3007461,37393863)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863) - and c.invalid_reason is null - -) I -) C UNION ALL -SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM -( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317510,432571,437233,3654297,3654352,4005251,4030264,4043444,4043445,4043713,4058706,4156433,4161020,4161138,4161560,4161665,4164159,4221907,4224628,4241295,4295651,4301659,4301780,4323972,4347562,36680584,37016161,37204530,37206728,42538056,45767656) -UNION select c.concept_id - from @vocabulary_database_schema.CONCEPT c - join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317510,432571,437233,3654297,3654352,4005251,4030264,4043444,4043445,4043713,4058706,4156433,4161020,4161138,4161560,4161665,4164159,4221907,4224628,4241295,4295651,4301659,4301780,4323972,4347562,36680584,37016161,37204530,37206728,42538056,45767656) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267147,3031586,3050583,3007461,37393863)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313800,4198102) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313800,4198102)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313800,4198102) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313800,4198102)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2212705,1314273,4182536,4049372,4022139) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2212705,1314273,4182536,4049372,4022139)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2212705,1314273,4182536,4049372,4022139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2212705,1314273,4182536,4049372,4022139)) ) I ) C; @@ -548,49 +537,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/742.sql b/inst/sql/sql_server/742.sql index fef22af2..80fe14d5 100644 --- a/inst/sql/sql_server/742.sql +++ b/inst/sql/sql_server/742.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440087,40482260,46273509) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440087,40482260,46273509)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440087,40482260,46273509) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440087,40482260,46273509)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4305841,73754,436100,436962,43530739) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4305841,73754,436100,436962,43530739)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4305841,73754,436100,436962,43530739) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4305841,73754,436100,436962,43530739)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 1, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 1, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,1,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,1,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/743.sql b/inst/sql/sql_server/743.sql index a78da55a..2b1f39e6 100644 --- a/inst/sql/sql_server/743.sql +++ b/inst/sql/sql_server/743.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443727) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443727)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443727) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443727)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/744.sql b/inst/sql/sql_server/744.sql index cdd5c615..a0005c00 100644 --- a/inst/sql/sql_server/744.sql +++ b/inst/sql/sql_server/744.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4322024) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4322024)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4322024) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4322024)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/745.sql b/inst/sql/sql_server/745.sql index 2251f728..e31af425 100644 --- a/inst/sql/sql_server/745.sql +++ b/inst/sql/sql_server/745.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4116142,46269889,46273477,201606,37111373,46269952,4074815,46274082,46273478,4055019,81893,46269842,75580,46269843,46269844,46269846,46269847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4116142,46269889,46273477,201606,37111373,46269952,4074815,46274082,46273478,4055019,81893,46269842,75580,46269843,46269844,46269846,46269847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4116142,46269889,46273477,201606,37111373,46269952,4074815,46274082,46273478,4055019,81893,46269842,75580,46269843,46269844,46269846,46269847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4116142,46269889,46273477,201606,37111373,46269952,4074815,46274082,46273478,4055019,81893,46269842,75580,46269843,46269844,46269846,46269847)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/746.sql b/inst/sql/sql_server/746.sql index 83cf3db0..06d537e7 100644 --- a/inst/sql/sql_server/746.sql +++ b/inst/sql/sql_server/746.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4160720,46273020,46273033,4330376,4171199,4225363,4267123,4307818,4265040,4084945,4203445,4250325,37311809,44809812,36717088,4197265,40488479,40491498,4329506,4098216,4327260,4329659,44514109,37209048,37206167,3654312,40492792,4216774,4161943,4234778,44805204,43022021,44805203,44805202,42535579,4202441,3654311) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4160720,46273020,46273033,4330376,4171199,4225363,4267123,4307818,4265040,4084945,4203445,4250325,37311809,44809812,36717088,4197265,40488479,40491498,4329506,4098216,4327260,4329659,44514109,37209048,37206167,3654312,40492792,4216774,4161943,4234778,44805204,43022021,44805203,44805202,42535579,4202441,3654311)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4120094) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4120094)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4120094) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4120094)) ) I ) C; @@ -583,49 +583,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/747.sql b/inst/sql/sql_server/747.sql index c535319e..7ceebc8b 100644 --- a/inst/sql/sql_server/747.sql +++ b/inst/sql/sql_server/747.sql @@ -7,50 +7,50 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4160720,46273020,46273033,4330376,4171199,4225363,4267123,4307818,4265040,4084945,4203445,4250325,37311809,44809812,36717088,4197265,40488479,40491498,4329506,4098216,4327260,4329659,44514109,37209048,37206167,3654312,40492792,4216774,4161943,4234778,44805204,43022021,44805203,44805202,42535579,4202441,3654311) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4160720,46273020,46273033,4330376,4171199,4225363,4267123,4307818,4265040,4084945,4203445,4250325,37311809,44809812,36717088,4197265,40488479,40491498,4329506,4098216,4327260,4329659,44514109,37209048,37206167,3654312,40492792,4216774,4161943,4234778,44805204,43022021,44805203,44805202,42535579,4202441,3654311)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013643) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013643)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013643) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013643)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4339214) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4339214)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4339214) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4339214)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -290,49 +290,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/748.sql b/inst/sql/sql_server/748.sql index 7cfda7f0..510b6086 100644 --- a/inst/sql/sql_server/748.sql +++ b/inst/sql/sql_server/748.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81931,40319772) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81931,40319772)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81931,40319772) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81931,40319772)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4025831) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4025831)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140168) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140168)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140168) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140168)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (80809,81097,72714,75621,72705,75622,75897,79903,4153359,437082) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (80809,81097,72714,75621,72705,75622,75897,79903,4153359,437082)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (80809,81097,72714,75621,72705,75622,75897,79903,4153359,437082) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (80809,81097,72714,75621,72705,75622,75897,79903,4153359,437082)) ) I ) C; @@ -219,49 +219,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/749.sql b/inst/sql/sql_server/749.sql index 73116b0b..a2be5db8 100644 --- a/inst/sql/sql_server/749.sql +++ b/inst/sql/sql_server/749.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140168,4307925,4063431) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140168,4307925,4063431)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4307925,4063431) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4307925,4063431)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/75.sql b/inst/sql/sql_server/75.sql index d393a9d9..caf1a855 100644 --- a/inst/sql/sql_server/75.sql +++ b/inst/sql/sql_server/75.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372924,375557,443454,441874) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372924,375557,443454,441874)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/750.sql b/inst/sql/sql_server/750.sql index d032f55a..4c6f74d6 100644 --- a/inst/sql/sql_server/750.sql +++ b/inst/sql/sql_server/750.sql @@ -7,39 +7,39 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2313869,2313870,2313867,45889580,2313868,2313871,2616265,2616271,2616263,2616264,2616266,2786067,2786066,2786065,2786064,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,36904921,36915343,2001543,36904275,42732622,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,2313900,40756899,45890619,927088,40757025,4243461,4148375,4218124,36911605,36905585,36907212,36907064,2786547,2786538,43018257,43018266,2786549,2786540,43018259,43018268,40756899,40757025,42738797,42732626,2313898,2313900,42732627,2313899,42732628,2786538,2786547,43018257,43018266,42732622,2313897,40756947,45890619,927088,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,2313870,2313869,2313871,45889580,2313867,2313868,2616263,2616264,2616265,2616271,2616266) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2313869,2313870,2313867,45889580,2313868,2313871,2616265,2616271,2616263,2616264,2616266,2786067,2786066,2786065,2786064,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,36904921,36915343,2001543,36904275,42732622,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,2313900,40756899,45890619,927088,40757025,4243461,4148375,4218124,36911605,36905585,36907212,36907064,2786547,2786538,43018257,43018266,2786549,2786540,43018259,43018268,40756899,40757025,42738797,42732626,2313898,2313900,42732627,2313899,42732628,2786538,2786547,43018257,43018266,42732622,2313897,40756947,45890619,927088,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,2313870,2313869,2313871,45889580,2313867,2313868,2616263,2616264,2616265,2616271,2616266)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (319034,4185932,4006971,4069183,319843,4236658,319835,4110961,43020910,443587,4147787,45765411,4103192,4195785,4293582,45766164,321319,439846,443580,314054,444101,36713480,36717359) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (319034,4185932,4006971,4069183,319843,4236658,319835,4110961,43020910,443587,4147787,45765411,4103192,4195785,4293582,45766164,321319,439846,443580,314054,444101,36713480,36717359)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (319034,4185932,4006971,4069183,319843,4236658,319835,4110961,43020910,443587,4147787,45765411,4103192,4195785,4293582,45766164,321319,439846,443580,314054,444101,36713480,36717359) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (319034,4185932,4006971,4069183,319843,4236658,319835,4110961,43020910,443587,4147787,45765411,4103192,4195785,4293582,45766164,321319,439846,443580,314054,444101,36713480,36717359)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4322024,43020910) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4322024,43020910)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4322024,43020910) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4322024,43020910)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,4124832,44783632,4124833,44782563,44783633,715990,44783629,715989,44783628,44783631,44783637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,4124832,44783632,4124833,44782563,44783633,715990,44783629,715989,44783628,44783631,44783637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,4124832,44783632,4124833,44782563,44783633,715990,44783629,715989,44783628,44783631,44783637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,4124832,44783632,4124833,44782563,44783633,715990,44783629,715989,44783628,44783631,44783637)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -235,49 +235,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/752.sql b/inst/sql/sql_server/752.sql index 37abab30..92810a63 100644 --- a/inst/sql/sql_server/752.sql +++ b/inst/sql/sql_server/752.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201,9203)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4209742,436885,4073504,437167,4153697,4269490,435166,45888429,435155,4071449) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4209742,436885,4073504,437167,4153697,4269490,435166,45888429,435155,4071449)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4209742,436885,4073504,437167,4153697,4269490,435166,45888429,435155,4071449) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4209742,436885,4073504,437167,4153697,4269490,435166,45888429,435155,4071449)) ) I ) C; @@ -200,49 +200,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/753.sql b/inst/sql/sql_server/753.sql index 15805d60..266ce3f7 100644 --- a/inst/sql/sql_server/753.sql +++ b/inst/sql/sql_server/753.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4168046,443539,438329,444074) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4168046,443539,438329,444074)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4168046,443539,438329,444074) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4168046,443539,438329,444074)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C; @@ -186,49 +186,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/754.sql b/inst/sql/sql_server/754.sql index 11a24f4a..7c84b6ed 100644 --- a/inst/sql/sql_server/754.sql +++ b/inst/sql/sql_server/754.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4320803) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4320803)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4320803) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4320803)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443213,437611,4067106,433260) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443213,437611,4067106,433260)) ) I ) C; @@ -251,49 +251,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/755.sql b/inst/sql/sql_server/755.sql index 9a1fa366..21be8467 100644 --- a/inst/sql/sql_server/755.sql +++ b/inst/sql/sql_server/755.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4028363,434926,438422,434348) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4028363,434926,438422,434348)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4028363,434926,438422,434348) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4028363,434926,438422,434348)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4327334,37311935,37312551,440716,45757573,4132493,37311893,4109415,762971,438961,45770924,440634,439671,4322865,434274,439731,4195054,45757696,438971,46273126,4196116,4221343,45757694,46273984,761322,37209448,761323,37209447,4072340,4234762,4230365,4265441,761312,761311,761313,4230371,4230369,36687174,36687176,36687175,438751,438739,434932,432908,46269950,438744,440715) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4327334,37311935,37312551,440716,45757573,4132493,37311893,4109415,762971,438961,45770924,440634,439671,4322865,434274,439731,4195054,45757696,438971,46273126,4196116,4221343,45757694,46273984,761322,37209448,761323,37209447,4072340,4234762,4230365,4265441,761312,761311,761313,4230371,4230369,36687174,36687176,36687175,438751,438739,434932,432908,46269950,438744,440715)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4327334,37311935,37312551,440716,45757573,4132493,37311893,4109415,762971,438961,45770924,440634,439671,4322865,434274,439731,4195054,45757696,438971,46273126,4196116,4221343,45757694,46273984,761322,37209448,761323,37209447,4072340,4234762,4230365,4265441,761312,761311,761313,4230371,4230369,36687174,36687176,36687175) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4327334,37311935,37312551,440716,45757573,4132493,37311893,4109415,762971,438961,45770924,440634,439671,4322865,434274,439731,4195054,45757696,438971,46273126,4196116,4221343,45757694,46273984,761322,37209448,761323,37209447,4072340,4234762,4230365,4265441,761312,761311,761313,4230371,4230369,36687174,36687176,36687175)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -275,49 +275,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/756.sql b/inst/sql/sql_server/756.sql index edd86797..2f958b1f 100644 --- a/inst/sql/sql_server/756.sql +++ b/inst/sql/sql_server/756.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441267) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441267)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441267) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441267)) ) I ) C; @@ -154,49 +154,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/757.sql b/inst/sql/sql_server/757.sql index 218ee1c3..5d08b8c2 100644 --- a/inst/sql/sql_server/757.sql +++ b/inst/sql/sql_server/757.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (19041065,912263,937368,1151789,1119119) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (19041065,912263,937368,1151789,1119119)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35200139,1593700,1511348) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35200139,1593700,1511348)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35200139,1593700,1511348) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35200139,1593700,1511348)) ) I ) C; @@ -275,49 +275,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/759.sql b/inst/sql/sql_server/759.sql index 90dc434c..93119773 100644 --- a/inst/sql/sql_server/759.sql +++ b/inst/sql/sql_server/759.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (19041065,912263,937368,1151789,1119119) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (19041065,912263,937368,1151789,1119119)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35200139,1593700,1511348) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35200139,1593700,1511348)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35200139,1593700,1511348) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35200139,1593700,1511348)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40161532) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40161532)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40161532) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40161532)) ) I ) C; @@ -286,49 +286,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/76.sql b/inst/sql/sql_server/76.sql index 254ec7c4..02b24b0c 100644 --- a/inst/sql/sql_server/76.sql +++ b/inst/sql/sql_server/76.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (373503) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (373503)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (373503) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (373503)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/760.sql b/inst/sql/sql_server/760.sql index d34f9cc8..c5a02df3 100644 --- a/inst/sql/sql_server/760.sql +++ b/inst/sql/sql_server/760.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (19041065,912263,937368,1151789,1119119) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (19041065,912263,937368,1151789,1119119)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (19041065,912263,937368,1151789,1119119)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35200139,1593700,1511348) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35200139,1593700,1511348)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35200139,1593700,1511348) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35200139,1593700,1511348)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40161532) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40161532)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40161532) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40161532)) ) I ) C; @@ -286,49 +286,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/761.sql b/inst/sql/sql_server/761.sql index d5e67567..4312c576 100644 --- a/inst/sql/sql_server/761.sql +++ b/inst/sql/sql_server/761.sql @@ -7,62 +7,62 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4160720,46273020,46273033,4330376,4171199,4225363,4267123,4307818,4265040,4084945,4203445,4250325,37311809,44809812,36717088,4197265,40488479,40491498,4329506,4098216,4327260,4329659,44514109,37209048,37206167,3654312,40492792,4216774,4161943,4234778,44805204,43022021,44805203,44805202,42535579,4202441,3654311) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4160720,46273020,46273033,4330376,4171199,4225363,4267123,4307818,4265040,4084945,4203445,4250325,37311809,44809812,36717088,4197265,40488479,40491498,4329506,4098216,4327260,4329659,44514109,37209048,37206167,3654312,40492792,4216774,4161943,4234778,44805204,43022021,44805203,44805202,42535579,4202441,3654311)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013643) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013643)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013643) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013643)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4339214) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4339214)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4339214) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4339214)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (319034,4185932,4006971,4069183,319843,4236658,319835,4110961,43020910,443587,4147787,45765411,4103192,4195785,4293582,45766164,321319,439846,443580,314054,444101,36713480,36717359) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (319034,4185932,4006971,4069183,319843,4236658,319835,4110961,43020910,443587,4147787,45765411,4103192,4195785,4293582,45766164,321319,439846,443580,314054,444101,36713480,36717359)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (319034,4185932,4006971,4069183,319843,4236658,319835,4110961,43020910,443587,4147787,45765411,4103192,4195785,4293582,45766164,321319,439846,443580,314054,444101,36713480,36717359) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (319034,4185932,4006971,4069183,319843,4236658,319835,4110961,43020910,443587,4147787,45765411,4103192,4195785,4293582,45766164,321319,439846,443580,314054,444101,36713480,36717359)) ) I ) C; @@ -507,49 +507,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/762.sql b/inst/sql/sql_server/762.sql index d17ba81a..3cffafcd 100644 --- a/inst/sql/sql_server/762.sql +++ b/inst/sql/sql_server/762.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1337068,1321636,44507580) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1337068,1321636,44507580)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1337068,1321636,44507580) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1337068,1321636,44507580)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/763.sql b/inst/sql/sql_server/763.sql index 82d57b04..a583aeff 100644 --- a/inst/sql/sql_server/763.sql +++ b/inst/sql/sql_server/763.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1316262,1336926,44506752) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1316262,1336926,44506752)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1316262,1336926,44506752) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1316262,1336926,44506752)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/764.sql b/inst/sql/sql_server/764.sql index 81def6ad..9bda51d1 100644 --- a/inst/sql/sql_server/764.sql +++ b/inst/sql/sql_server/764.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1354118,1344992,1327256,43009013,35604848) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1354118,1344992,1327256,43009013,35604848)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1354118,1344992,1327256,43009013,35604848) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1354118,1344992,1327256,43009013,35604848)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/765.sql b/inst/sql/sql_server/765.sql index e1f223c5..8d729cbb 100644 --- a/inst/sql/sql_server/765.sql +++ b/inst/sql/sql_server/765.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442310,4195785,444031,443587,439846,443580,444101,319835,43020910) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442310,4195785,444031,443587,439846,443580,444101,319835,43020910)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442310,4195785,444031,443587,439846,443580,444101,319835,43020910) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442310,4195785,444031,443587,439846,443580,444101,319835,43020910)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37309625,4215446,4233424,4284562,4014159,44782713,312927,608954) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37309625,4215446,4233424,4284562,4014159,44782713,312927,608954)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37309625,4215446,4233424,4284562,4014159,44782713,312927,608954) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37309625,4215446,4233424,4284562,4014159,44782713,312927,608954)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/766.sql b/inst/sql/sql_server/766.sql index de13c85e..4a456b2e 100644 --- a/inst/sql/sql_server/766.sql +++ b/inst/sql/sql_server/766.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4273632) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4273632)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4273632) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4273632)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/767.sql b/inst/sql/sql_server/767.sql index df6d2f1e..4c564038 100644 --- a/inst/sql/sql_server/767.sql +++ b/inst/sql/sql_server/767.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4303055,4247261,438688,4323853,4221669,4105005,606409,4190954,606444,4191606,4033215,4002813) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4303055,4247261,438688,4323853,4221669,4105005,606409,4190954,606444,4191606,4033215,4002813)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4303055,4247261,438688,4323853,4221669,4105005,606409,4190954,606444,4191606,4033215,4002813) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4303055,4247261,438688,4323853,4221669,4105005,606409,4190954,606444,4191606,4033215,4002813)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/768.sql b/inst/sql/sql_server/768.sql index 5acd4dea..af39ae8a 100644 --- a/inst/sql/sql_server/768.sql +++ b/inst/sql/sql_server/768.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432868,4213628) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432868,4213628)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4213628) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4213628)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/769.sql b/inst/sql/sql_server/769.sql index 34c63b4b..3f1ebd6c 100644 --- a/inst/sql/sql_server/769.sql +++ b/inst/sql/sql_server/769.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (134442) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (134442)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (134442) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (134442)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/77.sql b/inst/sql/sql_server/77.sql index 0318429c..9d37b548 100644 --- a/inst/sql/sql_server/77.sql +++ b/inst/sql/sql_server/77.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4147683,40482685,28779,2002608,198798,4198381,4112183,2108900,2108878,4265600,192671,4027663) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4147683,40482685,28779,2002608,198798,4198381,4112183,2108900,2108878,4265600,192671,4027663)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40482685,28779,2002608,198798,4198381,4112183,2108900,2108878,4265600,192671,4027663) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40482685,28779,2002608,198798,4198381,4112183,2108900,2108878,4265600,192671,4027663)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4138962,4195231,4163865,195584,4222896,4296611,200769,4177387,434400,438795,4204555,24973,23808,4209746,4248429,4101104,443530,197925,4291028) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4138962,4195231,4163865,195584,4222896,4296611,200769,4177387,434400,438795,4204555,24973,23808,4209746,4248429,4101104,443530,197925,4291028)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4138962,4195231,4163865,195584,4222896,4296611,200769,4177387,434400,438795,4204555,24973,23808,4209746,4248429,4101104,443530,197925,4291028) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4138962,4195231,4163865,195584,4222896,4296611,200769,4177387,434400,438795,4204555,24973,23808,4209746,4248429,4101104,443530,197925,4291028)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -228,49 +228,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/770.sql b/inst/sql/sql_server/770.sql index 17b4dcbd..85e666b5 100644 --- a/inst/sql/sql_server/770.sql +++ b/inst/sql/sql_server/770.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (320128,316866) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (320128,316866)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (320128) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (320128)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/771.sql b/inst/sql/sql_server/771.sql index 390db252..df6771b4 100644 --- a/inst/sql/sql_server/771.sql +++ b/inst/sql/sql_server/771.sql @@ -7,72 +7,72 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314971,4235401,4169883,4071743,259044,36685455,36685457,45768915,36685451,44805713,4127073,37206131,44782927,4119933,36685454,37116690,44782563,45768983,45769019,4049971,4079978,255841,36685452,45768892,4250891,4244061,46284486,4086243,4141669,37311779,4186898,4119786,46284163,4232302,4295149,441267,36715501,45768987,44788819,37309675,4197819,44802278,36685453,4335886,45772934,2617553,4119443,4283942,46284461,45771017,2617554,45769146,45769020,36685456,36685458,4144583,4188164,4057432,40479565,3654945) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314971,4235401,4169883,4071743,259044,36685455,36685457,45768915,36685451,44805713,4127073,37206131,44782927,4119933,36685454,37116690,44782563,45768983,45769019,4049971,4079978,255841,36685452,45768892,4250891,4244061,46284486,4086243,4141669,37311779,4186898,4119786,46284163,4232302,4295149,441267,36715501,45768987,44788819,37309675,4197819,44802278,36685453,4335886,45772934,2617553,4119443,4283942,46284461,45771017,2617554,45769146,45769020,36685456,36685458,4144583,4188164,4057432,40479565,3654945)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314971,4235401,4169883,4071743,259044,36685455,36685457,45768915,36685451,44805713,4127073,37206131,44782927,4119933,36685454,37116690,44782563,45768983,45769019,4049971,4079978,255841,36685452,45768892,4250891,4244061,46284486,4086243,4141669,37311779,4186898,4119786,46284163,4232302,4295149,441267,36715501,45768987,44788819,37309675,4197819,44802278,36685453,4335886,45772934,2617553,4119443,4283942,46284461,45771017,2617554,45769146,45769020,36685456,36685458,4144583,4188164,4057432,40479565,3654945) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314971,4235401,4169883,4071743,259044,36685455,36685457,45768915,36685451,44805713,4127073,37206131,44782927,4119933,36685454,37116690,44782563,45768983,45769019,4049971,4079978,255841,36685452,45768892,4250891,4244061,46284486,4086243,4141669,37311779,4186898,4119786,46284163,4232302,4295149,441267,36715501,45768987,44788819,37309675,4197819,44802278,36685453,4335886,45772934,2617553,4119443,4283942,46284461,45771017,2617554,45769146,45769020,36685456,36685458,4144583,4188164,4057432,40479565,3654945)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4322024,44783628) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4322024,44783628)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4322024,44783628) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4322024,44783628)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,43020910,44782566,4207534,43021932,43020840,43020842,43021933,43020841,44783642) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,43020910,44782566,4207534,43021932,43020840,43020842,43021933,43020841,44783642)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,43020910,44782566,4207534,43021932,43020840,43020842,43021933,43020841,44783642) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,43020910,44782566,4207534,43021932,43020840,43020842,43021933,43020841,44783642)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2313869,2313870,2313867,45889580,2313868,2313871,2616265,2616271,2616263,2616264,2616266,2786067,2786066,2786065,2786064,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,36904921,36915343,2001543,36904275,42732622,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,2313900,40756899,45890619,927088,40757025,4243461,4148375,4218124,36911605,36905585,36907212,36907064,2786547,2786538,43018257,43018266,2786549,2786540,43018259,43018268,40756899,40757025,42738797,42732626,2313898,2313900,42732627,2313899,42732628,2786538,2786547,43018257,43018266,42732622,2313897,40756947,45890619,927088,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,2313870,2313869,2313871,45889580,2313867,2313868,2616263,2616264,2616265,2616271,2616266) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2313869,2313870,2313867,45889580,2313868,2313871,2616265,2616271,2616263,2616264,2616266,2786067,2786066,2786065,2786064,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,36904921,36915343,2001543,36904275,42732622,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,2313900,40756899,45890619,927088,40757025,4243461,4148375,4218124,36911605,36905585,36907212,36907064,2786547,2786538,43018257,43018266,2786549,2786540,43018259,43018268,40756899,40757025,42738797,42732626,2313898,2313900,42732627,2313899,42732628,2786538,2786547,43018257,43018266,42732622,2313897,40756947,45890619,927088,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,2313870,2313869,2313871,45889580,2313867,2313868,2616263,2616264,2616265,2616271,2616266)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (319034,4185932,4006971,4069183,319843,4236658,319835,4110961,43020910,443587,4147787,45765411,4103192,4195785,4293582,45766164,321319,439846,443580,314054,444101,36713480,36717359) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (319034,4185932,4006971,4069183,319843,4236658,319835,4110961,43020910,443587,4147787,45765411,4103192,4195785,4293582,45766164,321319,439846,443580,314054,444101,36713480,36717359)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (319034,4185932,4006971,4069183,319843,4236658,319835,4110961,43020910,443587,4147787,45765411,4103192,4195785,4293582,45766164,321319,439846,443580,314054,444101,36713480,36717359) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (319034,4185932,4006971,4069183,319843,4236658,319835,4110961,43020910,443587,4147787,45765411,4103192,4195785,4293582,45766164,321319,439846,443580,314054,444101,36713480,36717359)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4322024,43020910) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4322024,43020910)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4322024,43020910) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4322024,43020910)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,4124832,44783632,4124833,44782563,44783633,715990,44783629,715989,44783628,44783631,44783637) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,4124832,44783632,4124833,44782563,44783633,715990,44783629,715989,44783628,44783631,44783637)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,4124832,44783632,4124833,44782563,44783633,715990,44783629,715989,44783628,44783631,44783637) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,4124832,44783632,4124833,44782563,44783633,715990,44783629,715989,44783628,44783631,44783637)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -321,49 +321,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/772.sql b/inst/sql/sql_server/772.sql index 8a07c696..8b7a2ace 100644 --- a/inst/sql/sql_server/772.sql +++ b/inst/sql/sql_server/772.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314971,4235401,4169883,4071743,259044,36685455,36685457,45768915,36685451,44805713,4127073,37206131,44782927,4119933,36685454,37116690,44782563,45768983,45769019,4049971,4079978,255841,36685452,45768892,4250891,4244061,46284486,4086243,4141669,37311779,4186898,4119786,46284163,4232302,4295149,441267,36715501,45768987,44788819,37309675,4197819,44802278,36685453,4335886,45772934,2617553,4119443,4283942,46284461,45771017,2617554,45769146,45769020,36685456,36685458,4144583,4188164,4057432,40479565,3654945) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314971,4235401,4169883,4071743,259044,36685455,36685457,45768915,36685451,44805713,4127073,37206131,44782927,4119933,36685454,37116690,44782563,45768983,45769019,4049971,4079978,255841,36685452,45768892,4250891,4244061,46284486,4086243,4141669,37311779,4186898,4119786,46284163,4232302,4295149,441267,36715501,45768987,44788819,37309675,4197819,44802278,36685453,4335886,45772934,2617553,4119443,4283942,46284461,45771017,2617554,45769146,45769020,36685456,36685458,4144583,4188164,4057432,40479565,3654945)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314971,4235401,4169883,4071743,259044,36685455,36685457,45768915,36685451,44805713,4127073,37206131,44782927,4119933,36685454,37116690,44782563,45768983,45769019,4049971,4079978,255841,36685452,45768892,4250891,4244061,46284486,4086243,4141669,37311779,4186898,4119786,46284163,4232302,4295149,441267,36715501,45768987,44788819,37309675,4197819,44802278,36685453,4335886,45772934,2617553,4119443,4283942,46284461,45771017,2617554,45769146,45769020,36685456,36685458,4144583,4188164,4057432,40479565,3654945) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314971,4235401,4169883,4071743,259044,36685455,36685457,45768915,36685451,44805713,4127073,37206131,44782927,4119933,36685454,37116690,44782563,45768983,45769019,4049971,4079978,255841,36685452,45768892,4250891,4244061,46284486,4086243,4141669,37311779,4186898,4119786,46284163,4232302,4295149,441267,36715501,45768987,44788819,37309675,4197819,44802278,36685453,4335886,45772934,2617553,4119443,4283942,46284461,45771017,2617554,45769146,45769020,36685456,36685458,4144583,4188164,4057432,40479565,3654945)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4322024,44783628) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4322024,44783628)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4322024,44783628) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4322024,44783628)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,43020910,44782566,4207534,43021932,43020840,43020842,43021933,43020841,44783642,4120092) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,43020910,44782566,4207534,43021932,43020840,43020842,43021933,43020841,44783642,4120092)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,43020910,44782566,4207534,43021932,43020840,43020842,43021933,43020841,44783642,4120092) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44783621,4120094,715991,40493243,4119611,44783618,44783620,44783619,44782560,4013643,44783626,44783624,44782562,44783622,44783623,40482858,44783625,4121620,44782561,43020910,44782566,4207534,43021932,43020840,43020842,43021933,43020841,44783642,4120092)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2313869,2313870,2313867,45889580,2313868,2313871,2616265,2616271,2616263,2616264,2616266,2786067,2786066,2786065,2786064,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,36904921,36915343,2001543,36904275,42732622,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,2313900,40756899,45890619,927088,40757025,4243461,4148375,4218124,36911605,36905585,36907212,36907064,2786547,2786538,43018257,43018266,2786549,2786540,43018259,43018268,40756899,40757025,42738797,42732626,2313898,2313900,42732627,2313899,42732628,2786538,2786547,43018257,43018266,42732622,2313897,40756947,45890619,927088,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,2313870,2313869,2313871,45889580,2313867,2313868,2616263,2616264,2616265,2616271,2616266) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2313869,2313870,2313867,45889580,2313868,2313871,2616265,2616271,2616263,2616264,2616266,2786067,2786066,2786065,2786064,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,36904921,36915343,2001543,36904275,42732622,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,2313900,40756899,45890619,927088,40757025,4243461,4148375,4218124,36911605,36905585,36907212,36907064,2786547,2786538,43018257,43018266,2786549,2786540,43018259,43018268,40756899,40757025,42738797,42732626,2313898,2313900,42732627,2313899,42732628,2786538,2786547,43018257,43018266,42732622,2313897,40756947,45890619,927088,2786055,2786053,2786054,2786052,2786047,2786045,2786046,2786044,2313870,2313869,2313871,45889580,2313867,2313868,2616263,2616264,2616265,2616271,2616266)) ) I ) C; @@ -288,49 +288,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/773.sql b/inst/sql/sql_server/773.sql index 54b5df7f..25e265c2 100644 --- a/inst/sql/sql_server/773.sql +++ b/inst/sql/sql_server/773.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (312723) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (312723)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (312723) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (312723)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/774.sql b/inst/sql/sql_server/774.sql index d03089e1..eec15cfb 100644 --- a/inst/sql/sql_server/774.sql +++ b/inst/sql/sql_server/774.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (192680,40482858) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (192680,40482858)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (192680,40482858) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (192680,40482858)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/775.sql b/inst/sql/sql_server/775.sql index 2251f728..e31af425 100644 --- a/inst/sql/sql_server/775.sql +++ b/inst/sql/sql_server/775.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4116142,46269889,46273477,201606,37111373,46269952,4074815,46274082,46273478,4055019,81893,46269842,75580,46269843,46269844,46269846,46269847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4116142,46269889,46273477,201606,37111373,46269952,4074815,46274082,46273478,4055019,81893,46269842,75580,46269843,46269844,46269846,46269847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4116142,46269889,46273477,201606,37111373,46269952,4074815,46274082,46273478,4055019,81893,46269842,75580,46269843,46269844,46269846,46269847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4116142,46269889,46273477,201606,37111373,46269952,4074815,46274082,46273478,4055019,81893,46269842,75580,46269843,46269844,46269846,46269847)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/776.sql b/inst/sql/sql_server/776.sql index 570e8289..fcdbb38d 100644 --- a/inst/sql/sql_server/776.sql +++ b/inst/sql/sql_server/776.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40482477) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40482477)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40482477) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40482477)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/777.sql b/inst/sql/sql_server/777.sql index 4ea180a4..8115f97e 100644 --- a/inst/sql/sql_server/777.sql +++ b/inst/sql/sql_server/777.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4134867) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4134867)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4134867) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4134867)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/778.sql b/inst/sql/sql_server/778.sql index 4fb2cd75..5bd7f2f7 100644 --- a/inst/sql/sql_server/778.sql +++ b/inst/sql/sql_server/778.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4344165) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4344165)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4344165) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4344165)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/779.sql b/inst/sql/sql_server/779.sql index edab6412..b2245b55 100644 --- a/inst/sql/sql_server/779.sql +++ b/inst/sql/sql_server/779.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4079978,46273453) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4079978,46273453)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4079978,46273453) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4079978,46273453)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/78.sql b/inst/sql/sql_server/78.sql index 993849d2..5a90891e 100644 --- a/inst/sql/sql_server/78.sql +++ b/inst/sql/sql_server/78.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44784217,38001137,38001138,4169095,4103295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44784217,38001137,38001138,4169095,4103295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44784217,38001137,38001138,4103295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44784217,38001137,38001138,4103295)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21600248) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21600248)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21600248) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21600248)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45890325,45890400,2107068,4051932,4051938,2313791,2756785,4019139,2615874,2615956,2615795,2615958,2615957,2615796,2100778,2313929) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45890325,45890400,2107068,4051932,4051938,2313791,2756785,4019139,2615874,2615956,2615795,2615958,2615957,2615796,2100778,2313929)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45890325,45890400,2107068,4051932,4051938,2313791,2756785,4019139,2615874,2615956,2615795,2615958,2615957,2615796) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45890325,45890400,2107068,4051932,4051938,2313791,2756785,4019139,2615874,2615956,2615795,2615958,2615957,2615796)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C; @@ -236,49 +236,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/780.sql b/inst/sql/sql_server/780.sql index da52fba9..41b4e2bf 100644 --- a/inst/sql/sql_server/780.sql +++ b/inst/sql/sql_server/780.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4263253,46270361,314962,4143972,46273522) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4263253,46270361,314962,4143972,46273522)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4263253,46270361,314962,4143972,46273522) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4263253,46270361,314962,4143972,46273522)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/781.sql b/inst/sql/sql_server/781.sql index 4c1d727a..edab2acc 100644 --- a/inst/sql/sql_server/781.sql +++ b/inst/sql/sql_server/781.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4098292) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4098292)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098292) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098292)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/782.sql b/inst/sql/sql_server/782.sql index 83cf3db0..06d537e7 100644 --- a/inst/sql/sql_server/782.sql +++ b/inst/sql/sql_server/782.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4230911,37311810,4019824,4203365,4335825,4334807,4334808,4331964,4138036,4335824,45773079,4305021,4147613,43021737,4268930,4211674)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4160720,46273020,46273033,4330376,4171199,4225363,4267123,4307818,4265040,4084945,4203445,4250325,37311809,44809812,36717088,4197265,40488479,40491498,4329506,4098216,4327260,4329659,44514109,37209048,37206167,3654312,40492792,4216774,4161943,4234778,44805204,43022021,44805203,44805202,42535579,4202441,3654311) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4160720,46273020,46273033,4330376,4171199,4225363,4267123,4307818,4265040,4084945,4203445,4250325,37311809,44809812,36717088,4197265,40488479,40491498,4329506,4098216,4327260,4329659,44514109,37209048,37206167,3654312,40492792,4216774,4161943,4234778,44805204,43022021,44805203,44805202,42535579,4202441,3654311)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42732622,21491681,2313897,42732626,2313898,40756947,42732628,42738797,42732627,2313899,40756899,2313900,45890619,927088,40217358,42738797,42732627,2313899,2313900,2313898,42732628,40757025,40756857,40756944)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4120094) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4120094)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4120094) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4120094)) ) I ) C; @@ -583,49 +583,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/783.sql b/inst/sql/sql_server/783.sql index 0382c654..b020f858 100644 --- a/inst/sql/sql_server/783.sql +++ b/inst/sql/sql_server/783.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2107457) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2107457)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2107457) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2107457)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/784.sql b/inst/sql/sql_server/784.sql index f26e8c17..3ceaad45 100644 --- a/inst/sql/sql_server/784.sql +++ b/inst/sql/sql_server/784.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36909628,2001495,36909348,2313812,2725490,2725493,2725499,2725502,2725508,2725511,2725517,2725520) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36909628,2001495,36909348,2313812,2725490,2725493,2725499,2725502,2725508,2725511,2725517,2725520)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36909628,2001495,36909348,2313812,2725490,2725493,2725499,2725502,2725508,2725511,2725517,2725520) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36909628,2001495,36909348,2313812,2725490,2725493,2725499,2725502,2725508,2725511,2725517,2725520)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/785.sql b/inst/sql/sql_server/785.sql index 90d9c707..15ce012a 100644 --- a/inst/sql/sql_server/785.sql +++ b/inst/sql/sql_server/785.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441172,432810,4299815,45889914,4168004,760847,442013,760858) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441172,432810,4299815,45889914,4168004,760847,442013,760858)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441172,432810,4299815,45889914,4168004,760847,442013,760858) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441172,432810,4299815,45889914,4168004,760847,442013,760858)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (966956,45889089,45889914,2102559,45887539,4081416,45887796,4248822,4145455,966913,45888210) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (966956,45889089,45889914,2102559,45887539,4081416,45887796,4248822,4145455,966913,45888210)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (966956,45889089,2102559,45887539,4081416,45887796,4248822,4145455,966913,45888210) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (966956,45889089,2102559,45887539,4081416,45887796,4248822,4145455,966913,45888210)) ) I ) C; @@ -224,49 +224,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/788.sql b/inst/sql/sql_server/788.sql index 313dd3ab..45b236e0 100644 --- a/inst/sql/sql_server/788.sql +++ b/inst/sql/sql_server/788.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112853) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112853)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112853) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112853)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36532266,36529727,36537070,36553611,36525094,36554207,36522800,36559496,3662037,36559188,44501469,36562806,36567470,36531481,36557230,36560656,36524836,36536533,36564893,36544828,36566266,36520271,36529700,36547630,36530601,36546431,36534984,36530111,36549237,36551860,36532096,36541763,36534956,4080742,603292,4175531,4201477,4089865,36562380,44501025,36527921,36549156,36550441,36551719,36544055,36540326,36564531,36403034,36402992,36403054,36403041,36403043,36559458,36561444,36544583,36552924,36558840,36562484,36523657,36518203,36552997,36534879,36557634,36542241,36527726,36548875,36521708,36557342,36567600,36547783,36517708,36542171,36545589,36521925,36563852,36559944,36560924,36550545,36540893,36531836,36554497,36518236,36522728,36522361,36544449,36542903,36541815,36537301,36545066,36517645,36531000,36550597,36532858,36552167,36559611,36559864,36563662,36548046,36558562,36537165,36560835,36550456,36567866,36549847,36553636,36543212,36542791,36558315,36562966,36562434,36559794,36523028,36566118,36530731,36543496,36529743,36532139,36538241,36527584,36541064,36565880,36524263,36552121,36536968,36533524,36521995,36560535,36540250,36552589,36522859,36523574,36534402,36523513,36558702,36540417,36537778,36559478,36559269,36567615,36548429,36521363,36562037,36547579,36522989,36519476,36549622,36524276,36519461,36560691,44502559,36533887,36560569,44499659,44500664,42512254,42512707,36561161,36538919,36556000,36549025,36526587,36553345,36558045,36566783,36561649,36533269,36531399,36544559,36535414,36562047,36559859,36561110,36549110,36540213,36567173,36566968,36538145,36560911,36539856,36563615,36552672,36562163,36562803,36556740,36556920,36548475,36553343,36556248,36539400,36552848,36564681,36530831,36525289,36522514,36528636,36530721,36563022,36527656,36519441,36555165,36542401,36549055,36529963,36546913,36540345,36552782,36522605,36559593,36552805,44499974,42512327,36547986,36536755,36522677,36521162,36543855,36543906,36560717,36531485,36533064,36558971,36526869,36535279,36543871,36564647,36530708,36558474,36528284,36553853,44502997,42512321,36557036,36540021,36554839,36536427,36542404,36553240,36560807,36519999,36537392,36529381,44501141,36522453,36532906,36534320,36530356,36520875,36537327,44500728,44502228,44500293,36403075,36559945) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36532266,36529727,36537070,36553611,36525094,36554207,36522800,36559496,3662037,36559188,44501469,36562806,36567470,36531481,36557230,36560656,36524836,36536533,36564893,36544828,36566266,36520271,36529700,36547630,36530601,36546431,36534984,36530111,36549237,36551860,36532096,36541763,36534956,4080742,603292,4175531,4201477,4089865,36562380,44501025,36527921,36549156,36550441,36551719,36544055,36540326,36564531,36403034,36402992,36403054,36403041,36403043,36559458,36561444,36544583,36552924,36558840,36562484,36523657,36518203,36552997,36534879,36557634,36542241,36527726,36548875,36521708,36557342,36567600,36547783,36517708,36542171,36545589,36521925,36563852,36559944,36560924,36550545,36540893,36531836,36554497,36518236,36522728,36522361,36544449,36542903,36541815,36537301,36545066,36517645,36531000,36550597,36532858,36552167,36559611,36559864,36563662,36548046,36558562,36537165,36560835,36550456,36567866,36549847,36553636,36543212,36542791,36558315,36562966,36562434,36559794,36523028,36566118,36530731,36543496,36529743,36532139,36538241,36527584,36541064,36565880,36524263,36552121,36536968,36533524,36521995,36560535,36540250,36552589,36522859,36523574,36534402,36523513,36558702,36540417,36537778,36559478,36559269,36567615,36548429,36521363,36562037,36547579,36522989,36519476,36549622,36524276,36519461,36560691,44502559,36533887,36560569,44499659,44500664,42512254,42512707,36561161,36538919,36556000,36549025,36526587,36553345,36558045,36566783,36561649,36533269,36531399,36544559,36535414,36562047,36559859,36561110,36549110,36540213,36567173,36566968,36538145,36560911,36539856,36563615,36552672,36562163,36562803,36556740,36556920,36548475,36553343,36556248,36539400,36552848,36564681,36530831,36525289,36522514,36528636,36530721,36563022,36527656,36519441,36555165,36542401,36549055,36529963,36546913,36540345,36552782,36522605,36559593,36552805,44499974,42512327,36547986,36536755,36522677,36521162,36543855,36543906,36560717,36531485,36533064,36558971,36526869,36535279,36543871,36564647,36530708,36558474,36528284,36553853,44502997,42512321,36557036,36540021,36554839,36536427,36542404,36553240,36560807,36519999,36537392,36529381,44501141,36522453,36532906,36534320,36530356,36520875,36537327,44500728,44502228,44500293,36403075,36559945)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36532266,36529727,36537070,36553611,36525094,36554207,36522800,36559496,3662037,36559188,44501469,36562806,36567470,36531481,36557230,36560656,36524836,36536533,36564893,36544828,36566266,36520271,36529700,36547630,36530601,36546431,36534984,36530111,36549237,36551860,36532096,36541763,36534956,4080742,603292,4175531,4201477,4089865,36562380,44501025,36527921,36549156,36550441,36551719,36544055,36540326,36564531,36403034,36402992,36403054,36403041,36403043,36559458,36561444,36544583,36552924,36558840,36562484,36523657,36518203,36552997,36534879,36557634,36542241,36527726,36548875,36521708,36557342,36567600,36547783,36517708,36542171,36545589,36521925,36563852,36559944,36560924,36550545,36540893,36531836,36554497,36518236,36522728,36522361,36544449,36542903,36541815,36537301,36545066,36517645,36531000,36550597,36532858,36552167,36559611,36559864,36563662,36548046,36558562,36537165,36560835,36550456,36567866,36549847,36553636,36543212,36542791,36558315,36562966,36562434,36559794,36523028,36566118,36530731,36543496,36529743,36532139,36538241,36527584,36541064,36565880,36524263,36552121,36536968,36533524,36521995,36560535,36540250,36552589,36522859,36523574,36534402,36523513,36558702,36540417,36537778,36559478,36559269,36567615,36548429,36521363,36562037,36547579,36522989,36519476,36549622,36524276,36519461,36560691,44502559,36533887,36560569,44499659,44500664,42512254,42512707,36561161,36538919,36556000,36549025,36526587,36553345,36558045,36566783,36561649,36533269,36531399,36544559,36535414,36562047,36559859,36561110,36549110,36540213,36567173,36566968,36538145,36560911,36539856,36563615,36552672,36562163,36562803,36556740,36556920,36548475,36553343,36556248,36539400,36552848,36564681,36530831,36525289,36522514,36528636,36530721,36563022,36527656,36519441,36555165,36542401,36549055,36529963,36546913,36540345,36552782,36522605,36559593,36552805,44499974,42512327,36547986,36536755,36522677,36521162,36543855,36543906,36560717,36531485,36533064,36558971,36526869,36535279,36543871,36564647,36530708,36558474,36528284,36553853,44502997,42512321,36557036,36540021,36554839,36536427,36542404,36553240,36560807,36519999,36537392,36529381,44501141,36522453,36532906,36534320,36530356,36520875,36537327,44500728,44502228,44500293,36403075,36559945) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36532266,36529727,36537070,36553611,36525094,36554207,36522800,36559496,3662037,36559188,44501469,36562806,36567470,36531481,36557230,36560656,36524836,36536533,36564893,36544828,36566266,36520271,36529700,36547630,36530601,36546431,36534984,36530111,36549237,36551860,36532096,36541763,36534956,4080742,603292,4175531,4201477,4089865,36562380,44501025,36527921,36549156,36550441,36551719,36544055,36540326,36564531,36403034,36402992,36403054,36403041,36403043,36559458,36561444,36544583,36552924,36558840,36562484,36523657,36518203,36552997,36534879,36557634,36542241,36527726,36548875,36521708,36557342,36567600,36547783,36517708,36542171,36545589,36521925,36563852,36559944,36560924,36550545,36540893,36531836,36554497,36518236,36522728,36522361,36544449,36542903,36541815,36537301,36545066,36517645,36531000,36550597,36532858,36552167,36559611,36559864,36563662,36548046,36558562,36537165,36560835,36550456,36567866,36549847,36553636,36543212,36542791,36558315,36562966,36562434,36559794,36523028,36566118,36530731,36543496,36529743,36532139,36538241,36527584,36541064,36565880,36524263,36552121,36536968,36533524,36521995,36560535,36540250,36552589,36522859,36523574,36534402,36523513,36558702,36540417,36537778,36559478,36559269,36567615,36548429,36521363,36562037,36547579,36522989,36519476,36549622,36524276,36519461,36560691,44502559,36533887,36560569,44499659,44500664,42512254,42512707,36561161,36538919,36556000,36549025,36526587,36553345,36558045,36566783,36561649,36533269,36531399,36544559,36535414,36562047,36559859,36561110,36549110,36540213,36567173,36566968,36538145,36560911,36539856,36563615,36552672,36562163,36562803,36556740,36556920,36548475,36553343,36556248,36539400,36552848,36564681,36530831,36525289,36522514,36528636,36530721,36563022,36527656,36519441,36555165,36542401,36549055,36529963,36546913,36540345,36552782,36522605,36559593,36552805,44499974,42512327,36547986,36536755,36522677,36521162,36543855,36543906,36560717,36531485,36533064,36558971,36526869,36535279,36543871,36564647,36530708,36558474,36528284,36553853,44502997,42512321,36557036,36540021,36554839,36536427,36542404,36553240,36560807,36519999,36537392,36529381,44501141,36522453,36532906,36534320,36530356,36520875,36537327,44500728,44502228,44500293,36403075,36559945)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/789.sql b/inst/sql/sql_server/789.sql index 6c56feaa..c36a41d5 100644 --- a/inst/sql/sql_server/789.sql +++ b/inst/sql/sql_server/789.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37116832,4195300,36563734,603116,36528722,36528277,36527332,608242,36534647,36540148,36534911,36558593,44501313,36533353,36522408,44501749,36532250,36521643,36540351,36546773,44503120,36538511,36537550,44501040,36534225,4272187,40483278,37116869,40571980,4174444,37016197,4081049,36530743,44502360,36521928,44500098,36559512,44499664,36533762,36560370,36519363,44501237,36562899,36549985,36518040,36564143,44501601,36525256,36536557,44502900,44499934,4148715,36520639,607981,44500527,36541894,36536638,608241,36537159,36566931,44501864,36542297,44499587,36538176,36555099,36550517,36543995,36535029,36525693,36530219,44503571,603174,36531639,36556753,44500906,36520925,4099190,42513833,42514169,42514160,42513835,609186,609185,602047,36717624,602048,602049,602050,4298749) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37116832,4195300,36563734,603116,36528722,36528277,36527332,608242,36534647,36540148,36534911,36558593,44501313,36533353,36522408,44501749,36532250,36521643,36540351,36546773,44503120,36538511,36537550,44501040,36534225,4272187,40483278,37116869,40571980,4174444,37016197,4081049,36530743,44502360,36521928,44500098,36559512,44499664,36533762,36560370,36519363,44501237,36562899,36549985,36518040,36564143,44501601,36525256,36536557,44502900,44499934,4148715,36520639,607981,44500527,36541894,36536638,608241,36537159,36566931,44501864,36542297,44499587,36538176,36555099,36550517,36543995,36535029,36525693,36530219,44503571,603174,36531639,36556753,44500906,36520925,4099190,42513833,42514169,42514160,42513835,609186,609185,602047,36717624,602048,602049,602050,4298749)) ) I ) C; @@ -99,49 +99,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/79.sql b/inst/sql/sql_server/79.sql index c034bbb1..400d7a41 100644 --- a/inst/sql/sql_server/79.sql +++ b/inst/sql/sql_server/79.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4027133,45889365,4090651,4032243,38003431) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4027133,45889365,4090651,4032243,38003431)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4027133,45889365,4090651,4032243,38003431) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4027133,45889365,4090651,4032243,38003431)) ) I ) C; @@ -301,49 +301,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/790.sql b/inst/sql/sql_server/790.sql index 05ecf2a0..5e689a0a 100644 --- a/inst/sql/sql_server/790.sql +++ b/inst/sql/sql_server/790.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36558447,36542645,36557132,36518465,36555908,36532893,36529793,36539611,36554231,36563434,36524507,36553857,36522964,36528383,36547074,36550422,36534614,36557152,36534051,36546447,36555551,36549328,36541764,36555420,36549710,44500019,44500410,44500863,44501634,44500874,44502935,36529078,44503086,44499501,44500411,44500245,44502529,36524553,36546337,36556767,44500059,36556262,36529455,36552724,36552772,36551689,44499436,36522002,36535150,36547484,36518315,44500353,44501009,36548040,36565190,36541062,36536908,36553700,44500060,36566260,36538847,44501800,44502946,44502705,44502947,44502776,44499892,36566477,44501639,44499893,44499550,44500141,44500596,44501083,44498956,44501728,44500416,44500792,44500026,36556699,44501440,44501798,44501145,44503020,44500198,4110575,36565411,36562519,36519060,36567436,36523630,36527745,36560775,36543319,36559272,36522763,36518156,36542446,36538960,36560731,36559392,44499480,36536873,36548322,36547476,36567536,36543160,36549206,36557668,36518243,44499865,36539064,36533090,44502074,36565653,36539283,36542051,36566994,36547508,36520412,36523693,36549720,36542290,36548476,36544256,36521999,36521726,44500640,44500018,36553127,36556197,36536335,36552518,36540380,36548330,36521414,36538727,36540503,36560788,36544782,36540392,42512946,44502874,36537698,36566228,36558147,36543573,36519246,36529294,36567725,36545562,36546634,36552278,36565009,36531547,36558278,36550771,36528217,36535318,36537464,36522380,36560734,36565088,36555713,36556087,36561054,36566374,36519781,36525988,36522394,36524857,36517381,36543543,36557600,36536450,36558939,36524969,36560037,36534477,36558539,36530653,36530931,36545613,36565751,36535494,36524885,36542371,36565587,36531202,36520266,36562617,36556759,36544152,36548145,36529046,36541312,36535559,36548737,36529639,36543469,36553110,36521098,36526783,36531149,36557202,36565575,36531073,36521548,36531685,36562766,36529222,36525852,36558010,36549033,36524678,1553191,36403011,42512863,36552870,36520575,36532404,36531969,36557469,36536398,36564211,36544279,36549877,36550353,36521492,36545148,36545386,36531137,36542980,36566533,36551676,36528898,36543940,36559942,36520130,36563654,36536660,36566497,36540131,36561239,36518296,36547920,36531042,36524169,36557064,36522104,36539158,36554404,36552986,36545083,36522099,36546777,36517757,36561692,36558419,36528298,36550790,36525949,36531645,36527191,36540812,36540732,36529355,36537537,36520077,36531094,36535590,36539402,36549071,36563818,36538646,36556972,36561086,36522561,36530057,44500738,36530655,36564477,36526950,36517666,36527461,36554357,44500461,44502115,36534873,36531004,42512414,36531875,36519642,36561723,36546355,36537969,36528392,36522214,36555932,36530988,36526752,36567435,36563922,42512903,42512762,42512897,42511614,42512140,42511879,42512553,42512189,42511613,42511881,42512948,42512830,44499512,44501020,44501649,44500256,44501088,44500736,36542547,44500037,44501148,44502709,44502112,44501952,44501804,44502707,44499511,44499921,44503091,36545379,44502951,44500071,44502029,44502395,44498960,44499747,44501018,36539571,36524523,36521082,36544470,36527693,36557186,36565089,36555022,36556793,36539431,36519395,36563756,36529349,36540509,36541244,36550650,36517840,36565948,36559749,36527779,36524866,36563181,36549340,36521918,36541030,1553226,36524683,36566070,44501142,36548971,44502175,36546604,36549436,44500138,36525823,44500648,36528154,36534597,36525312,36522630,36519514,36532476,36524271,36523103,36536938,36536825,36545794,36531112,36545535,36560294,36525001,36541474,36553253,36533218,36540046,36518112,36518519,36536625,36535195,36549571,36565794,36533966,36562620,36530536,36532339,36544906,36544368,36519550,36519612,36557375,36544212,36528818,36537155,36560559,36550073,36538038,36541753,36529077,36533185,36531080,36526290,36560139,36524360,36542877,36549367,36531329,36552602,36713361,36715911,42872396,37208245,36717495,37016239,36715912,433143,4247719,432837,197500,441800,438979,438699,74582,436635,437798,432257,36715890,36554145,36552072,36559888,36537543,36518870,36522672,36555825,36534830,36517916,36561931,36536967,36517398,36530154,36549405,36539813,36538316,36526627,36543599,44501787,36517290,36553482,44500642,36534141,36560403,36548695,36554550,42512063,42511855,42512255,42512100,42512435,42512621,36561333,42512292,42512512,42512076,44502544,44499559,44503025,44500506,44501412,44503026,36533326,44502879,44502397,44503028,44500304,44503027,36525509,36517899,36526187,36549964,36542597,36544807,36549748,36539924,36552163,36529934,36554217,36529289,36533942,36526140,36520143,36567087,36519910,36519232,36566786,36557736,36564665,36566061,36526727,36554686,36554160,36537912,36538264,36532897,36537403,36561147,36530903,36543448,36533759,36534338,36567224,36523401,36557257,36532842,36551623,36536791,36558792,36557603,36526294,36518244,36521279,36525556,36565914,36534919,36555203,36537994,36554714,36565644,36520141,36545571,36554324,36552920,44500431,36562334,36560344,36551710,36552408,36527041,36565162,36548553,36525304,36522062,36542895,36543425,36525603,36520534,36521183,36540801,36564730,36553691,36517455,36564964,36524240,36548674,36517193,36524701,36523116,36547294,36545206,36543530,36532660,44502807,36520299,36555648,36528604,36542595,36549227,44502263,44502264,44500982,36531259,36561688,36558052,36521670,36517247,36545686,36546236,36531376,36548251,36561219,36548515,36545257,36546914,36557362,36533572,36525772,36523276,36521119,36563886,36555534,36531401,36545669,36532773,36533849,36562674,36563996,36547289,36539862,36524266,36554114,36526725,36540554,36538007,36566885,36519990,44500195,36540621,36518490,44502441,44501880,36555650,36552866,44500724,36530925,36537978,36560108,36559489,36526362,36534066,44501720,36521028,44501850,36568264,36568049,36568046,36568349,36568145,36568113,36550053,36568192,36568103,36568035,36568126,36568095,36526512,36524297,36520999,36534160,36542327,36521018,36530672,36539812,36552671,36566220,36555955,36555879,36552799,36566833,36518724,44499547,36528574,44499548,36549738,36567493,44499966,36554294,44503088,36518497,44500502,443382,443383,443381,443390,443391,443384,4322376,4256776,603311,603310,435754,4089661,608070,35624316,35624314,79740,4200514,80045,4246125,4307687,40487050,4180792,4180790,4184850,4184849,4312001,764981,4308015,4312240,4181344,4095430,37018661,37018659,37018665,438090,36549133,36524657,37016240,37016237,36557461,36561659,36541150,36520829,36533114,4112730,44499930,36525049,4289091,4289090,4289092,4309574,36716620,4170421,36565176,4289245,4289247,4289246,36528352,36565308,36716972,36716975,36565382,36561397,443396,36521495,36533946,36562573,607409,607424,36562648,36538064,36562748,44500977,36550477,36538280,40481902,44500118,36533499,4310858,36541702,608069,36554146,36562304,4196256,4196264,36551275,436348,36563626,36522659,36543282,36522868,36535198,4311480,44501181,36517992,36567229,36550796,36559081,4180791,36550943,36518308,4180911,195482,36547058,36542921,36555229,36522458,36683301,4201482,36544071,44502570,4283611,36544141,36523658,4201618,36683531,36552451,36544372,36544324,36564829,36532149,37018673,44502130,36527351,36543690,44502405,36531478,36552041,40484156,36547935,36535776,44502351,36541013,36561698,36533386,36528366,36530984,36543695,36527986,36531184,36548113,36520820,36531299,36524117,36522425,36517800,36544156,36539303,36533201,36549024,44502940,44501524,44499890,36538991,36523302,36552722,36520099,44499504,44501495,44500413,36562328,36562377,36550349,44502717,44499654,36536658,36521693,36539545,36532105,36540242,44500655,36561654,36523927,36551546,36559932,36542672,36519618,36536724,36539328,36517480,36543825,36540894,36556784,36541105,36559504,36557136,36559903,36535623,36528720,36517913,36557689,36525408,36549607,36542114,36534456,36522352,36565894,36559232,42512689,42512838,1553182,42512700,42512803,1553312,44504421,44502094,36538491,1553487,44504343,44504337,36561605,44504380,36518316,44502398,44499565,44501415,36524059,36540653,36545664,44499754,44501660,44503097,36561240,44500082,36557933,36518448,36542121,36564204,36518916,36543954,36562813,36567508,36565790,36558313,36543602,36545158,44502326,44501400,44499722,40492937,4207182,4116240,4149847,4193165,4207183,4115028,4193872,4151260,4193871,36564935,36534455,36531573,36525830,36525291,36530070,36535018,36539890,36536333,36533511,36524229,36545002,36534368,36567934,36539322,36517991,36537785,36520709,36560970,36567442,36544338,36567564,36554334,36541351,36563488,36534602,36553697,36548401,36567938,36527398,36567284,36529981,36559065,36534469,36560599,36524579,36555110,36531345,36555504,36537069,36537267,44499427,36554547,36553758,36522738,44502613,36523463,36557364,36557178,36525678,36525747,36557918,4003675,3184757,36542610,36527926,36527200,36543626,36560218,36545127,36545459,36546090,36562779,36530062,36545582,36562295,36563627,36530354,36531858,36531237,36565099,36532303,36548777,36565239,36533777,36550429,36517733,36534151,36533370,36549970,36567883,36535243,36534307,36567046,4177238,36519818,36715921,36535747,443398,4180780,4313335,40489405,192836,440037,36553517,36537207,44499714,36554254,44500574,44500119,36521175,36554078,44501701,44501390,44501248,36540067,36540055,36540163,36540270,36523926,36523427,36557029,35608090,36558416,36542091,36558650,36542910,36545296,36544811,36528573,36531072,36547642,36547702,42512558,36565117,42512658,36551433,36518729,36567392,36552548,36551929,36537300,36555850,36540747,36557189,36562464,36564952,36549291,36550281,36550972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36558447,36542645,36557132,36518465,36555908,36532893,36529793,36539611,36554231,36563434,36524507,36553857,36522964,36528383,36547074,36550422,36534614,36557152,36534051,36546447,36555551,36549328,36541764,36555420,36549710,44500019,44500410,44500863,44501634,44500874,44502935,36529078,44503086,44499501,44500411,44500245,44502529,36524553,36546337,36556767,44500059,36556262,36529455,36552724,36552772,36551689,44499436,36522002,36535150,36547484,36518315,44500353,44501009,36548040,36565190,36541062,36536908,36553700,44500060,36566260,36538847,44501800,44502946,44502705,44502947,44502776,44499892,36566477,44501639,44499893,44499550,44500141,44500596,44501083,44498956,44501728,44500416,44500792,44500026,36556699,44501440,44501798,44501145,44503020,44500198,4110575,36565411,36562519,36519060,36567436,36523630,36527745,36560775,36543319,36559272,36522763,36518156,36542446,36538960,36560731,36559392,44499480,36536873,36548322,36547476,36567536,36543160,36549206,36557668,36518243,44499865,36539064,36533090,44502074,36565653,36539283,36542051,36566994,36547508,36520412,36523693,36549720,36542290,36548476,36544256,36521999,36521726,44500640,44500018,36553127,36556197,36536335,36552518,36540380,36548330,36521414,36538727,36540503,36560788,36544782,36540392,42512946,44502874,36537698,36566228,36558147,36543573,36519246,36529294,36567725,36545562,36546634,36552278,36565009,36531547,36558278,36550771,36528217,36535318,36537464,36522380,36560734,36565088,36555713,36556087,36561054,36566374,36519781,36525988,36522394,36524857,36517381,36543543,36557600,36536450,36558939,36524969,36560037,36534477,36558539,36530653,36530931,36545613,36565751,36535494,36524885,36542371,36565587,36531202,36520266,36562617,36556759,36544152,36548145,36529046,36541312,36535559,36548737,36529639,36543469,36553110,36521098,36526783,36531149,36557202,36565575,36531073,36521548,36531685,36562766,36529222,36525852,36558010,36549033,36524678,1553191,36403011,42512863,36552870,36520575,36532404,36531969,36557469,36536398,36564211,36544279,36549877,36550353,36521492,36545148,36545386,36531137,36542980,36566533,36551676,36528898,36543940,36559942,36520130,36563654,36536660,36566497,36540131,36561239,36518296,36547920,36531042,36524169,36557064,36522104,36539158,36554404,36552986,36545083,36522099,36546777,36517757,36561692,36558419,36528298,36550790,36525949,36531645,36527191,36540812,36540732,36529355,36537537,36520077,36531094,36535590,36539402,36549071,36563818,36538646,36556972,36561086,36522561,36530057,44500738,36530655,36564477,36526950,36517666,36527461,36554357,44500461,44502115,36534873,36531004,42512414,36531875,36519642,36561723,36546355,36537969,36528392,36522214,36555932,36530988,36526752,36567435,36563922,42512903,42512762,42512897,42511614,42512140,42511879,42512553,42512189,42511613,42511881,42512948,42512830,44499512,44501020,44501649,44500256,44501088,44500736,36542547,44500037,44501148,44502709,44502112,44501952,44501804,44502707,44499511,44499921,44503091,36545379,44502951,44500071,44502029,44502395,44498960,44499747,44501018,36539571,36524523,36521082,36544470,36527693,36557186,36565089,36555022,36556793,36539431,36519395,36563756,36529349,36540509,36541244,36550650,36517840,36565948,36559749,36527779,36524866,36563181,36549340,36521918,36541030,1553226,36524683,36566070,44501142,36548971,44502175,36546604,36549436,44500138,36525823,44500648,36528154,36534597,36525312,36522630,36519514,36532476,36524271,36523103,36536938,36536825,36545794,36531112,36545535,36560294,36525001,36541474,36553253,36533218,36540046,36518112,36518519,36536625,36535195,36549571,36565794,36533966,36562620,36530536,36532339,36544906,36544368,36519550,36519612,36557375,36544212,36528818,36537155,36560559,36550073,36538038,36541753,36529077,36533185,36531080,36526290,36560139,36524360,36542877,36549367,36531329,36552602,36713361,36715911,42872396,37208245,36717495,37016239,36715912,433143,4247719,432837,197500,441800,438979,438699,74582,436635,437798,432257,36715890,36554145,36552072,36559888,36537543,36518870,36522672,36555825,36534830,36517916,36561931,36536967,36517398,36530154,36549405,36539813,36538316,36526627,36543599,44501787,36517290,36553482,44500642,36534141,36560403,36548695,36554550,42512063,42511855,42512255,42512100,42512435,42512621,36561333,42512292,42512512,42512076,44502544,44499559,44503025,44500506,44501412,44503026,36533326,44502879,44502397,44503028,44500304,44503027,36525509,36517899,36526187,36549964,36542597,36544807,36549748,36539924,36552163,36529934,36554217,36529289,36533942,36526140,36520143,36567087,36519910,36519232,36566786,36557736,36564665,36566061,36526727,36554686,36554160,36537912,36538264,36532897,36537403,36561147,36530903,36543448,36533759,36534338,36567224,36523401,36557257,36532842,36551623,36536791,36558792,36557603,36526294,36518244,36521279,36525556,36565914,36534919,36555203,36537994,36554714,36565644,36520141,36545571,36554324,36552920,44500431,36562334,36560344,36551710,36552408,36527041,36565162,36548553,36525304,36522062,36542895,36543425,36525603,36520534,36521183,36540801,36564730,36553691,36517455,36564964,36524240,36548674,36517193,36524701,36523116,36547294,36545206,36543530,36532660,44502807,36520299,36555648,36528604,36542595,36549227,44502263,44502264,44500982,36531259,36561688,36558052,36521670,36517247,36545686,36546236,36531376,36548251,36561219,36548515,36545257,36546914,36557362,36533572,36525772,36523276,36521119,36563886,36555534,36531401,36545669,36532773,36533849,36562674,36563996,36547289,36539862,36524266,36554114,36526725,36540554,36538007,36566885,36519990,44500195,36540621,36518490,44502441,44501880,36555650,36552866,44500724,36530925,36537978,36560108,36559489,36526362,36534066,44501720,36521028,44501850,36568264,36568049,36568046,36568349,36568145,36568113,36550053,36568192,36568103,36568035,36568126,36568095,36526512,36524297,36520999,36534160,36542327,36521018,36530672,36539812,36552671,36566220,36555955,36555879,36552799,36566833,36518724,44499547,36528574,44499548,36549738,36567493,44499966,36554294,44503088,36518497,44500502,443382,443383,443381,443390,443391,443384,4322376,4256776,603311,603310,435754,4089661,608070,35624316,35624314,79740,4200514,80045,4246125,4307687,40487050,4180792,4180790,4184850,4184849,4312001,764981,4308015,4312240,4181344,4095430,37018661,37018659,37018665,438090,36549133,36524657,37016240,37016237,36557461,36561659,36541150,36520829,36533114,4112730,44499930,36525049,4289091,4289090,4289092,4309574,36716620,4170421,36565176,4289245,4289247,4289246,36528352,36565308,36716972,36716975,36565382,36561397,443396,36521495,36533946,36562573,607409,607424,36562648,36538064,36562748,44500977,36550477,36538280,40481902,44500118,36533499,4310858,36541702,608069,36554146,36562304,4196256,4196264,36551275,436348,36563626,36522659,36543282,36522868,36535198,4311480,44501181,36517992,36567229,36550796,36559081,4180791,36550943,36518308,4180911,195482,36547058,36542921,36555229,36522458,36683301,4201482,36544071,44502570,4283611,36544141,36523658,4201618,36683531,36552451,36544372,36544324,36564829,36532149,37018673,44502130,36527351,36543690,44502405,36531478,36552041,40484156,36547935,36535776,44502351,36541013,36561698,36533386,36528366,36530984,36543695,36527986,36531184,36548113,36520820,36531299,36524117,36522425,36517800,36544156,36539303,36533201,36549024,44502940,44501524,44499890,36538991,36523302,36552722,36520099,44499504,44501495,44500413,36562328,36562377,36550349,44502717,44499654,36536658,36521693,36539545,36532105,36540242,44500655,36561654,36523927,36551546,36559932,36542672,36519618,36536724,36539328,36517480,36543825,36540894,36556784,36541105,36559504,36557136,36559903,36535623,36528720,36517913,36557689,36525408,36549607,36542114,36534456,36522352,36565894,36559232,42512689,42512838,1553182,42512700,42512803,1553312,44504421,44502094,36538491,1553487,44504343,44504337,36561605,44504380,36518316,44502398,44499565,44501415,36524059,36540653,36545664,44499754,44501660,44503097,36561240,44500082,36557933,36518448,36542121,36564204,36518916,36543954,36562813,36567508,36565790,36558313,36543602,36545158,44502326,44501400,44499722,40492937,4207182,4116240,4149847,4193165,4207183,4115028,4193872,4151260,4193871,36564935,36534455,36531573,36525830,36525291,36530070,36535018,36539890,36536333,36533511,36524229,36545002,36534368,36567934,36539322,36517991,36537785,36520709,36560970,36567442,36544338,36567564,36554334,36541351,36563488,36534602,36553697,36548401,36567938,36527398,36567284,36529981,36559065,36534469,36560599,36524579,36555110,36531345,36555504,36537069,36537267,44499427,36554547,36553758,36522738,44502613,36523463,36557364,36557178,36525678,36525747,36557918,4003675,3184757,36542610,36527926,36527200,36543626,36560218,36545127,36545459,36546090,36562779,36530062,36545582,36562295,36563627,36530354,36531858,36531237,36565099,36532303,36548777,36565239) or concept_id in (36533777,36550429,36517733,36534151,36533370,36549970,36567883,36535243,36534307,36567046,4177238,36519818,36715921,36535747,443398,4180780,4313335,40489405,192836,440037,36553517,36537207,44499714,36554254,44500574,44500119,36521175,36554078,44501701,44501390,44501248,36540067,36540055,36540163,36540270,36523926,36523427,36557029,35608090,36558416,36542091,36558650,36542910,36545296,36544811,36528573,36531072,36547642,36547702,42512558,36565117,42512658,36551433,36518729,36567392,36552548,36551929,36537300,36555850,36540747,36557189,36562464,36564952,36549291,36550281,36550972)) ) I ) C; @@ -99,49 +99,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/791.sql b/inst/sql/sql_server/791.sql index 6a6ac1e0..183727a9 100644 --- a/inst/sql/sql_server/791.sql +++ b/inst/sql/sql_server/791.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36564330,36518676,36546746,36529780,36565470,36554704,36545090,36544350,36523352,36522334,36549086,36551927,36558538,36557010,36524487,36554909,36550599,36549420,36527625,36565552,36519534,36527807,36562547,36560749,36546266,36402513,36553956,36543229,36540413,36546509,36530857,44499672,36563669,36533083,36551951,36518435,36530654,44503190,36567459,36518471,36566838,36560307,36546328,36518853,36560792,36538340,36558874,36563869,36538303,36558763,36526182,36561447,42511674,36564920,44502073,36523119,44502372,36552250,36550832,36538467,36526389,36535399,36552495,36539361,36546224,36531389,36542008,36550169,36548391,36522450,36520572,36518051,44502150,36536215,36540887,36546491,36558234,36538033,36534434,44501462,36520193,44502805,36561966,44502852,36528582,36562888,36530588,36540864,36519118,36520857,36566928,36530626,36539886,36534153,36528386,44499617,36553535,36532464,36548878,36558384,36564248,4043713,36536635,44502568,36524215,36565755,36556315,36552374,36561388,4224628,36561903,36558161,36558625,36553967,36540819,36553869,36538976,36538352,36546519,36545843,36556891,36520062,36562111,36541309,36531982,36525757,36518217,36563092,36552878,36557769,36532521,36555373,36539986,36540572,36528008,36519828,36566441,36532613,36522326,36522215,36549684,36545312,36519672,36520297,36553933,36522011,36535207,36555942,36543403,36532801,36558720,36548080,36538958,36537030,36536705,36563845,36553784,36529973,36552212,36555808,36554088,36536616,36559446,36532434,36539121,36562359,4214660,36558837,36562586,36522707,36564219,36549915,36544512,36557516,36529613,36550686,36523538,36564628,36563578,36538638,36548779,44500914,36541514,36521972,36567424,36556976,36524235,36535153,36521983,36520097,36557883,36539175,36552624,36567633,36561706,36566377,36544698,36521141,4094548,36563721,36555754,36554969,44503064,36546759,36541184,36548307,36539142,36557889,36563771,437233,36556018,36552328,36545222,36523084,36560668,36527250,36564840,36547845,36530645,36529857,36559790,36526126,36550043,36533034,36534130,36566123,36533784,36523783,36525692,36552281,36552675,36517528,36526166,36550573,36554400,44500477,36543943,36555750,36544298,36534734,36529786,36521681,36530366,36549528,36541477,36539273,36552690,36548420,36530320,36549919,36539037,36532366,36549840,36537417,36521312,36517190,36567485,36546065,36555308,36559396,36543304,36546263,36532427,4216139,36529063,36546631,36555261,36561027,36551800,36542427,36557506,36534867,36524301,36537722,36525918,36523023,36559791,36548446,36529093,36521729,36537964,36562024,44499705,36557537,36518768,36562242,36542563,36564656,36533322,36562859,36558140,36561582,36540137,36529859,36545245,36517763,36544405,36521719,36538504,36525989,4024874,36557447,44503534,36520609,37209514,36517546,36545270,36547437,36563196,36537186,36533685,36558977,36538982,4019477,36533136,36567439,44502315,36555505,36564775,36552942,36542377,36557804,36547818,36532723,36561892,44502909,4300702,36542451,36541276,36520140,36544746,36519237,36543165,36551472,36544416,36548787,36539473,44502851,36535016,36528169,36558363,36554492,36518169,36551876,36554337,36524299,36543170,36537869,36535465,36522265,36521775,36517925,36536601,36539049,36538029,36560163,36528057,36518881,36558002,36566622,36556118,36560146,36530286,36560034,36559406,36530543,36551658,36530082,36526620,36564144,36558793,36523221,36534788,36540552,36535875,36536428,36517583,36531829,36537977,36517804,4190642,36519418,36551113,36557755,36562020,36543862,36533737,4210177,36549861,36561938,36518250,36564907,44501463,36557368,36530560,36567552,36567393,36537152,36522322,44500281,36523322,36556329,36551179,36558178,36528653,36563122,36520302,44500570,36524383,37016161,36534702,36556463,36554137,36540194,36548338,36543990,36541866,36555403,36542669,36563038,36527366,4145040,36552883,36539280,4028859,36537721,36553147,36541932,36520933,36560829,36552376,36561455,36548426,36547669,4043447,36557590,36524986,36545367,4137433,36526317,36519940,36561680,36553191,36523486,36537140,36519955,36553454,36530011,36540757,36561506,36547355,36520612,36559630,4190641,36525383,36548946,36566455,36565076,44503536,36552366,36541853,36550142,36556240,36534997,44499671,36532142,36529678,36546722,36560003,36518380,36557682,36560377,36559077,36550139,36535227,44503535,36555232,36550455,36519693,36557070,36535160,36551181,36556553,36564479,36526241,36518981,36538397,36531372,36533418,36554378,36561536,36537337,36547505,36543470,36526685,36552507,36529328,36546184,36549509,36523493,36517967,36533087,36553723,36538510,36533518,36543811,36557077,36545893,36567575,44502908,36564497,36536898,36567066,36541686,44499618,36567816,36566694,36551639,36526002,36550412,36558048,36550201,36548715,36539694,36545820,36547721,36561461,36548895,36536783,36517456,36539764,36531046,42512027,36548199,36523154,4163558,36519973,36532647,36517879,36538704,36523146,36552682,36547999,36532721,36548646,36517742,36520407,36554375,36567230,36526614,36564265,36554359,36546736,36554166,36549336,36556637,36565323) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36564330,36518676,36546746,36529780,36565470,36554704,36545090,36544350,36523352,36522334,36549086,36551927,36558538,36557010,36524487,36554909,36550599,36549420,36527625,36565552,36519534,36527807,36562547,36560749,36546266,36402513,36553956,36543229,36540413,36546509,36530857,44499672,36563669,36533083,36551951,36518435,36530654,44503190,36567459,36518471,36566838,36560307,36546328,36518853,36560792,36538340,36558874,36563869,36538303,36558763,36526182,36561447,42511674,36564920,44502073,36523119,44502372,36552250,36550832,36538467,36526389,36535399,36552495,36539361,36546224,36531389,36542008,36550169,36548391,36522450,36520572,36518051,44502150,36536215,36540887,36546491,36558234,36538033,36534434,44501462,36520193,44502805,36561966,44502852,36528582,36562888,36530588,36540864,36519118,36520857,36566928,36530626,36539886,36534153,36528386,44499617,36553535,36532464,36548878,36558384,36564248,4043713,36536635,44502568,36524215,36565755,36556315,36552374,36561388,4224628,36561903,36558161,36558625,36553967,36540819,36553869,36538976,36538352,36546519,36545843,36556891,36520062,36562111,36541309,36531982,36525757,36518217,36563092,36552878,36557769,36532521,36555373,36539986,36540572,36528008,36519828,36566441,36532613,36522326,36522215,36549684,36545312,36519672,36520297,36553933,36522011,36535207,36555942,36543403,36532801,36558720,36548080,36538958,36537030,36536705,36563845,36553784,36529973,36552212,36555808,36554088,36536616,36559446,36532434,36539121,36562359,4214660,36558837,36562586,36522707,36564219,36549915,36544512,36557516,36529613,36550686,36523538,36564628,36563578,36538638,36548779,44500914,36541514,36521972,36567424,36556976,36524235,36535153,36521983,36520097,36557883,36539175,36552624,36567633,36561706,36566377,36544698,36521141,4094548,36563721,36555754,36554969,44503064,36546759,36541184,36548307,36539142,36557889,36563771,437233,36556018,36552328,36545222,36523084,36560668,36527250,36564840,36547845,36530645,36529857,36559790,36526126,36550043,36533034,36534130,36566123,36533784,36523783,36525692,36552281,36552675,36517528,36526166,36550573,36554400,44500477,36543943,36555750,36544298,36534734,36529786,36521681,36530366,36549528,36541477,36539273,36552690,36548420,36530320,36549919,36539037,36532366,36549840,36537417,36521312,36517190,36567485,36546065,36555308,36559396,36543304,36546263,36532427,4216139,36529063,36546631,36555261,36561027,36551800,36542427,36557506,36534867,36524301,36537722,36525918,36523023,36559791,36548446,36529093,36521729,36537964,36562024,44499705,36557537,36518768,36562242,36542563,36564656,36533322,36562859,36558140,36561582,36540137,36529859,36545245,36517763,36544405,36521719,36538504,36525989,4024874,36557447,44503534,36520609,37209514,36517546,36545270,36547437,36563196,36537186,36533685,36558977,36538982,4019477,36533136,36567439,44502315,36555505,36564775,36552942,36542377,36557804,36547818,36532723,36561892,44502909,4300702,36542451,36541276,36520140,36544746,36519237,36543165,36551472,36544416,36548787,36539473,44502851,36535016,36528169,36558363,36554492,36518169,36551876,36554337,36524299,36543170,36537869,36535465,36522265,36521775,36517925,36536601,36539049,36538029,36560163,36528057,36518881,36558002,36566622,36556118,36560146,36530286,36560034,36559406,36530543,36551658,36530082,36526620,36564144,36558793,36523221,36534788,36540552,36535875,36536428,36517583,36531829,36537977,36517804,4190642,36519418,36551113,36557755,36562020,36543862,36533737,4210177,36549861,36561938,36518250,36564907,44501463,36557368,36530560,36567552,36567393,36537152,36522322,44500281,36523322,36556329,36551179,36558178,36528653,36563122,36520302,44500570,36524383,37016161,36534702,36556463,36554137,36540194,36548338,36543990,36541866,36555403,36542669,36563038,36527366,4145040,36552883,36539280,4028859,36537721,36553147,36541932,36520933,36560829,36552376,36561455,36548426,36547669,4043447,36557590,36524986,36545367,4137433,36526317,36519940,36561680,36553191,36523486,36537140,36519955,36553454,36530011,36540757,36561506,36547355,36520612,36559630,4190641,36525383,36548946,36566455,36565076,44503536,36552366,36541853,36550142,36556240,36534997,44499671,36532142,36529678,36546722,36560003,36518380,36557682,36560377,36559077,36550139,36535227,44503535,36555232,36550455,36519693,36557070,36535160,36551181,36556553,36564479,36526241,36518981,36538397,36531372,36533418,36554378,36561536,36537337,36547505,36543470,36526685,36552507,36529328,36546184,36549509,36523493,36517967,36533087,36553723,36538510,36533518,36543811,36557077,36545893,36567575,44502908,36564497,36536898,36567066,36541686,44499618,36567816,36566694,36551639,36526002,36550412,36558048,36550201,36548715,36539694,36545820,36547721,36561461,36548895,36536783,36517456,36539764,36531046,42512027,36548199,36523154,4163558,36519973,36532647,36517879,36538704,36523146,36552682,36547999,36532721,36548646,36517742,36520407,36554375,36567230,36526614,36564265,36554359,36546736,36554166,36549336,36556637,36565323)) ) I ) C; @@ -113,49 +113,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/792.sql b/inst/sql/sql_server/792.sql index f7309d8c..4839c72e 100644 --- a/inst/sql/sql_server/792.sql +++ b/inst/sql/sql_server/792.sql @@ -7,89 +7,89 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432851,4205430,4201930,4264861,4264288,4246703,763131) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432851,4205430,4201930,4264861,4264288,4246703,763131)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432851,4205430,4201930) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432851,4205430,4201930)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4163261,37208188) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163261,37208188)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4163261,37208188) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163261,37208188)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4314337) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4314337)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4314337) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4314337)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36769180,1635142) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36769180,1635142)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36769180,1635142) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36769180,1635142)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3006575) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3006575)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3006575) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3006575)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443392,4312326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443392,4312326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443392,4312326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443392,4312326)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432851,4112752,4111921,764971,36716186,200962,36712762,37395835,4164017,4141960,4163261,4183913,4283614,4289246,4283740,4280897,4289379) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432851,4112752,4111921,764971,36716186,200962,36712762,37395835,4164017,4141960,4163261,4183913,4283614,4289246,4283740,4280897,4289379)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432851,4112752,4111921,764971,36716186,200962,36712762,37395835,4164017,4141960,4163261,4183913,4283614,4289246,4283740,4280897,4289379) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432851,4112752,4111921,764971,36716186,200962,36712762,37395835,4164017,4141960,4163261,4183913,4283614,4289246,4283740,4280897,4289379)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3169330,4180749) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3169330,4180749)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3169330,4180749) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3169330,4180749)) ) I ) C; @@ -604,49 +604,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/793.sql b/inst/sql/sql_server/793.sql index 1bc00c09..3cd7ac25 100644 --- a/inst/sql/sql_server/793.sql +++ b/inst/sql/sql_server/793.sql @@ -7,133 +7,133 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432851,4205430,4201930,4264861,4264288,4246703,763131) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432851,4205430,4201930,4264861,4264288,4246703,763131)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432851,4205430,4201930) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432851,4205430,4201930)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4163261,37208188) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163261,37208188)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4163261,37208188) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163261,37208188)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4314337) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4314337)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4314337) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4314337)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4304921,4145907,4341536) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4304921,4145907,4341536)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4304921,4145907,4341536) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4304921,4145907,4341536)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35608156,35624545,35624534,35624540,35624546,35624535,35624541,35624539,4021070,2780498,2780499,2780496,2780497,2780494,2780495,35624537,35624542,4012324) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35608156,35624545,35624534,35624540,35624546,35624535,35624541,35624539,4021070,2780498,2780499,2780496,2780497,2780494,2780495,35624537,35624542,4012324)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4012324) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4012324)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36769180,1635142) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36769180,1635142)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36769180,1635142) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36769180,1635142)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3006575) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3006575)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3006575) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3006575)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443392,4312326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443392,4312326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443392,4312326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443392,4312326)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432851,4112752,4111921,764971,36716186,200962,36712762,37395835,4164017,4141960,4163261,4183913,4283614,4289246,4283740,4280897,4289379) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432851,4112752,4111921,764971,36716186,200962,36712762,37395835,4164017,4141960,4163261,4183913,4283614,4289246,4283740,4280897,4289379)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432851,4112752,4111921,764971,36716186,200962,36712762,37395835,4164017,4141960,4163261,4183913,4283614,4289246,4283740,4280897,4289379) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432851,4112752,4111921,764971,36716186,200962,36712762,37395835,4164017,4141960,4163261,4183913,4283614,4289246,4283740,4280897,4289379)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4235738,4330932,37396025,2108724,2108725,4198015,43533205,2790073,1781260,4041984,2789856,1524039,37111533,4061656,2789850,2789851,2789848,2789849,2789854,2789855,2789852,2789853,2789846,2789847,2789845,759648,4073126,2110047,37111533,2110046,2110035,2108678,2101059,2777698,40490346,2110043,2789830,709928,42733763,42733764) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4235738,4330932,37396025,2108724,2108725,4198015,43533205,2790073,1781260,4041984,2789856,1524039,37111533,4061656,2789850,2789851,2789848,2789849,2789854,2789855,2789852,2789853,2789846,2789847,2789845,759648,4073126,2110047,37111533,2110046,2110035,2108678,2101059,2777698,40490346,2110043,2789830,709928,42733763,42733764)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4235738,4330932,37396025,2108724,2108725,4198015,43533205,2790073,1781260,4041984,2789856,1524039,37111533,4061656,2789850,2789851,2789848,2789849,2789854,2789855,2789852,2789853,2789846,2789847,2789845,759648,4073126,2110047,37111533,2110046,2110035,2108678) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4235738,4330932,37396025,2108724,2108725,4198015,43533205,2790073,1781260,4041984,2789856,1524039,37111533,4061656,2789850,2789851,2789848,2789849,2789854,2789855,2789852,2789853,2789846,2789847,2789845,759648,4073126,2110047,37111533,2110046,2110035,2108678)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108677,4216658,4306299,4338661,3187777,40487861,4176312,4193061,2777698,2777697,2777700,2777699,2777702,2777701,2777704,2777703,2777706,2777705,44783041,4239543,2003966,4021570,2780477,2780478,2780479,2780480,4341384,4341893,4212360,4147673,4078386,4073700,4234536,4287859,44783043,4071791,4054558) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108677,4216658,4306299,4338661,3187777,40487861,4176312,4193061,2777698,2777697,2777700,2777699,2777702,2777701,2777704,2777703,2777706,2777705,44783041,4239543,2003966,4021570,2780477,2780478,2780479,2780480,4341384,4341893,4212360,4147673,4078386,4073700,4234536,4287859,44783043,4071791,4054558)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108677,4306299,4338661,3187777,40487861,4176312,4193061,2777698,2777697,2777700,2777699,2777702,2777701,2777704,2777703,2777706,2777705,44783041,4239543,2003966,4021570,2780477,2780478,2780479,2780480,4341384,4341893,4212360,4147673,4078386,4073700,4234536,4287859,44783043,4071791,4054558) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108677,4306299,4338661,3187777,40487861,4176312,4193061,2777698,2777697,2777700,2777699,2777702,2777701,2777704,2777703,2777706,2777705,44783041,4239543,2003966,4021570,2780477,2780478,2780479,2780480,4341384,4341893,4212360,4147673,4078386,4073700,4234536,4287859,44783043,4071791,4054558)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (19058410,739471,35834903,1343039,19089810,1366310,1351541,1344381,19010792,1356461,1500211,1300978,1315286,35807385,35807349) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (19058410,739471,35834903,1343039,19089810,1366310,1351541,1344381,19010792,1356461,1500211,1300978,1315286,35807385,35807349)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (19058410,739471,35834903,1343039,19089810,1366310,1351541,1344381,19010792,1356461,1500211,1300978,1315286,35807385,35807349) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (19058410,739471,35834903,1343039,19089810,1366310,1351541,1344381,19010792,1356461,1500211,1300978,1315286,35807385,35807349)) ) I ) C; @@ -806,49 +806,21 @@ GROUP BY i.event_id, i.person_id WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/794.sql b/inst/sql/sql_server/794.sql index b8bb2cbc..d9f21a5b 100644 --- a/inst/sql/sql_server/794.sql +++ b/inst/sql/sql_server/794.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311947) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311947)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311947) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311947)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/795.sql b/inst/sql/sql_server/795.sql index d3d1ce0c..e440a1cd 100644 --- a/inst/sql/sql_server/795.sql +++ b/inst/sql/sql_server/795.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/796.sql b/inst/sql/sql_server/796.sql index b4e2a7b1..c84d3242 100644 --- a/inst/sql/sql_server/796.sql +++ b/inst/sql/sql_server/796.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4079713,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4079713,4098879)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4079713,4098879) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4079713,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/797.sql b/inst/sql/sql_server/797.sql index e9380b73..798d9343 100644 --- a/inst/sql/sql_server/797.sql +++ b/inst/sql/sql_server/797.sql @@ -7,17 +7,17 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -110,49 +110,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/798.sql b/inst/sql/sql_server/798.sql index 17932cfc..f8fcf1bd 100644 --- a/inst/sql/sql_server/798.sql +++ b/inst/sql/sql_server/798.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/8.sql b/inst/sql/sql_server/8.sql index 288d27dd..47b94faf 100644 --- a/inst/sql/sql_server/8.sql +++ b/inst/sql/sql_server/8.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43530714,4185711,436235,4289517,4044243) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43530714,4185711,436235,4289517,4044243)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43530714,4185711,436235,4289517,4044243) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43530714,4185711,436235,4289517,4044243)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/80.sql b/inst/sql/sql_server/80.sql index 41b48559..aaad6f1d 100644 --- a/inst/sql/sql_server/80.sql +++ b/inst/sql/sql_server/80.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44811012,46257586,2787821,4052536,4338595,2787820) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44811012,46257586,2787821,4052536,4338595,2787820)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46257586,4052536) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46257586,4052536)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/802.sql b/inst/sql/sql_server/802.sql index f0043d71..f5d08ab0 100644 --- a/inst/sql/sql_server/802.sql +++ b/inst/sql/sql_server/802.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (319049) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (319049)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (319049) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (319049)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/803.sql b/inst/sql/sql_server/803.sql index 5a12e8e8..adf6c39a 100644 --- a/inst/sql/sql_server/803.sql +++ b/inst/sql/sql_server/803.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40480451,4213456,4080029,3176578,44782820,136580,4105908) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40480451,4213456,4080029,3176578,44782820,136580,4105908)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40480451,3176578) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40480451,3176578)) ) I ) C; @@ -118,49 +118,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/804.sql b/inst/sql/sql_server/804.sql index 6e75d928..a3291a05 100644 --- a/inst/sql/sql_server/804.sql +++ b/inst/sql/sql_server/804.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4341249,4340525,4341251,40490359,4341254,4342989,4342988) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4341249,4340525,4341251,40490359,4341254,4342989,4342988)) ) I ) C; @@ -99,49 +99,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/805.sql b/inst/sql/sql_server/805.sql index 84b6010a..dc498740 100644 --- a/inst/sql/sql_server/805.sql +++ b/inst/sql/sql_server/805.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193518) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193518)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193518) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193518)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/806.sql b/inst/sql/sql_server/806.sql index df9bfb1c..dd7ef11c 100644 --- a/inst/sql/sql_server/806.sql +++ b/inst/sql/sql_server/806.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4326255) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4326255)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4326255) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4326255)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46270324,4063818,4066717,4063906,4065999) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46270324,4063818,4066717,4063906,4065999)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46270324,4063818,4066717,4063906,4065999) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46270324,4063818,4066717,4063906,4065999)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/807.sql b/inst/sql/sql_server/807.sql index a2c3cb58..03baf316 100644 --- a/inst/sql/sql_server/807.sql +++ b/inst/sql/sql_server/807.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35608112) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35608112)) ) I ) C; @@ -99,49 +99,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/808.sql b/inst/sql/sql_server/808.sql index e8dc4dfd..b3ac9000 100644 --- a/inst/sql/sql_server/808.sql +++ b/inst/sql/sql_server/808.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4002836) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4002836)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4002836) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4002836)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/809.sql b/inst/sql/sql_server/809.sql index 5dd12ed2..2e0f9e27 100644 --- a/inst/sql/sql_server/809.sql +++ b/inst/sql/sql_server/809.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4308542,4308837,43530818,4145549,4237450) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4308542,4308837,43530818,4145549,4237450)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4308542,4308837,43530818,4145549) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4308542,4308837,43530818,4145549)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37208110) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37208110)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37208110) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37208110)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/81.sql b/inst/sql/sql_server/81.sql index 087a9405..9cefb403 100644 --- a/inst/sql/sql_server/81.sql +++ b/inst/sql/sql_server/81.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4015701) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4015701)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4015701) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4015701)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4032769,4082412) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4032769,4082412)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4032769,4082412) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4032769,4082412)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/810.sql b/inst/sql/sql_server/810.sql index 271de170..972264b2 100644 --- a/inst/sql/sql_server/810.sql +++ b/inst/sql/sql_server/810.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432851) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432851)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432851) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432851)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4196260,608931,4312395,36715103,35624616,4199641,4126118,4197152,4307000,4301780,4297353,4300784,4299154,4299153,4299143,4301665,193429,196650,442095,439269,132570,439268,318989,3654579,4080741,759938,764972,4183632,4182918,4183744,4182919,4183745,4183914,4182920,4183339,4289377,4281017,4283615,4281018,4289098,4283737,4289378,4281034,4289687,4283751,4283752,4182921,4289516,4283753,4281036,4281037,4283880,4289692,4289823,4289521,4289381,4289248,4283612,4289093,4289249,4289094,4283613,4289095,4289686,4283877,4289690,4289519,4281035,4283878,4283879,4281160,4289824,4281161,4289825,4289826,4289523,4289382,4283741,4289252,4280898,4289096,4283743,4289386,4281162,4283744,4283881,4283882,4289524,4283883,4281164,4283884,4281165,4281166,4283885,4283886,4289380,4283888,4183628,4183335,4183629,4183630,4183336,759823,4200893,4196263,4196259,4198446,4201020,4201623,4201014,4198445,4198444,4201617,4196266,4201015,4196262,4200894,4196258,4201620,4201622,4196267,4196261,43530697,4291148,45767695,36684947,36684950,36684946,36674609,36684948,3181040,40481908,4292389,36716609,36716630,45772700,4189478,3192209,36684857,36684949,36684951,45773365,40480137,4301510,3178803,36684913,37016150,37018877,4307838,4222722,3662037,37016740,764971,4299134,4114341,608945,619828,608947,608896,600854,600835,608929,619829,608944,608933,608855,600852,608943,608932,600828,608853,759974,3181145,4310595,759939,764957,764956,4312923,4298848,4312667,4310162) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4196260,608931,4312395,36715103,35624616,4199641,4126118,4197152,4307000,4301780,4297353,4300784,4299154,4299153,4299143,4301665,193429,196650,442095,439269,132570,439268,318989,3654579,4080741,759938,764972,4183632,4182918,4183744,4182919,4183745,4183914,4182920,4183339,4289377,4281017,4283615,4281018,4289098,4283737,4289378,4281034,4289687,4283751,4283752,4182921,4289516,4283753,4281036,4281037,4283880,4289692,4289823,4289521,4289381,4289248,4283612,4289093,4289249,4289094,4283613,4289095,4289686,4283877,4289690,4289519,4281035,4283878,4283879,4281160,4289824,4281161,4289825,4289826,4289523,4289382,4283741,4289252,4280898,4289096,4283743,4289386,4281162,4283744,4283881,4283882,4289524,4283883,4281164,4283884,4281165,4281166,4283885,4283886,4289380,4283888,4183628,4183335,4183629,4183630,4183336,759823,4200893,4196263,4196259,4198446,4201020,4201623,4201014,4198445,4198444,4201617,4196266,4201015,4196262,4200894,4196258,4201620,4201622,4196267,4196261,43530697,4291148,45767695,36684947,36684950,36684946,36674609,36684948,3181040,40481908,4292389,36716609,36716630,45772700,4189478,3192209,36684857,36684949,36684951,45773365,40480137,4301510,3178803,36684913,37016150,37018877,4307838,4222722,3662037,37016740,764971,4299134,4114341,608945,619828,608947,608896,600854,600835,608929,619829,608944,608933,608855,600852,608943,608932,600828,608853,759974,3181145,4310595,759939,764957,764956,4312923,4298848,4312667,4310162)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4196260,4183632,4182918,4183744,4182919,4183745,4183914,4182920,4183339,4289377,4281017,4283615,4281018,4289098,4283737,4289378,4281034,4289687,4283751,4283752,4182921,4289516,4283753,4281036,4281037,4283880,4289692,4289823,4289521,4289381,4289248,4283612,4289093,4289249,4289094,4283613,4289095,4289686,4283877,4289690,4289519,4281035,4283878,4283879,4281160,4289824,4281161,4289825,4289826,4289523,4289382,4283741,4289252,4280898,4289096,4283743,4289386,4281162,4283744,4283881,4283882,4289524,4283883,4281164,4283884,4281165,4281166,4283885,4283886,4289380,4283888,4183628,4183335,4183629,4183630,4183336,759823,4200893,4196263,4196259,4198446,4201020,4201623,4201014,4198445,4198444,4201617,4196266,4201015,4196262,4200894,4196258,4201620,4201622,4196267,4196261,43530697,4291148,45767695,36684947,36684950,36684946,36674609,36684948,3181040,40481908,4292389,36716609,36716630,45772700,4189478,3192209,36684857,36684949,36684951,45773365,40480137,4301510,3178803,36684913,37016150,37018877,4307838,4222722,3662037,37016740,764971,4299134,4114341,608945,619828,608947,608896,600854,600835,608929,619829,608944,608933,608855,600852,608943,608932,600828,608853,759974,3181145,4310595,759939,764957,764956,4312923,4298848,4312667,4310162) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4196260,4183632,4182918,4183744,4182919,4183745,4183914,4182920,4183339,4289377,4281017,4283615,4281018,4289098,4283737,4289378,4281034,4289687,4283751,4283752,4182921,4289516,4283753,4281036,4281037,4283880,4289692,4289823,4289521,4289381,4289248,4283612,4289093,4289249,4289094,4283613,4289095,4289686,4283877,4289690,4289519,4281035,4283878,4283879,4281160,4289824,4281161,4289825,4289826,4289523,4289382,4283741,4289252,4280898,4289096,4283743,4289386,4281162,4283744,4283881,4283882,4289524,4283883,4281164,4283884,4281165,4281166,4283885,4283886,4289380,4283888,4183628,4183335,4183629,4183630,4183336,759823,4200893,4196263,4196259,4198446,4201020,4201623,4201014,4198445,4198444,4201617,4196266,4201015,4196262,4200894,4196258,4201620,4201622,4196267,4196261,43530697,4291148,45767695,36684947,36684950,36684946,36674609,36684948,3181040,40481908,4292389,36716609,36716630,45772700,4189478,3192209,36684857,36684949,36684951,45773365,40480137,4301510,3178803,36684913,37016150,37018877,4307838,4222722,3662037,37016740,764971,4299134,4114341,608945,619828,608947,608896,600854,600835,608929,619829,608944,608933,608855,600852,608943,608932,600828,608853,759974,3181145,4310595,759939,764957,764956,4312923,4298848,4312667,4310162)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/811.sql b/inst/sql/sql_server/811.sql index 3453a027..e219358d 100644 --- a/inst/sql/sql_server/811.sql +++ b/inst/sql/sql_server/811.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4201482,4196256) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4201482,4196256)) ) I ) C; @@ -99,49 +99,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/812.sql b/inst/sql/sql_server/812.sql index bb80020d..2143dfbf 100644 --- a/inst/sql/sql_server/812.sql +++ b/inst/sql/sql_server/812.sql @@ -7,105 +7,105 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C; @@ -706,49 +706,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/813.sql b/inst/sql/sql_server/813.sql index 6d540acd..37771a5d 100644 --- a/inst/sql/sql_server/813.sql +++ b/inst/sql/sql_server/813.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922)) ) I ) C; @@ -171,49 +171,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/814.sql b/inst/sql/sql_server/814.sql index 34cd4cf7..8bfe9182 100644 --- a/inst/sql/sql_server/814.sql +++ b/inst/sql/sql_server/814.sql @@ -7,61 +7,61 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059384,4059385) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059384,4059385)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -309,49 +309,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/817.sql b/inst/sql/sql_server/817.sql index 9b0207d2..e9ce13be 100644 --- a/inst/sql/sql_server/817.sql +++ b/inst/sql/sql_server/817.sql @@ -7,57 +7,57 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922)) ) I ) C; @@ -305,49 +305,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/818.sql b/inst/sql/sql_server/818.sql index c165c1e9..9fe40a80 100644 --- a/inst/sql/sql_server/818.sql +++ b/inst/sql/sql_server/818.sql @@ -7,83 +7,83 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C; @@ -878,49 +878,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/819.sql b/inst/sql/sql_server/819.sql index 5236b785..780d4b45 100644 --- a/inst/sql/sql_server/819.sql +++ b/inst/sql/sql_server/819.sql @@ -7,89 +7,89 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C; @@ -934,49 +934,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/82.sql b/inst/sql/sql_server/82.sql index 87407b07..27170587 100644 --- a/inst/sql/sql_server/82.sql +++ b/inst/sql/sql_server/82.sql @@ -7,66 +7,66 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9201)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4338595,2787821,46257586,1531632,1531631,1531630,2787820,44515635,4052536,2002247,44811012) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4338595,2787821,46257586,1531632,1531631,1531630,2787820,44515635,4052536,2002247,44811012)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46257586,44515635,4052536,2002247) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46257586,44515635,4052536,2002247)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4230167,40481547,4080957,4168966,4232550,4235361,37116689,40487536,4332501,37206832,765576,44509482,2108681,4219858,2788037,2788038,2788036,45887795,42738852,42738853,4237618,4251737,44791135,4072633) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4230167,40481547,4080957,4168966,4232550,4235361,37116689,40487536,4332501,37206832,765576,44509482,2108681,4219858,2788037,2788038,2788036,45887795,42738852,42738853,4237618,4251737,44791135,4072633)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4230167,40481547,4080957,4168966,4232550,4235361,37116689,40487536,4332501,37206832,765576,44509482,2108681,4219858,2788037,2788038,2788036,45887795,42738852,42738853,4237618,4251737,44791135,4072633) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4230167,40481547,4080957,4168966,4232550,4235361,37116689,40487536,4332501,37206832,765576,44509482,2108681,4219858,2788037,2788038,2788036,45887795,42738852,42738853,4237618,4251737,44791135,4072633)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4031379,4074663,4348300,4021786,2108642,2108641,4107247,4232891,44808555,4006318,4254108,4259233,4254905,4353715) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4031379,4074663,4348300,4021786,2108642,2108641,4107247,4232891,44808555,4006318,4254108,4259233,4254905,4353715)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4031379,4074663,4348300,4021786,2108642,2108641,4107247,4232891,44808555,4006318,4254108,4259233,4254905,4353715) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4031379,4074663,4348300,4021786,2108642,2108641,4107247,4232891,44808555,4006318,4254108,4259233,4254905,4353715)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4166281,2106568,4115488,4337047,4168864,4199580,2831237,2836115,2794811,2862930,2870619,2829384,2829386,4065590,2743216,4311023,4195473,2106569,4208093,2106565,2106567,2106562,2106563,45887989) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4166281,2106568,4115488,4337047,4168864,4199580,2831237,2836115,2794811,2862930,2870619,2829384,2829386,4065590,2743216,4311023,4195473,2106569,4208093,2106565,2106567,2106562,2106563,45887989)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4166281,2106568,4115488,4337047,4168864,4199580,2831237,2836115,2794811,2862930,2870619,2829384,2829386,4065590,2743216,4311023,4195473,2106569,4208093,2106565,2106567,2106562,2106563,45887989) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4166281,2106568,4115488,4337047,4168864,4199580,2831237,2836115,2794811,2862930,2870619,2829384,2829386,4065590,2743216,4311023,4195473,2106569,4208093,2106565,2106567,2106562,2106563,45887989)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2110486) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2110486)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2110486) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2110486)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -429,49 +429,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/820.sql b/inst/sql/sql_server/820.sql index de8c7f0d..f09c93ca 100644 --- a/inst/sql/sql_server/820.sql +++ b/inst/sql/sql_server/820.sql @@ -7,122 +7,122 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059384,4059385) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059384,4059385)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C; @@ -1069,49 +1069,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/821.sql b/inst/sql/sql_server/821.sql index 2b92bd1a..4bf491bc 100644 --- a/inst/sql/sql_server/821.sql +++ b/inst/sql/sql_server/821.sql @@ -7,117 +7,117 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C; @@ -1068,49 +1068,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/822.sql b/inst/sql/sql_server/822.sql index e233eaf2..bd5240a9 100644 --- a/inst/sql/sql_server/822.sql +++ b/inst/sql/sql_server/822.sql @@ -7,77 +7,77 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C; @@ -572,49 +572,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/823.sql b/inst/sql/sql_server/823.sql index 473c27d7..32fd98dd 100644 --- a/inst/sql/sql_server/823.sql +++ b/inst/sql/sql_server/823.sql @@ -7,110 +7,110 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2000809,2000810,2000811,2000832,2000833,2000834,2000835,2000836,2002750,2002751,2002762,2002763,2002764,2002765,2002766,2002768,2002769,2002770,2002969,2002984,2002985,2002986,2002987,2002990,2003002,2003003,2109040,2109041,2109042,2109043,2109044,2109045,2109046,2109047,2109048,2109049,2109056,2109065,2109066,2109068,2109069,2109071,2109074,2109151,2109152,2109153,2109155,2109156,2109160,2109161,2109166,2109206,2109207,2747019,2747020,2747021,2747022,2747023,2747024,2747025,2747026,2747027,2747028,2747030,2747032,2747034,2747036,2747038,2747059,2747060,2747061,2747062,2747063,2747064,2747065,2747066,2747067,2747068,2747266,2747267,2747268,2747269,2747270,2747271,2747272,2747273,2747274,2747275,2747276,2747277,2747278,2747279,2747280,2747281,2747282,2747283,2747284,2747285,2747286,2747287,2747288,2747289,2747290,2747291,2747292,2747293,2747294,2747295,2747296,2747297,2747298,2747299,2747300,2747301,2747302,2747303,2747304,2747305,2747306,2747307,2747309,2747311,2747313,2747315,2753172,2753173,2753174,2753175,2753176,2753177,2753368,2753369,2753370,2753371,2753372,2753373,2753374,2753375,2753376,2753377,2753378,2753379,2753380,2753381,2753386,2753387,2753388,2753389,2753390,2753391,2753392,2753393,2753394,2753395,2753396,2753397,2753398,2753399,2753400,2753401,2753402,2753403,2753404,2753405,3171111,3179339,4017464,4017466,4017469,4017602,4017608,4018022,4018024,4018274,4018279,4018281,4018283,4022438,4022910,4023552,4023553,4027552,4028033,4030387,4035031,4053102,4068146,4068147,4068996,4069103,4069714,4078310,4079713,4096461,4097307,4097958,4098879,4122647,4122805,4123402,4128860,4128861,4136779,4137288,4141243,4141244,4141259,4143174,4144203,4144204,4144205,4144721,4144723,4145225,4146034,4146036,4146632,4146633,4146634,4146636,4151121,4163366,4163975,4166855,4168531,4179797,4181781,4183332,4185981,4187629,4187917,4194372,4194416,4195151,4197728,4197729,4199951,4199952,4201948,4202561,4202562,4202563,4203139,4207467,4208945,4216867,4219780,4221568,4225427,4226983,4229775,4233085,4233412,4234933,4235749,4249151,4250893,4259115,4262950,4294869,4299772,4314569,4326904,4334487,37016852,37016994,37310744,37312778,37312779,37312780,37521056,37586031,37586032,37586033,40481893,40482769,40483732,40483733,40485319,40485422,40486934,40486935,40486940,40487481,40487521,40487953,40488424,40488438,40489970,40490977,40491370,42538033,42539745,42872470,43016392,43016393,43016394,43016398,43017215,43017216,43017217,43017218,44510653,44510657,44510660,44510664,44510667,44510673,44510675,44510680,44510681,44510683,44510689,44510691,44510693,44510695,44510696,44510697,44510699,44510807,44510826,44510832,44510833,44790503,44807783,44807784,44807785,44807786,44807787,44807788,44807793,44807794,44807795,44807796,44807797,44807798,44807800,44807801,44807802,44807803,44807804,44807805,44807806,44807809,44807924,44807925,44807929,44807930,44807933,44807934,44807936,44809615,44809616,44809617,44809619,44809642,44809643,44809644,44809645,44811323,44811330,44811428,44811437,44811442,44813904,44814047,46270677,46270922)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059384,4059385) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059384,4059385)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C; @@ -707,49 +707,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/824.sql b/inst/sql/sql_server/824.sql index 3f34c084..724d4e47 100644 --- a/inst/sql/sql_server/824.sql +++ b/inst/sql/sql_server/824.sql @@ -7,71 +7,71 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C; @@ -516,49 +516,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/825.sql b/inst/sql/sql_server/825.sql index ac8fa1f5..20d8e880 100644 --- a/inst/sql/sql_server/825.sql +++ b/inst/sql/sql_server/825.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391,36517666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391,36517666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -137,49 +137,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/826.sql b/inst/sql/sql_server/826.sql index 5c6f426e..0d7b34e9 100644 --- a/inst/sql/sql_server/826.sql +++ b/inst/sql/sql_server/826.sql @@ -7,72 +7,72 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098879,37521056) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098879,37521056)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391,36517666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391,36517666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -321,49 +321,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/827.sql b/inst/sql/sql_server/827.sql index a74a1751..8fbdde07 100644 --- a/inst/sql/sql_server/827.sql +++ b/inst/sql/sql_server/827.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098879,37521056) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098879,37521056)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391,36517666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391,36517666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -187,49 +187,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/828.sql b/inst/sql/sql_server/828.sql index d716348e..20e6e659 100644 --- a/inst/sql/sql_server/828.sql +++ b/inst/sql/sql_server/828.sql @@ -7,121 +7,121 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059384,4059385) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059384,4059385)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37521056,45888910,2002969,2109157,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37521056,45888910,2002969,2109157,4098879)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37521056,45888910,2109157,4098879) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37521056,45888910,2109157,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391,36517666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391,36517666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098879,37521056) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098879,37521056)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -369,49 +369,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/829.sql b/inst/sql/sql_server/829.sql index fb22aad8..390403cf 100644 --- a/inst/sql/sql_server/829.sql +++ b/inst/sql/sql_server/829.sql @@ -7,82 +7,82 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391,36517666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391,36517666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -878,49 +878,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/830.sql b/inst/sql/sql_server/830.sql index 5214c182..882115fc 100644 --- a/inst/sql/sql_server/830.sql +++ b/inst/sql/sql_server/830.sql @@ -7,104 +7,104 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4079713,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4079713,4098879)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4079713,4098879) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4079713,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -689,49 +689,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/831.sql b/inst/sql/sql_server/831.sql index 199537c4..32429959 100644 --- a/inst/sql/sql_server/831.sql +++ b/inst/sql/sql_server/831.sql @@ -7,137 +7,137 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059384,4059385) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059384,4059385)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391,36517666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391,36517666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 26 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098879,37521056) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098879,37521056)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -1085,49 +1085,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/832.sql b/inst/sql/sql_server/832.sql index d3fd109b..a987138e 100644 --- a/inst/sql/sql_server/832.sql +++ b/inst/sql/sql_server/832.sql @@ -7,132 +7,132 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391,36517666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391,36517666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 25 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098879,37521056) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098879,37521056)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -1084,49 +1084,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/833.sql b/inst/sql/sql_server/833.sql index b8c6cc1d..b4ddf177 100644 --- a/inst/sql/sql_server/833.sql +++ b/inst/sql/sql_server/833.sql @@ -7,70 +7,70 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391,36517666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391,36517666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -516,49 +516,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/834.sql b/inst/sql/sql_server/834.sql index e9b298ea..d99e1a92 100644 --- a/inst/sql/sql_server/834.sql +++ b/inst/sql/sql_server/834.sql @@ -7,92 +7,92 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391,36517666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391,36517666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098879,37521056) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098879,37521056)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -588,49 +588,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/835.sql b/inst/sql/sql_server/835.sql index cbbe79b0..4183f919 100644 --- a/inst/sql/sql_server/835.sql +++ b/inst/sql/sql_server/835.sql @@ -7,125 +7,125 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059384,4059385) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059384,4059385)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391,36517666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391,36517666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098879,37521056) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098879,37521056)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -723,49 +723,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/836.sql b/inst/sql/sql_server/836.sql index 549ea4af..86cc884d 100644 --- a/inst/sql/sql_server/836.sql +++ b/inst/sql/sql_server/836.sql @@ -7,120 +7,120 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391,36517666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391,36517666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098879,37521056) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098879,37521056)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -722,49 +722,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/837.sql b/inst/sql/sql_server/837.sql index 4b3d7ca9..7f1f3955 100644 --- a/inst/sql/sql_server/837.sql +++ b/inst/sql/sql_server/837.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/838.sql b/inst/sql/sql_server/838.sql index 511fa8f5..7704ded4 100644 --- a/inst/sql/sql_server/838.sql +++ b/inst/sql/sql_server/838.sql @@ -7,70 +7,70 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -516,49 +516,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/839.sql b/inst/sql/sql_server/839.sql index 35c27522..2bd18a0a 100644 --- a/inst/sql/sql_server/839.sql +++ b/inst/sql/sql_server/839.sql @@ -7,104 +7,104 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2747032,2000832,2753373,2000834,2747038,43017215,2747030,2753177,2000835,2753369,2753375,2000833,2753176,4098879,43016392,2753377,2753371,2747036,2753370,2002750,2002766,2753376,2753372,2753374,2747034,2753368,37521056)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4098879,37521056) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4098879,37521056)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,35609784,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4226983,4209537,4170609,37206732,36674306,4140920,507673,40493194,40488297,506592,35609785,4200964,4145371,40489330,4144206,4327813,1314384,4225750,44789789)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443391,36517666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443391,36517666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443391) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443391)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -950,49 +950,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/84.sql b/inst/sql/sql_server/84.sql index e93207d3..a17bd8fd 100644 --- a/inst/sql/sql_server/84.sql +++ b/inst/sql/sql_server/84.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37311061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37311061)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37311061) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37311061)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -239,49 +239,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/840.sql b/inst/sql/sql_server/840.sql index 9f2bd4c7..cf4e8a41 100644 --- a/inst/sql/sql_server/840.sql +++ b/inst/sql/sql_server/840.sql @@ -7,125 +7,125 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059384,4059385) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059384,4059385)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37521056,45888910,2002969,2109157,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37521056,45888910,2002969,2109157,4098879)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37521056,45888910,2109157,4098879) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37521056,45888910,2109157,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -723,49 +723,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/841.sql b/inst/sql/sql_server/841.sql index aca4d95a..ee50cf23 100644 --- a/inst/sql/sql_server/841.sql +++ b/inst/sql/sql_server/841.sql @@ -7,92 +7,92 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37521056,45888910,2002969,2109157,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37521056,45888910,2002969,2109157,4098879)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37521056,45888910,2109157,4098879) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37521056,45888910,2109157,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -588,49 +588,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/842.sql b/inst/sql/sql_server/842.sql index a94f95d3..298d18eb 100644 --- a/inst/sql/sql_server/842.sql +++ b/inst/sql/sql_server/842.sql @@ -7,82 +7,82 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -878,49 +878,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/843.sql b/inst/sql/sql_server/843.sql index 46feff26..e747b16c 100644 --- a/inst/sql/sql_server/843.sql +++ b/inst/sql/sql_server/843.sql @@ -7,137 +7,137 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059384,4059385) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059384,4059385)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 24 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37521056,45888910,2002969,2109157,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37521056,45888910,2002969,2109157,4098879)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37521056,45888910,2109157,4098879) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37521056,45888910,2109157,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -1085,49 +1085,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/844.sql b/inst/sql/sql_server/844.sql index 69e244aa..fbfeada4 100644 --- a/inst/sql/sql_server/844.sql +++ b/inst/sql/sql_server/844.sql @@ -7,132 +7,132 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 23 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37521056,45888910,2002969,2109157,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37521056,45888910,2002969,2109157,4098879)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37521056,45888910,2109157,4098879) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37521056,45888910,2109157,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -1084,49 +1084,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/845.sql b/inst/sql/sql_server/845.sql index b4966ed4..44c701d1 100644 --- a/inst/sql/sql_server/845.sql +++ b/inst/sql/sql_server/845.sql @@ -7,104 +7,104 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443391,4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443391,4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443391,4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443391,4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (36403128,36403152,36403091,36403134,36403095,36403093,36403139,36403109,36403059,36403070,36403044,36403006,36403020,36403009,36403010,36403042,36403036,36532149,36528941,36539536,36554371,36555799,36560540,36518886,36535609,36548319,37018876,40486168,36532259,36562794,36525026,36527707,36541841,36566840,36560584,36521973,36567869,36551281,36539283,36566994,36547508,36520412,36523693,36549720,36548476,36544256,4162276,4044013,4079274,434300,4300118,4311765,4311439,40480598,36403115,36521999,36566125,36552619,36539114,36531708,36520681,36530017,36542293,36526908,36517782,36552072,36537543,36518870,36522672,36555825,36534830,36561931,36536967,36517398,36565536,36403141,36402991,36527031,36542051,36535310,4201482,4312286,4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493971) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493971)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493970) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493970)) ) I ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493968) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493968)) ) I ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493969) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493969)) ) I ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35917471,35917835,35918368) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35917471,35917835,35918368)) ) I ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21493972) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21493972)) ) I ) C UNION ALL SELECT 18 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977040) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977040)) ) I ) C UNION ALL SELECT 19 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42537577) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42537577)) ) I ) C UNION ALL SELECT 20 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3173676) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3173676)) ) I ) C UNION ALL SELECT 21 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35977041) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35977041)) ) I ) C UNION ALL SELECT 22 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37521056,45888910,2002969,2109157,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37521056,45888910,2002969,2109157,4098879)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37521056,45888910,2109157,4098879) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37521056,45888910,2109157,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -950,49 +950,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/846.sql b/inst/sql/sql_server/846.sql index e2e521df..736a2d83 100644 --- a/inst/sql/sql_server/846.sql +++ b/inst/sql/sql_server/846.sql @@ -7,77 +7,77 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2792091,2792336,2791073,4059384,2790570,2790852,2792088,2790843,2792092,2211840,2790569,2211867,2792085,2791108,2211837,2790845,2790571,2792093,2790849,4179064,2211872,2791109,2791072,4061549,2749095,2211868,4205728,2790846,40488450,2790567,2792094,2749093,2791106,2790851,2790844,2790566,2791591,2791595,4124880,4058775,2790850,2792335,2791597,4098879,2749101,2790854,2211876,2749097,2792084,4277939,2792356,2791596,2791074,2792087,2790853,2791592,2790572,40480519,4181511,2791105,45890645,2749099,46257688,2790565,2792089,2790848,2790847,2792355,2792095,2791590,45890647,2791594,2792334,2792086,2792090,4029715,2211869,4059385)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4059384,4059385) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4059384,4059385)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2791337,2791646,2791052,2791632,2791625,2789831,2792950,2792934,2792455,2792635,2792643,2792703,2792659,2791044,2791553,2792926,2790327,2789839,2791577,2791545,2791653,2792974,2792627,2793722,2793232,2793248,2793757,2791613,2789821,2791087,2791608,2791097,2791092,2793519,2793708,2791603,2793689,2793714,2789817,2791618,2793710,2790075,2791082,2793523,2793531,2789825,2147482101,4098879,35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316,4181511,2792395,2791639,2792167,2791569,2792183,2791133,2791537,2791036,2791028,2792403,2793749,2792175,2789767,2790093,2789775,2790335,2792595,2790319,2792363,2792151,2792966,2791125,2792651,2790085,2790109,2792942,2792611,2790552,2790544,2793224,2792869,2792447,2792411,2792719,2792711,2792619,2792877,2791561,2792159,2792603,2792885,2792982,2793741)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37521056,45888910,2002969,2109157,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37521056,45888910,2002969,2109157,4098879)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37521056,45888910,2109157,4098879) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37521056,45888910,2109157,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -325,49 +325,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/847.sql b/inst/sql/sql_server/847.sql index f73d78be..5d613cc0 100644 --- a/inst/sql/sql_server/847.sql +++ b/inst/sql/sql_server/847.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37521056,45888910,2002969,2109157,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37521056,45888910,2002969,2109157,4098879)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37521056,45888910,2109157,4098879) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37521056,45888910,2109157,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -187,49 +187,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/848.sql b/inst/sql/sql_server/848.sql index 3efdb656..16fffa42 100644 --- a/inst/sql/sql_server/848.sql +++ b/inst/sql/sql_server/848.sql @@ -7,72 +7,72 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1397141,1337620,1315411,44818489,40238188,955632,1318011,1367268,45892628,45775965,19100985,42903460,905078,1145571,40244266,43285052)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4029715,2790569,2790570,2790572,2790571,2790566,2790565,2790567,2791105,2790847,2790843,2790845,2790844,2790848,2790846,2791106,2749093,2749095,2749097,2749099,2749101,40488450,2791109,2790853,2790849,2790851,2790850,2790854,2790852,2791108,2791074,2791072,2791073,2791594,2791595,2791597,2791596,2791591,2791590,2791592,2792088,2792084,2792086,2792085,2792089,2792087,2792355,2792094,2792090,2792092,2792091,2792095,2792093,2792356,4124880,4179064,2792336,2792334,2792335,4061549,4058775,4277939,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35623447,4280568,4059385,4059384,42742549,42742550,42742551,4338745,4068538,37111538,4335177,4290270,4102130,4270754,4066316)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311439,432571,4300118,4102373,36536380,44500772,36544131,36567154,36715914,36554700,36554163,36563124,36555226,36533543,36522591,36549728,36564168,36523786,36525590,36564902,36527029,36555749,36548262,36543551,36533943,36540290,36536131,36518688,36544117,36518886,36544109,36517981,36554998,36549720,36542290,36530017,36517934,42512293,42511838,36534830,36517916,36526512,36527540,36560584,36542180,36562722,36538790,36562593,36526276,36533965,4283611,4289245,4289090,4289246,4289247,4289091,4289092,4289248,4283612,4289093,4289249,4289094,4283613,4289095,36522104,36525455,4311322,36543690,36538573,36541104,4171274,44500676,36565939,36565623,36533664,4180792,438699,4196256,442174)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37521056,45888910,2002969,2109157,4098879) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37521056,45888910,2002969,2109157,4098879)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37521056,45888910,2109157,4098879) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37521056,45888910,2109157,4098879)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2110180,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4136782,4198190,4125436,4126235,4308819,4257890,2109209,4144719,2109216,4227266,2109122,4141227,4146476,4298165,4121239,4141228,4067932,4080163,2109450,4309197,4168529,4181781,37520956,4166761,4103380,4314569,4123406,45885771,37521041,4199870,37521038,2747308,2747310,2747314,2747312,4202223,4062763,4300501,4165586,2109163,2109162,40490505,40756915,40756981,2101766,2002964,4121233,2109725,4152086,4142326)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -321,49 +321,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/850.sql b/inst/sql/sql_server/850.sql index 84b6010a..dc498740 100644 --- a/inst/sql/sql_server/850.sql +++ b/inst/sql/sql_server/850.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193518) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193518)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193518) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193518)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/851.sql b/inst/sql/sql_server/851.sql index 84b6010a..dc498740 100644 --- a/inst/sql/sql_server/851.sql +++ b/inst/sql/sql_server/851.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (193518) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (193518)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (193518) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (193518)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/852.sql b/inst/sql/sql_server/852.sql index 20a956a9..34e39939 100644 --- a/inst/sql/sql_server/852.sql +++ b/inst/sql/sql_server/852.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4237450) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4237450)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4237450) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4237450)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/854.sql b/inst/sql/sql_server/854.sql index 75795b04..d11094aa 100644 --- a/inst/sql/sql_server/854.sql +++ b/inst/sql/sql_server/854.sql @@ -7,17 +7,17 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4196264,4201618,4233629,4158910,198700,4315805,254591) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4196264,4201618,4233629,4158910,198700,4315805,254591)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4196264,4201618,4233629,4158910,198700,4315805,254591) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4196264,4201618,4233629,4158910,198700,4315805,254591)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (761027,608933,608855,600852,608932,4312923) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (761027,608933,608855,600852,608932,4312923)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -110,49 +110,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/855.sql b/inst/sql/sql_server/855.sql index 96759902..251f7a95 100644 --- a/inst/sql/sql_server/855.sql +++ b/inst/sql/sql_server/855.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4196264,4201618) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4196264,4201618)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4196264,4201618) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4196264,4201618)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/856.sql b/inst/sql/sql_server/856.sql index 3dcf50b9..66e2b976 100644 --- a/inst/sql/sql_server/856.sql +++ b/inst/sql/sql_server/856.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (318736,4335745,4059193) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (318736,4335745,4059193)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (318736,4335745,4059193) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (318736,4335745,4059193)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4294246) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4294246)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4294246) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4294246)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (375527,378253,4091160) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (375527,378253,4091160)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (375527,378253,4091160) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (375527,378253,4091160)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1116031,1510467,1118117,1154077,35200577,35200800,19047076,19113015,19113032,1189458,1189697,37497426,19082880,37498244,1126557,37498993,37499031,19091472,1103552,1398937,1106740,1140643,1145379,742267,1124300,1353766,729855,902427,710062,743670,745466,35200577,701982) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1116031,1510467,1118117,1154077,35200577,35200800,19047076,19113015,19113032,1189458,1189697,37497426,19082880,37498244,1126557,37498993,37499031,19091472,1103552,1398937,1106740,1140643,1145379,742267,1124300,1353766,729855,902427,710062,743670,745466,35200577,701982)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1116031,1510467,1118117,1154077,35200577,35200800,19047076,19113015,19113032,1189458,1189697,37497426,19082880,37498244,1126557,37498993,37499031,19091472,1103552,1398937,1106740,1140643,1145379,742267,1124300,1353766,729855,902427,710062,743670,35200577,701982) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1116031,1510467,1118117,1154077,35200577,35200800,19047076,19113015,19113032,1189458,1189697,37497426,19082880,37498244,1126557,37498993,37499031,19091472,1103552,1398937,1106740,1140643,1145379,742267,1124300,1353766,729855,902427,710062,743670,35200577,701982)) ) I ) C; @@ -253,49 +253,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/857.sql b/inst/sql/sql_server/857.sql index 39cec6b6..f66da12b 100644 --- a/inst/sql/sql_server/857.sql +++ b/inst/sql/sql_server/857.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (318736,4335745) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (318736,4335745)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (318736,4335745) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (318736,4335745)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4294246) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4294246)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4294246) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4294246)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (375527,378253,4091160) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (375527,378253,4091160)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (375527,378253,4091160) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (375527,378253,4091160)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (1116031,1510467,1118117,1154077,35200577,35200800,19047076,19113015,19113032,1189458,1189697,37497426,19082880,37498244,1126557,37498993,37499031,19091472,1103552,1398937,1106740,1140643,1145379,742267,1124300,1353766,729855,902427,710062,743670,745466,35200577,701982) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (1116031,1510467,1118117,1154077,35200577,35200800,19047076,19113015,19113032,1189458,1189697,37497426,19082880,37498244,1126557,37498993,37499031,19091472,1103552,1398937,1106740,1140643,1145379,742267,1124300,1353766,729855,902427,710062,743670,745466,35200577,701982)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (1116031,1510467,1118117,1154077,35200577,35200800,19047076,19113015,19113032,1189458,1189697,37497426,19082880,37498244,1126557,37498993,37499031,19091472,1103552,1398937,1106740,1140643,1145379,742267,1124300,1353766,729855,902427,710062,743670,35200577,701982) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (1116031,1510467,1118117,1154077,35200577,35200800,19047076,19113015,19113032,1189458,1189697,37497426,19082880,37498244,1126557,37498993,37499031,19091472,1103552,1398937,1106740,1140643,1145379,742267,1124300,1353766,729855,902427,710062,743670,35200577,701982)) ) I ) C; @@ -311,49 +311,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/858.sql b/inst/sql/sql_server/858.sql index 5a62c98e..7a30b39c 100644 --- a/inst/sql/sql_server/858.sql +++ b/inst/sql/sql_server/858.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4297650,4334806,46273442,2107572,2107561,4107913,2108721,4102493,80809,2107560,2107558,2107559,4083556,4035611)) ) I ) C; @@ -118,49 +118,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/859.sql b/inst/sql/sql_server/859.sql index 235f262e..278fc444 100644 --- a/inst/sql/sql_server/859.sql +++ b/inst/sql/sql_server/859.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46269889,201606,4340812) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46269889,201606,4340812)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46269889,201606,4340812) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46269889,201606,4340812)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/86.sql b/inst/sql/sql_server/86.sql index bd938920..a629b08e 100644 --- a/inst/sql/sql_server/86.sql +++ b/inst/sql/sql_server/86.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -136,49 +136,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/860.sql b/inst/sql/sql_server/860.sql index a5f33eda..3dae83b3 100644 --- a/inst/sql/sql_server/860.sql +++ b/inst/sql/sql_server/860.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (46273477,46273478,81893,75580,46269847,46269843) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (46273477,46273478,81893,75580,46269847,46269843)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (46273477,46273478,81893,75580,46269847,46269843) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (46273477,46273478,81893,75580,46269847,46269843)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/861.sql b/inst/sql/sql_server/861.sql index 795d27e1..c1382b2f 100644 --- a/inst/sql/sql_server/861.sql +++ b/inst/sql/sql_server/861.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81902,77340,4126297,195588) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81902,77340,4126297,195588)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81902,77340,4126297,195588) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81902,77340,4126297,195588)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4167328,4265485,198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4167328,4265485,198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4167328,4265485,198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4167328,4265485,198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/862.sql b/inst/sql/sql_server/862.sql index c8f6d567..d463489d 100644 --- a/inst/sql/sql_server/862.sql +++ b/inst/sql/sql_server/862.sql @@ -7,122 +7,122 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (378419) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (378419)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (378419) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (378419)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4182210) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4182210)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4182210) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4182210)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (378419,4182210,43530666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (378419,4182210,43530666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (715997,757627,701322,733523,836654) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (715997,757627,701322,733523,836654)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (715997,757627,701322,733523,836654) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (715997,757627,701322,733523,836654)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443605,44782710,380701,4043378) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443605,44782710,380701,4043378)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443605,44782710,380701,4043378) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443605,44782710,380701,4043378)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372924,375557,376713,443454,441874,439847,43530727,42538062,4148906,432923) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372924,375557,376713,443454,441874,439847,43530727,42538062,4148906,432923)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (376713,443454,439847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (376713,443454,439847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (379778) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (379778)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (379778) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (379778)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4140090) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4140090)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4140090) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4140090)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (789578,720810,713823,715710,786426,837027,782211) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (789578,720810,713823,715710,786426,837027,782211)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (789578,720810,713823,715710,786426,837027,782211) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (789578,720810,713823,715710,786426,837027,782211)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43530666,4182210) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43530666,4182210)) ) I ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4182210) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4182210)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4182210) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4182210)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (378419,4182210) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (378419,4182210)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (378419) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (378419)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -982,49 +982,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/863.sql b/inst/sql/sql_server/863.sql index 625e228f..569e7e40 100644 --- a/inst/sql/sql_server/863.sql +++ b/inst/sql/sql_server/863.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439795,4297400) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439795,4297400)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439795,4297400) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439795,4297400)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/864.sql b/inst/sql/sql_server/864.sql index 3438ece1..4ec62c34 100644 --- a/inst/sql/sql_server/864.sql +++ b/inst/sql/sql_server/864.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372608,37312036,37312035,37397762,4041685,37312031,37312030,4046087,35608576,37399020,4092747,45771254,4307791,380701,376095,42742415,42742416,42742417,4178618,37311665,4044051,45765480,45765477,4059191,4139421,44782763,4009647,37311890,37396752,4245766,4046091,37312577,37116464,375239,4182210,4043378,373179,435088,378726,44782710,4047744,4044049) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372608,37312036,37312035,37397762,4041685,37312031,37312030,4046087,35608576,37399020,4092747,45771254,4307791,380701,376095,42742415,42742416,42742417,4178618,37311665,4044051,45765480,45765477,4059191,4139421,44782763,4009647,37311890,37396752,4245766,4046091,37312577,37116464,375239,4182210,4043378,373179,435088,378726,44782710,4047744,4044049)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (372608,37397762,376095,42742415,42742416,42742417,37116464,4182210,44782710,4047744,4044049) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (372608,37397762,376095,42742415,42742416,42742417,37116464,4182210,44782710,4047744,4044049)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (35305863,377788,372610) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (35305863,377788,372610)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (35305863,372610) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (35305863,372610)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -164,49 +164,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/865.sql b/inst/sql/sql_server/865.sql index a45e902c..824de086 100644 --- a/inst/sql/sql_server/865.sql +++ b/inst/sql/sql_server/865.sql @@ -7,771 +7,771 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4135199,3363351,2107924,2107949,2107837,4283095,4240486,4142641,4234989,4035152,2107740) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135199,3363351,2107924,2107949,2107837,4283095,4240486,4142641,4234989,4035152,2107740)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4135199,3363351,2107924,2107949,2107837,4240486,4142641,4234989) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135199,3363351,2107924,2107949,2107837,4240486,4142641,4234989)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4236706) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4236706)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4236706) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4236706)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4195136) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4195136)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4195136) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4195136)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4021530) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4021530)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4021530) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4021530)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4127886,4127887,4021529,2110177,4023403,42538159,42538160,4032622,2110209,2110211,43018211,4138738,4306298,4306070,4072416,4070209,45769914,45769913,45769911) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4127886,4127887,4021529,2110177,4023403,42538159,42538160,4032622,2110209,2110211,43018211,4138738,4306298,4306070,4072416,4070209,45769914,45769913,45769911)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2110177,4023403,42538159,42538160,43018211,4306298) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2110177,4023403,42538159,42538160,43018211,4306298)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4096783) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4096783)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4096783) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4096783)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 34 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4234536) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4234536)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4234536) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4234536)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 38 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4312749) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4312749)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4312749) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4312749)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 45 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 46 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4101626) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4101626)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4101626) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4101626)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 47 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 48 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4078547,43531648) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4078547,43531648)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43531648) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43531648)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 51 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2811735,2896830,2839189,4345349,4322818,4067461,4069129,4312613,40487106,46270641,4142436,2109316,4251035) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2811735,2896830,2839189,4345349,4322818,4067461,4069129,4312613,40487106,46270641,4142436,2109316,4251035)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2811735,2896830,2839189,4345349) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2811735,2896830,2839189,4345349)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4030150,4314001,4147687,4076862,4311405,4272324,4249893,4304358,4250892,4300528,4138127,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4030150,4314001,4147687,4076862,4311405,4272324,4249893,4304358,4250892,4300528,4138127,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4030150,4314001,4147687,4076862,46273729) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4030150,4314001,4147687,4076862,46273729)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 55 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180074) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180074)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180074) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180074)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 56 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049675,4244434,4236715,42872711,2211642,4052252,2107574,4263586,4294254,4022030,40757028,2733576,4305183,2733582,2733567,4243023,4051031,40493483,40489434,40756876,2107882,2107931,2733577,2733579) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049675,4244434,4236715,42872711,2211642,4052252,2107574,4263586,4294254,4022030,40757028,2733576,4305183,2733582,2733567,4243023,4051031,40493483,40489434,40756876,2107882,2107931,2733577,2733579)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4049675) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4049675)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,46273729) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,46273729)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 57 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872694) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872694)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872694) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872694)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 58 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872696) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872696)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872696) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872696)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 59 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4022030) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4022030)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4022030) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4022030)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 61 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049675,3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049675,3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 62 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4031312,4030825,4120657) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4031312,4030825,4120657)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4031312,4030825,4120657) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4031312,4030825,4120657)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 63 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2006434,2006432,4297155,4001562,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034,2102700,2102701,2102712,3177626,36676345,36676344,40480531,4127484,4302594,4231761,2102734,4301336,2106769,4301338,2106770) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2006434,2006432,4297155,4001562,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034,2102700,2102701,2102712,3177626,36676345,36676344,40480531,4127484,4302594,4231761,2102734,4301336,2106769,4301338,2106770)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2006434,2006432,4297155,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2006434,2006432,4297155,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 64 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4203442,4121242,2002549,2108974,40483096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4203442,4121242,2002549,2108974,40483096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4203442,4121242,2002549,2108974,40483096) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4203442,4121242,2002549,2108974,40483096)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 65 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4141456,2003225,4141110) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4141456,2003225,4141110)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4141456,2003225,4141110) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4141456,2003225,4141110)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 66 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4187533,725062,2108937) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4187533,725062,2108937)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4187533,725062,2108937) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4187533,725062,2108937)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 67 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108486,4120425,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421,4125465,2108482,4012004,4100937,2108485,2102736,4229920,4208330) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108486,4120425,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421,4125465,2108482,4012004,4100937,2108485,2102736,4229920,4208330)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108486,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108486,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 68 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000882) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000882)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000882) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000882)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 69 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917,2108020) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917,2108020)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4138127,4042673,4272324,4300528,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4138127,4042673,4272324,4300528,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 70 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4315036,4286744,43531416) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4315036,4286744,43531416)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4315036,4286744,43531416) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4315036,4286744,43531416)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 71 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4219032,2006227,2006228,4338257,4264289,2105446,2105448,2105450,2105449,2784251,2784250,4143795,2006242,2105451,4119910) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4219032,2006227,2006228,4338257,4264289,2105446,2105448,2105450,2105449,2784251,2784250,4143795,2006242,2105451,4119910)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2006227,2006228) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2006227,2006228)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 72 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000882,2001339,2001342,42742510) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000882,2001339,2001342,42742510)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000882,2001339,2001342,42742510) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000882,2001339,2001342,42742510)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 73 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2722219,4241198) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2722219,4241198)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2722219,4241198) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2722219,4241198)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 74 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2109616,4047234) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2109616,4047234)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2109616,4047234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2109616,4047234)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 75 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216,4059308,4242997,2109368,4033555,4240962,4134888) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216,4059308,4242997,2109368,4033555,4240962,4134888)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673,4272324,4300528,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673,4272324,4300528,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 76 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761)) ) I ) C UNION ALL SELECT 78 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4022807,4021108,4304536,2773682,2773695,2109617,2773685,2109574,4288997,4027426,4270496,4118715,4010266,2109723,2109724,2109715,2773934,2109722,2773938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4022807,4021108,4304536,2773682,2773695,2109617,2773685,2109574,4288997,4027426,4270496,4118715,4010266,2109723,2109724,2109715,2773934,2109722,2773938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4270496,2109723,2109724,2109715,2109722) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4270496,2109723,2109724,2109715,2109722)) ) I ) C; @@ -1518,49 +1518,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/866.sql b/inst/sql/sql_server/866.sql index da27ec15..e10cbec9 100644 --- a/inst/sql/sql_server/866.sql +++ b/inst/sql/sql_server/866.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C UNION ALL SELECT 84 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002250,2730049,2730053,42894733,42894737,2725615,2725619,2729915,2730103,2729917,2730105,2729916,2730104,2002063,2002084,2736486,2736490,2736494,42897039,42897078,42897085,2730884,2730887) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002250,2730049,2730053,42894733,42894737,2725615,2725619,2729915,2730103,2729917,2730105,2729916,2730104,2002063,2002084,2736486,2736490,2736494,42897039,42897078,42897085,2730884,2730887)) ) I ) C; @@ -433,49 +433,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/867.sql b/inst/sql/sql_server/867.sql index c86cfd52..165c1136 100644 --- a/inst/sql/sql_server/867.sql +++ b/inst/sql/sql_server/867.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 85 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002187,2729943,2730416,2729923,2730209,2730169,2730456,2729963,2730436,2730189,2730476,2729949,2730422,2729929,2730215,2730175,2730462,2729969,2730442,2730195,2730668,2729952,2730425,2729932,2730218,2730178,2730465,2729972,2730445,2730198,2730671,2729946,2730419,2729926,2730212,2730172,2730459,2729966,2730439,2730192,2730665,2729942,2730415,2729922,2730208,2730168,2730455,2729962,2730435,2730188,2730475,2729948,2730421,2729928,2730214,2730174,2730461,2729968,2730441,2730194,2730667,2729951,2730424,2729931,2730217,2730177,2730464,2729971,2730444,2730197,2730670,2729945,2730418,2729925,2730211,2730171,2730458,2729965,2730438,2730191,2730664,2729954,2730427,2729934,2730220,2730180,2730467,2729974,2730447,2730200,2730673,2729953,2730426,2729933,2730219,2730179,2730466,2729973,2730446,2730199,2730672,2729941,2730414,2729921,2730207,2730167,2730454,2729961,2730434,2730187,2730474,2729947,2730420,2729927,2730213,2730173,2730460,2729967,2730440,2730193,2730666,2729950,2730423,2729930,2730216,2730176,2730463,2729970,2730443,2730196,2730669,2729944,2730417,2729924,2730210,2730170,2730457,2729964,2730437,2730190,2730663,2735223,2735420,2735221,2735227,2735222,2735228,2735225,2735422,2735224,2735421,2735226,2735423,2727323,2727307,2726917,2727339,2726933,2727329,2727313,2726923,2727345,2726939,2727320,2727304,2726914,2727336,2726930,2727326,2727310,2726920,2727342,2726936,2727333,2727317,2726927,2727349,2726943,2727322,2727306,2726916,2727338,2726932,2727328,2727312,2726922,2727344,2726938,2727319,2727303,2726913,2727335,2726929,2727325,2727309,2726919,2727341,2726935,2727331,2727315,2726925,2727347,2726941,2727332,2727316,2726926,2727348,2726942,2727321,2727305,2726915,2727337,2726931,2727327,2727311,2726921,2727343,2726937,2727318,2727302,2726912,2727334,2726928,2727324,2727308,2726918,2727340,2726934,2727330,2727314,2726924,2727346,2726940,2727618,2727617,2727620,2727619,2727621,2734546,2734552,2734544,2734550,2734545,2734551,2734548,2734554,2734547,2734553,2734549,2734555,2727352,2727836,2727384,2727368,2727400,2727358,2727842,2727390,2727374,2727406,2727849,2727833,2727381,2727365,2727397,2727355,2727839,2727387,2727371,2727403,2727362,2727846,2727394,2727378,2727410,2727351,2727835,2727383,2727367,2727399,2727357,2727841,2727389,2727373,2727405,2727848,2727832,2727380,2727364,2727396,2727354,2727838,2727386,2727370,2727402,2727360,2727844,2727392,2727376,2727408,2727361,2727845,2727393,2727377,2727409,2727350,2727834,2727382,2727366,2727398,2727356,2727840,2727388,2727372,2727404,2727847,2727831,2727379,2727363,2727395,2727353,2727837,2727385,2727369,2727401,2727359,2727843,2727391,2727375,2727407,2734060,2734066,2734058,2734064,2734059,2734065,2734062,2734068,2734061,2734067,2734063,2734069,2734295,2734301,2734293,2734299,2734294,2734300,2734297,2734303,2734296,2734302,2734298,2734304,2727436,2727432,2727444,2727440,2727448,2727435,2727431,2727443,2727439,2727447,2727438,2727434,2727446,2727442,2727450,2727437,2727433,2727445,2727441,2727449,2734084,2734090,2734082,2734088,2734083,2734089,2734086,2734092,2734085,2734091,2734087,2734093,2734319,2734325,2734317,2734323,2734318,2734324,2734321,2734327,2734320,2734326,2734322,2734328,2727635,2727633,2727639,2727637,2727641,2731688,2732163,2731668,2731955,2731915,2732203,2731708,2732183,2731935,2732412,2731687,2732162,2731667,2731954,2731914,2732202,2731707,2732182,2731934,2732411,2731686,2732161,2731666,2731953,2731913,2732201,2731706,2732181,2731933,2732410,2735929,2735935,2735927,2735933,2735928,2735934,2735931,2735937,2735930,2735936,2735932,2735938,2727658,2727657,2727660,2727659,2727661,2729777,2730019,2729766,2730008,2729986,2730229,2729788,2730030,2729997,2730240,2729776,2730018,2729765,2730007,2729985,2730228,2729787,2730029,2729996,2730239,2729775,2730017,2729764,2730006,2729984,2730227,2729786,2730028,2729995,2730238,2735953,2735959,2735951,2735957,2735952,2735958,2735955,2735961,2735954,2735960,2735956,2735962,2734594,2734789,2734592,2734787,2734593,2734788,2734596,2734791,2734595,2734790,2734597,2734792,2734831,2734837,2734829,2734835,2734830,2734836,2734833,2734839,2734832,2734838,2734834,2734840,2730531,2730763,2730522,2730754,2730736,2730781,2730727,2730772,2730745,2730977,2730535,2730767,2730526,2730758,2730740,2730785,2730731,2730776,2730749,2730981,2730530,2730762,2730521,2730753,2730735,2730780,2730726,2730771,2730744,2730976,2730536,2730768,2730527,2730759,2730741,2730786,2730732,2730777,2730750,2730982,2730537,2730769,2730528,2730760,2730742,2730787,2730733,2730778,2730751,2730983,2730533,2730765,2730524,2730756,2730738,2730783,2730729,2730774,2730747,2730979,2730532,2730764,2730523,2730755,2730737,2730782,2730728,2730773,2730746,2730978,2730534,2730766,2730525,2730757,2730739,2730784,2730730,2730775,2730748,2730980,2730529,2730761,2730520,2730752,2730734,2730779,2730538,2730770,2730743,2730788,2736186,2736192,2736184,2736190,2736185,2736191,2736188,2736194,2736187,2736193,2736189,2736195,43015480,43015495,43015477,43015492,43015486,43015501,43015483,43015498,43015489,43015504,43015481,43015496,43015478,43015493,43015487,43015502,43015484,43015499,43015490,43015505,43015482,43015497,43015479,43015494,43015488,43015503,43015485,43015500,43015491,43015506,2736443,2736449,2736441,2736447,2736442,2736448,2736445,2736451,2736444,2736450,2736446,2736452,2734343,2734540,2734341,2734538,2734342,2734539,2734536,2734542,2734344,2734541,2734537,2734543,2727648,2727647,2727650,2727649,2727651,2732922,2733166,2732911,2732966,2732944,2733188,2732933,2733177,2732955,2733199,2732921,2733165,2732910,2732965,2732943,2733187,2732932,2733176,2732954,2733198,2732920,2733164,2732909,2732964,2732942,2733186,2732931,2733175,2732953,2733197,2734570,2734576,2734568,2734574,2734569,2734575,2734572,2734578,2734571,2734577,2734573,2734579,43015420,43015435,43015417,43015432,43015426,43015441,43015423,43015438,43015429,43015444,43015421,43015436,43015418,43015433,43015427,43015442,43015424,43015439,43015430,43015445,43015422,43015437,43015419,43015434,43015428,43015443,43015425,43015440,43015431,43015446,2731225,2731250,2731036,2731245,2731235,2731260,2731230,2731255,2731240,2731265,2731226,2731251,2731037,2731246,2731236,2731261,2731231,2731256,2731241,2731266,2731227,2731252,2731038,2731247,2731237,2731262,2731232,2731257,2731242,2731267,2731224,2731249,2731035,2731244,2731234,2731259,2731229,2731254,2731239,2731264,2731223,2731248,2731034,2731243,2731233,2731258,2731228,2731253,2731238,2731263,2727609,2727607,2727613,2727611,2727615,2727610,2727608,2727614,2727612,2727616,2736210,2736216,2736208,2736214,2736209,2736215,2736212,2736218,2736211,2736217,2736213,2736219,2727057,2727039,2727093,2727075,2727738,2727063,2727045,2727726,2727081,2727744,2727054,2727036,2727090,2727072,2727735,2727060,2727042,2727096,2727078,2727741,2727067,2727049,2727730,2727085,2727748,2727056,2727038,2727092,2727074,2727737,2727062,2727044,2727098,2727080,2727743,2727053,2727035,2727089,2727071,2727734,2727059,2727041,2727095,2727077,2727740,2727065,2727047,2727728,2727083,2727746,2727066,2727048,2727729,2727084,2727747,2727055,2727037,2727091,2727073,2727736,2727061,2727043,2727097,2727079,2727742,2727052,2727034,2727088,2727070,2727733,2727058,2727040,2727094,2727076,2727739,2727064,2727046,2727727,2727082,2727745,2727463,2727461,2727467,2727465,2727469,2727464,2727462,2727468,2727466,2727470,2734807,2734813,2734805,2734811,2734806,2734812,2734809,2734815,2734808,2734814,2734810,2734816,2727772,2727756,2727804,2727788,2727820,2727778,2727762,2727810,2727794,2727826,2727769,2727753,2727801,2727785,2727817,2727775,2727759,2727807,2727791,2727823,2727782,2727766,2727814,2727798,2727830,2727771,2727755,2727803,2727787,2727819,2727777,2727761,2727809,2727793,2727825,2727768,2727752,2727800,2727784,2727816,2727774,2727758,2727806,2727790,2727822,2727780,2727764,2727812,2727796,2727828,2727781,2727765,2727813,2727797,2727829,2727770,2727754,2727802,2727786,2727818,2727776,2727760,2727808,2727792,2727824,2727767,2727751,2727799,2727783,2727815,2727773,2727757,2727805,2727789,2727821,2727779,2727763,2727811,2727795,2727827,2734048,2734054,2734046,2734052,2734047,2734053,2734050,2734056,2734049,2734055,2734051,2734057,2734283,2734289,2734094,2734287,2734282,2734288,2734285,2734291,2734284,2734290,2734286,2734292,2727418,2727414,2727426,2727422,2727430,2727416,2727412,2727424,2727420,2727428,2727415,2727411,2727423,2727419,2727427,2727417,2727413,2727425,2727421,2727429,2734072,2734078,2734070,2734076,2734071,2734077,2734074,2734080,2734073,2734079,2734075,2734081,2734307,2734313,2734305,2734311,2734306,2734312,2734309,2734315,2734308,2734314,2734310,2734316,2727625,2727623,2727629,2727627,2727631,2730928,2731214,2730721,2731194,2730968,2731443,2730948,2731423,2731174,2731463,2730927,2731213,2730720,2731193,2730967,2731442,2730947,2731422,2731173,2731462,2730926,2731212,2730719,2731192,2730966,2731441,2730946,2731421,2731172,2731461,2735727,2735733,2735725,2735731,2735726,2735732,2735729,2735735,2735728,2735734,2735730,2735926,2727653,2727652,2727655,2727654,2727656,2733410,2733465,2733210,2733454,2733432,2729744,2733421,2729733,2733443,2729755,2733220,2733464,2733209,2733453,2733431,2729743,2733420,2729732,2733442,2729754,2733219,2733463,2733208,2733452,2733430,2729742,2733419,2729731,2733441,2729753,2735941,2735947,2735939,2735945,2735940,2735946,2735943,2735949,2735942,2735948,2735944,2735950,2734582,2734588,2734580,2734586,2734581,2734587,2734584,2734590,2734583,2734589,2734585,2734591,2734819,2734825,2734817,2734823,2734818,2734824,2734821,2734827,2734820,2734826,2734822,2734828,2730254,2730486,2730245,2730477,2730272,2730504,2730263,2730495,2730281,2730513,2730258,2730490,2730249,2730481,2730276,2730508,2730267,2730499,2730285,2730517,2730253,2730485,2730244,2730289,2730271,2730503,2730262,2730494,2730280,2730512,2730259,2730491,2730250,2730482,2730277,2730509,2730268,2730500,2730286,2730518,2730260,2730492,2730251,2730483,2730278,2730510,2730269,2730501,2730287,2730519,2730256,2730488,2730247,2730479,2730274,2730506,2730265,2730497,2730283,2730515,2730255,2730487,2730246,2730478,2730273,2730505,2730264,2730496,2730282,2730514,2730257,2730489,2730248,2730480,2730275,2730507,2730266,2730498,2730284,2730516,2730252,2730484,2730243,2730288,2730270,2730502,2730261,2730493,2730279,2730511,2736174,2736180,2735987,2736178,2736173,2736179,2736176,2736182,2736175,2736181,2736177,2736183,43015450,43015465,43015447,43015462,43015456,43015471,43015453,43015468,43015459,43015474,43015451,43015466,43015448,43015463,43015457,43015472,43015454,43015469,43015460,43015475,43015452,43015467,43015449,43015464,43015458,43015473,43015455,43015470,43015461,43015476,2736431,2736437,2736429,2736435,2736430,2736436,2736433,2736439,2736432,2736438,2736434,2736440,2734331,2734337,2734329,2734335,2734330,2734336,2734333,2734339,2734332,2734338,2734334,2734340,2735965,2735971,2735963,2735969,2735964,2735970,2735967,2735973,2735966,2735972,2735968,2735974,2727643,2727642,2727645,2727644,2727646,2732434,2732678,2732423,2732667,2732456,2732700,2732445,2732689,2732467,2732711,2732433,2732677,2732422,2732666,2732455,2732699,2732444,2732688,2732466,2732710,2732432,2732676,2732421,2732665,2732454,2732698,2732443,2732687,2732465,2732709,2734558,2734564,2734556,2734562,2734557,2734563,2734560,2734566,2734559,2734565,2734561,2734567,43015390,43015405,43015387,43015402,43015396,43015411,43015393,43015408,43015399,43015414,43015391,43015406,43015388,43015403,43015397,43015412,43015394,43015409,43015400,43015415,43015392,43015407,43015389,43015404,43015398,43015413,43015395,43015410,43015401,43015416,2730991,2731016,2730986,2731011,2731001,2731026,2730996,2731021,2731006,2731031,2730992,2731017,2730987,2731012,2731002,2731027,2730997,2731022,2731007,2731032,2730993,2731018,2730988,2731013,2731003,2731028,2730998,2731023,2731008,2731033,2730990,2731015,2730985,2731010,2731000,2731025,2730995,2731020,2731005,2731030,2730989,2731014,2730984,2731009,2730999,2731024,2730994,2731019,2731004,2731029,2727474,2727472,2727604,2727602,2727606,2727473,2727471,2727603,2727601,2727605,2736198,2736204,2736196,2736202,2736197,2736203,2736200,2736206,2736199,2736205,2736201,2736207,2726967,2726949,2727003,2726985,2727021,2726973,2726955,2727009,2726991,2727027,2726964,2726946,2727000,2726982,2727018,2726970,2726952,2727006,2726988,2727024,2726977,2726959,2727013,2726995,2727031,2726966,2726948,2727002,2726984,2727020,2726972,2726954,2727008,2726990,2727026,2726963,2726945,2726999,2726981,2727017,2726969,2726951,2727005,2726987,2727023,2726975,2726957,2727011,2726993,2727029,2726976,2726958,2727012,2726994,2727030,2726965,2726947,2727001,2726983,2727019,2726971,2726953,2727007,2726989,2727025,2726962,2726944,2726998,2726980,2727016,2726968,2726950,2727004,2726986,2727022,2726974,2726956,2727010,2726992,2727028,2727454,2727452,2727458,2727456,2727460,2727453,2727451,2727457,2727455,2727459,2734795,2734801,2734793,2734799,2734794,2734800,2734797,2734803,2734796,2734802,2734798,2734804,2002191) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002187,2729943,2730416,2729923,2730209,2730169,2730456,2729963,2730436,2730189,2730476,2729949,2730422,2729929,2730215,2730175,2730462,2729969,2730442,2730195,2730668,2729952,2730425,2729932,2730218,2730178,2730465,2729972,2730445,2730198,2730671,2729946,2730419,2729926,2730212,2730172,2730459,2729966,2730439,2730192,2730665,2729942,2730415,2729922,2730208,2730168,2730455,2729962,2730435,2730188,2730475,2729948,2730421,2729928,2730214,2730174,2730461,2729968,2730441,2730194,2730667,2729951,2730424,2729931,2730217,2730177,2730464,2729971,2730444,2730197,2730670,2729945,2730418,2729925,2730211,2730171,2730458,2729965,2730438,2730191,2730664,2729954,2730427,2729934,2730220,2730180,2730467,2729974,2730447,2730200,2730673,2729953,2730426,2729933,2730219,2730179,2730466,2729973,2730446,2730199,2730672,2729941,2730414,2729921,2730207,2730167,2730454,2729961,2730434,2730187,2730474,2729947,2730420,2729927,2730213,2730173,2730460,2729967,2730440,2730193,2730666,2729950,2730423,2729930,2730216,2730176,2730463,2729970,2730443,2730196,2730669,2729944,2730417,2729924,2730210,2730170,2730457,2729964,2730437,2730190,2730663,2735223,2735420,2735221,2735227,2735222,2735228,2735225,2735422,2735224,2735421,2735226,2735423,2727323,2727307,2726917,2727339,2726933,2727329,2727313,2726923,2727345,2726939,2727320,2727304,2726914,2727336,2726930,2727326,2727310,2726920,2727342,2726936,2727333,2727317,2726927,2727349,2726943,2727322,2727306,2726916,2727338,2726932,2727328,2727312,2726922,2727344,2726938,2727319,2727303,2726913,2727335,2726929,2727325,2727309,2726919,2727341,2726935,2727331,2727315,2726925,2727347,2726941,2727332,2727316,2726926,2727348,2726942,2727321,2727305,2726915,2727337,2726931,2727327,2727311,2726921,2727343,2726937,2727318,2727302,2726912,2727334,2726928,2727324,2727308,2726918,2727340,2726934,2727330,2727314,2726924,2727346,2726940,2727618,2727617,2727620,2727619,2727621,2734546,2734552,2734544,2734550,2734545,2734551,2734548,2734554,2734547,2734553,2734549,2734555,2727352,2727836,2727384,2727368,2727400,2727358,2727842,2727390,2727374,2727406,2727849,2727833,2727381,2727365,2727397,2727355,2727839,2727387,2727371,2727403,2727362,2727846,2727394,2727378,2727410,2727351,2727835,2727383,2727367,2727399,2727357,2727841,2727389,2727373,2727405,2727848,2727832,2727380,2727364,2727396,2727354,2727838,2727386,2727370,2727402,2727360,2727844,2727392,2727376,2727408,2727361,2727845,2727393,2727377,2727409,2727350,2727834,2727382,2727366,2727398,2727356,2727840,2727388,2727372,2727404,2727847,2727831,2727379,2727363,2727395,2727353,2727837,2727385,2727369,2727401,2727359,2727843,2727391,2727375,2727407,2734060,2734066,2734058,2734064,2734059,2734065,2734062,2734068,2734061,2734067,2734063,2734069,2734295,2734301,2734293,2734299,2734294,2734300,2734297,2734303,2734296,2734302,2734298,2734304,2727436,2727432,2727444,2727440,2727448,2727435,2727431,2727443,2727439,2727447,2727438,2727434,2727446,2727442,2727450,2727437,2727433,2727445,2727441,2727449,2734084,2734090,2734082,2734088,2734083,2734089,2734086,2734092,2734085,2734091,2734087,2734093,2734319,2734325,2734317,2734323,2734318,2734324,2734321,2734327,2734320,2734326,2734322,2734328,2727635,2727633,2727639,2727637,2727641,2731688,2732163,2731668,2731955,2731915,2732203,2731708,2732183,2731935,2732412,2731687,2732162,2731667,2731954,2731914,2732202,2731707,2732182,2731934,2732411,2731686,2732161,2731666,2731953,2731913,2732201,2731706,2732181,2731933,2732410,2735929,2735935,2735927,2735933,2735928,2735934,2735931,2735937,2735930,2735936,2735932,2735938,2727658,2727657,2727660,2727659,2727661,2729777,2730019,2729766,2730008,2729986,2730229,2729788,2730030,2729997,2730240,2729776,2730018,2729765,2730007,2729985,2730228,2729787,2730029,2729996,2730239,2729775,2730017,2729764,2730006,2729984,2730227,2729786,2730028,2729995,2730238,2735953,2735959,2735951,2735957,2735952,2735958,2735955,2735961,2735954,2735960,2735956,2735962,2734594,2734789,2734592,2734787,2734593,2734788,2734596,2734791,2734595,2734790,2734597,2734792,2734831,2734837,2734829,2734835,2734830,2734836,2734833,2734839,2734832,2734838,2734834,2734840,2730531,2730763,2730522,2730754,2730736,2730781,2730727,2730772,2730745,2730977,2730535,2730767,2730526,2730758,2730740,2730785,2730731,2730776,2730749,2730981,2730530,2730762,2730521,2730753,2730735,2730780,2730726,2730771,2730744,2730976,2730536,2730768,2730527,2730759,2730741,2730786,2730732,2730777,2730750,2730982,2730537,2730769,2730528,2730760,2730742,2730787,2730733,2730778,2730751,2730983,2730533,2730765,2730524,2730756,2730738,2730783,2730729,2730774,2730747,2730979,2730532,2730764,2730523,2730755,2730737,2730782,2730728,2730773,2730746,2730978,2730534,2730766,2730525,2730757,2730739,2730784,2730730,2730775,2730748,2730980,2730529,2730761,2730520,2730752,2730734,2730779,2730538,2730770,2730743,2730788,2736186,2736192,2736184,2736190,2736185,2736191,2736188,2736194,2736187,2736193,2736189,2736195,43015480,43015495,43015477,43015492,43015486,43015501,43015483,43015498,43015489,43015504,43015481,43015496,43015478,43015493,43015487,43015502,43015484,43015499,43015490,43015505,43015482,43015497,43015479,43015494,43015488,43015503,43015485,43015500,43015491,43015506,2736443,2736449,2736441,2736447,2736442,2736448,2736445,2736451,2736444,2736450,2736446,2736452,2734343,2734540,2734341,2734538,2734342,2734539,2734536,2734542,2734344,2734541,2734537,2734543,2727648,2727647,2727650,2727649,2727651,2732922,2733166,2732911,2732966,2732944,2733188,2732933,2733177,2732955,2733199,2732921,2733165,2732910,2732965,2732943,2733187,2732932,2733176,2732954,2733198,2732920,2733164,2732909,2732964,2732942,2733186,2732931,2733175,2732953,2733197,2734570,2734576,2734568,2734574,2734569,2734575,2734572,2734578,2734571,2734577,2734573,2734579,43015420,43015435,43015417,43015432,43015426,43015441,43015423,43015438,43015429,43015444,43015421,43015436,43015418,43015433,43015427,43015442,43015424,43015439,43015430,43015445,43015422,43015437,43015419,43015434,43015428,43015443,43015425,43015440,43015431,43015446,2731225,2731250,2731036,2731245,2731235,2731260,2731230,2731255,2731240,2731265,2731226,2731251,2731037,2731246,2731236,2731261,2731231,2731256,2731241,2731266,2731227,2731252,2731038,2731247,2731237,2731262,2731232,2731257,2731242,2731267,2731224,2731249,2731035,2731244,2731234,2731259,2731229,2731254,2731239,2731264,2731223,2731248,2731034,2731243,2731233,2731258,2731228,2731253,2731238,2731263,2727609,2727607,2727613,2727611,2727615,2727610,2727608,2727614,2727612,2727616,2736210,2736216,2736208,2736214,2736209,2736215,2736212,2736218,2736211,2736217,2736213,2736219,2727057,2727039,2727093,2727075,2727738,2727063,2727045,2727726,2727081,2727744,2727054,2727036,2727090,2727072,2727735,2727060,2727042,2727096,2727078,2727741,2727067,2727049,2727730,2727085,2727748,2727056,2727038,2727092,2727074,2727737,2727062,2727044,2727098,2727080,2727743,2727053,2727035,2727089,2727071,2727734,2727059,2727041,2727095,2727077,2727740,2727065,2727047,2727728,2727083,2727746,2727066,2727048,2727729,2727084,2727747,2727055,2727037,2727091,2727073,2727736,2727061,2727043,2727097,2727079,2727742,2727052,2727034,2727088,2727070,2727733,2727058,2727040,2727094,2727076,2727739,2727064,2727046,2727727,2727082,2727745,2727463,2727461,2727467,2727465,2727469,2727464,2727462,2727468,2727466,2727470,2734807,2734813,2734805,2734811,2734806,2734812,2734809,2734815,2734808,2734814,2734810,2734816,2727772,2727756,2727804,2727788,2727820,2727778,2727762,2727810,2727794,2727826,2727769,2727753,2727801,2727785,2727817,2727775,2727759,2727807,2727791,2727823,2727782,2727766,2727814,2727798,2727830,2727771,2727755,2727803,2727787,2727819,2727777,2727761,2727809,2727793,2727825,2727768,2727752,2727800,2727784,2727816,2727774,2727758,2727806,2727790,2727822,2727780,2727764,2727812,2727796,2727828,2727781,2727765,2727813,2727797,2727829,2727770,2727754,2727802,2727786,2727818,2727776,2727760,2727808,2727792,2727824,2727767,2727751,2727799,2727783,2727815,2727773,2727757,2727805,2727789,2727821,2727779,2727763) or concept_id in (2727811,2727795,2727827,2734048,2734054,2734046,2734052,2734047,2734053,2734050,2734056,2734049,2734055,2734051,2734057,2734283,2734289,2734094,2734287,2734282,2734288,2734285,2734291,2734284,2734290,2734286,2734292,2727418,2727414,2727426,2727422,2727430,2727416,2727412,2727424,2727420,2727428,2727415,2727411,2727423,2727419,2727427,2727417,2727413,2727425,2727421,2727429,2734072,2734078,2734070,2734076,2734071,2734077,2734074,2734080,2734073,2734079,2734075,2734081,2734307,2734313,2734305,2734311,2734306,2734312,2734309,2734315,2734308,2734314,2734310,2734316,2727625,2727623,2727629,2727627,2727631,2730928,2731214,2730721,2731194,2730968,2731443,2730948,2731423,2731174,2731463,2730927,2731213,2730720,2731193,2730967,2731442,2730947,2731422,2731173,2731462,2730926,2731212,2730719,2731192,2730966,2731441,2730946,2731421,2731172,2731461,2735727,2735733,2735725,2735731,2735726,2735732,2735729,2735735,2735728,2735734,2735730,2735926,2727653,2727652,2727655,2727654,2727656,2733410,2733465,2733210,2733454,2733432,2729744,2733421,2729733,2733443,2729755,2733220,2733464,2733209,2733453,2733431,2729743,2733420,2729732,2733442,2729754,2733219,2733463,2733208,2733452,2733430,2729742,2733419,2729731,2733441,2729753,2735941,2735947,2735939,2735945,2735940,2735946,2735943,2735949,2735942,2735948,2735944,2735950,2734582,2734588,2734580,2734586,2734581,2734587,2734584,2734590,2734583,2734589,2734585,2734591,2734819,2734825,2734817,2734823,2734818,2734824,2734821,2734827,2734820,2734826,2734822,2734828,2730254,2730486,2730245,2730477,2730272,2730504,2730263,2730495,2730281,2730513,2730258,2730490,2730249,2730481,2730276,2730508,2730267,2730499,2730285,2730517,2730253,2730485,2730244,2730289,2730271,2730503,2730262,2730494,2730280,2730512,2730259,2730491,2730250,2730482,2730277,2730509,2730268,2730500,2730286,2730518,2730260,2730492,2730251,2730483,2730278,2730510,2730269,2730501,2730287,2730519,2730256,2730488,2730247,2730479,2730274,2730506,2730265,2730497,2730283,2730515,2730255,2730487,2730246,2730478,2730273,2730505,2730264,2730496,2730282,2730514,2730257,2730489,2730248,2730480,2730275,2730507,2730266,2730498,2730284,2730516,2730252,2730484,2730243,2730288,2730270,2730502,2730261,2730493,2730279,2730511,2736174,2736180,2735987,2736178,2736173,2736179,2736176,2736182,2736175,2736181,2736177,2736183,43015450,43015465,43015447,43015462,43015456,43015471,43015453,43015468,43015459,43015474,43015451,43015466,43015448,43015463,43015457,43015472,43015454,43015469,43015460,43015475,43015452,43015467,43015449,43015464,43015458,43015473,43015455,43015470,43015461,43015476,2736431,2736437,2736429,2736435,2736430,2736436,2736433,2736439,2736432,2736438,2736434,2736440,2734331,2734337,2734329,2734335,2734330,2734336,2734333,2734339,2734332,2734338,2734334,2734340,2735965,2735971,2735963,2735969,2735964,2735970,2735967,2735973,2735966,2735972,2735968,2735974,2727643,2727642,2727645,2727644,2727646,2732434,2732678,2732423,2732667,2732456,2732700,2732445,2732689,2732467,2732711,2732433,2732677,2732422,2732666,2732455,2732699,2732444,2732688,2732466,2732710,2732432,2732676,2732421,2732665,2732454,2732698,2732443,2732687,2732465,2732709,2734558,2734564,2734556,2734562,2734557,2734563,2734560,2734566,2734559,2734565,2734561,2734567,43015390,43015405,43015387,43015402,43015396,43015411,43015393,43015408,43015399,43015414,43015391,43015406,43015388,43015403,43015397,43015412,43015394,43015409,43015400,43015415,43015392,43015407,43015389,43015404,43015398,43015413,43015395,43015410,43015401,43015416,2730991,2731016,2730986,2731011,2731001,2731026,2730996,2731021,2731006,2731031,2730992,2731017,2730987,2731012,2731002,2731027,2730997,2731022,2731007,2731032,2730993,2731018,2730988,2731013,2731003,2731028,2730998,2731023,2731008,2731033,2730990,2731015,2730985,2731010,2731000,2731025,2730995,2731020,2731005,2731030,2730989,2731014,2730984,2731009,2730999,2731024,2730994,2731019,2731004,2731029,2727474,2727472,2727604,2727602,2727606,2727473,2727471,2727603,2727601,2727605,2736198,2736204,2736196,2736202,2736197,2736203,2736200,2736206,2736199,2736205,2736201,2736207,2726967,2726949,2727003,2726985,2727021,2726973,2726955,2727009,2726991,2727027,2726964,2726946,2727000,2726982,2727018,2726970,2726952,2727006,2726988,2727024,2726977,2726959,2727013,2726995,2727031,2726966,2726948,2727002,2726984,2727020,2726972,2726954,2727008,2726990,2727026,2726963,2726945,2726999,2726981,2727017,2726969,2726951,2727005,2726987,2727023,2726975,2726957,2727011,2726993,2727029,2726976,2726958,2727012,2726994,2727030,2726965,2726947,2727001,2726983,2727019,2726971,2726953,2727007,2726989,2727025,2726962,2726944,2726998,2726980,2727016,2726968,2726950,2727004,2726986,2727022,2726974,2726956,2727010,2726992,2727028,2727454,2727452,2727458,2727456,2727460,2727453,2727451,2727457,2727455,2727459,2734795,2734801,2734793,2734799,2734794,2734800,2734797,2734803,2734796,2734802,2734798,2734804,2002191)) ) I ) C; @@ -314,49 +314,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/868.sql b/inst/sql/sql_server/868.sql index e9fae5f5..b5c27382 100644 --- a/inst/sql/sql_server/868.sql +++ b/inst/sql/sql_server/868.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 84 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002027,2728555,2728556,2728557,2728410,2728412,2728546,2728548,2728540,2728542,2728561,2728562,2728563,2728567,2728568,2728569,2728552,2728554,2728407,2728409,2728543,2728545,2728413,2728539,2728558,2728559,2728560,2728564,2728565,2728566,2728549,2728551,2000061) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002027,2728555,2728556,2728557,2728410,2728412,2728546,2728548,2728540,2728542,2728561,2728562,2728563,2728567,2728568,2728569,2728552,2728554,2728407,2728409,2728543,2728545,2728413,2728539,2728558,2728559,2728560,2728564,2728565,2728566,2728549,2728551,2000061)) ) I ) C; @@ -314,49 +314,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/869.sql b/inst/sql/sql_server/869.sql index ff62f693..35a43488 100644 --- a/inst/sql/sql_server/869.sql +++ b/inst/sql/sql_server/869.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 83 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2742069,2742070,2742072,2742064,2742065,2742067,2742059,2742060,2742062,2744438,2744633,2744637,2744428,2744430,2744432,2744434,2744418,2744420,2744422,2744424,2001338,2001328,2001329,2001343,2001337,2001340,2001334,2001327,2744192,2744193,2744194,2744195,2744196,2744187,2744188,2744189,2744190,2744191,2744182,2744183,2744184,2744185,2744186,2001331,2001326,2001339,2001342,2001336) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2742069,2742070,2742072,2742064,2742065,2742067,2742059,2742060,2742062,2744438,2744633,2744637,2744428,2744430,2744432,2744434,2744418,2744420,2744422,2744424,2001338,2001328,2001329,2001343,2001337,2001340,2001334,2001327,2744192,2744193,2744194,2744195,2744196,2744187,2744188,2744189,2744190,2744191,2744182,2744183,2744184,2744185,2744186,2001331,2001326,2001339,2001342,2001336)) ) I ) C; @@ -314,49 +314,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/87.sql b/inst/sql/sql_server/87.sql index 5c9cace4..2318f298 100644 --- a/inst/sql/sql_server/87.sql +++ b/inst/sql/sql_server/87.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (756055,704059,704058) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (756055,704059,704058)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (756055,704059,704058) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (756055,704059,704058)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37310258) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (37310258)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37310258) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37310258)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/870.sql b/inst/sql/sql_server/870.sql index 14dcfdcc..552baa31 100644 --- a/inst/sql/sql_server/870.sql +++ b/inst/sql/sql_server/870.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 82 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2002489,2002487,2002485,2002486,2748708,2748729,2748718,2748739,2748713,2748728,2748734,2748723,2748744,2748710,2748731,2748948,2748720,2748741,2748958,2748715,2748736,2748953,2748725,2748943,2748963,2748712,2748733,2748950,2748722,2748743,2748960,2748717,2748738,2748955,2748727,2748945,2748965,2748711,2748732,2748949,2748721,2748742,2748959,2748716,2748737,2748954,2748726,2748944,2748964,2748709,2748730,2748947,2748719,2748740,2748957,2748714,2748735,2748952,2748724,2748942,2748962,2002462,2746751,2746753,2746757,2746786,2746788,2746790,2746792,2746794,2002470,2002468,2002482,2002466,2002467,2002502,2002491,2002490,2002488,2002483,2002471,2002469,2002463,2753144,2753145,2753146,2753147,2002464,2752710,2752711,2752708,2752709,2752706,2752707) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2002489,2002487,2002485,2002486,2748708,2748729,2748718,2748739,2748713,2748728,2748734,2748723,2748744,2748710,2748731,2748948,2748720,2748741,2748958,2748715,2748736,2748953,2748725,2748943,2748963,2748712,2748733,2748950,2748722,2748743,2748960,2748717,2748738,2748955,2748727,2748945,2748965,2748711,2748732,2748949,2748721,2748742,2748959,2748716,2748737,2748954,2748726,2748944,2748964,2748709,2748730,2748947,2748719,2748740,2748957,2748714,2748735,2748952,2748724,2748942,2748962,2002462,2746751,2746753,2746757,2746786,2746788,2746790,2746792,2746794,2002470,2002468,2002482,2002466,2002467,2002502,2002491,2002490,2002488,2002483,2002471,2002469,2002463,2753144,2753145,2753146,2753147,2002464,2752710,2752711,2752708,2752709,2752706,2752707)) ) I ) C; @@ -314,49 +314,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/871.sql b/inst/sql/sql_server/871.sql index 6c97b2ab..3f626f51 100644 --- a/inst/sql/sql_server/871.sql +++ b/inst/sql/sql_server/871.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003348,2750943,2750945,2750947,43017182,2003350,2003347,2003362,2003349,2753534,2753535,2003351) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003348,2750943,2750945,2750947,43017182,2003350,2003347,2003362,2003349,2753534,2753535,2003351)) ) I ) C; @@ -314,49 +314,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/872.sql b/inst/sql/sql_server/872.sql index 95659457..2a5f056c 100644 --- a/inst/sql/sql_server/872.sql +++ b/inst/sql/sql_server/872.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 80 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (43016394,2747030,2747032,2747034,2747036,2747038,43016392,43016398,43016393,2000811,2000834,2000810,2000833,2000832,2000835,2002768,2002751,2002764,2002750,2002763,2002762,2002765,2002769,2002766,2002770,2000836,2753386,2753378,2753379,2753380,2753381,43017217,2753176,2753177,2753368,2753369,2753374,2753375,2753376,2753377,43017215,2753370,2753371,2753372,2753373,2753398,2753399,2753400,2753401,43017218,2753390,2753391,2753392,2753393,43017216) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (43016394,2747030,2747032,2747034,2747036,2747038,43016392,43016398,43016393,2000811,2000834,2000810,2000833,2000832,2000835,2002768,2002751,2002764,2002750,2002763,2002762,2002765,2002769,2002766,2002770,2000836,2753386,2753378,2753379,2753380,2753381,43017217,2753176,2753177,2753368,2753369,2753374,2753375,2753376,2753377,43017215,2753370,2753371,2753372,2753373,2753398,2753399,2753400,2753401,43017218,2753390,2753391,2753392,2753393,43017216)) ) I ) C; @@ -314,49 +314,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/873.sql b/inst/sql/sql_server/873.sql index 4245d619..19fba7c0 100644 --- a/inst/sql/sql_server/873.sql +++ b/inst/sql/sql_server/873.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 79 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2773930,2773932,2773934,2003806,2003803,2003805,2780485,2780486,2776775,2776776,2776777,2776778,2780477,2780478,2780479,2780480,2776783,2776972,2776973,2776974) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2773930,2773932,2773934,2003806,2003803,2003805,2780485,2780486,2776775,2776776,2776777,2776778,2780477,2780478,2780479,2780480,2776783,2776972,2776973,2776974)) ) I ) C; @@ -314,49 +314,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/874.sql b/inst/sql/sql_server/874.sql index 1063d081..02af0a75 100644 --- a/inst/sql/sql_server/874.sql +++ b/inst/sql/sql_server/874.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 80 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003623,2773711,2773713,2773715,2773717,2773719,2773691,2773693,2773695,2773697,2773699,2773701,2773703,2773705,2773707,2773709,2773681,2773683,2773685,2773687,2773689,2003611,2003610,2003608,2003622,2776763,2776764,2776765,2776766,2776755,2776756,2776759,2776760,2776761,2776762,2776753,2776754) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003623,2773711,2773713,2773715,2773717,2773719,2773691,2773693,2773695,2773697,2773699,2773701,2773703,2773705,2773707,2773709,2773681,2773683,2773685,2773687,2773689,2003611,2003610,2003608,2003622,2776763,2776764,2776765,2776766,2776755,2776756,2776759,2776760,2776761,2776762,2776753,2776754)) ) I ) C; @@ -314,49 +314,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/875.sql b/inst/sql/sql_server/875.sql index dc1cfe40..5163fa31 100644 --- a/inst/sql/sql_server/875.sql +++ b/inst/sql/sql_server/875.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 87 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2001513,2001510,2001512,2001511,2001516,2001509,2725357,2725389,2725351,2725383,2725369,2725402,2725363,2725396,42894403,42894409,2725355,2725387,2725349,2725381,2725367,2725400,2725361,2725394,42894401,42894407,2725373,2725406,2724724,2724756,2724718,2724750,2724736,2725215,2724730,2724763,42894245,42894251,2724742,2725221,2724725,2724757,2724719,2724751,2724737,2725216,2724731,2724764,42894246,42894252,2724720,2724752,2724714,2724746,2724732,2724765,2724726,2724759,42894241,42894247,2724738,2725217,2724722,2724754,2724716,2724748,2724734,2725213,2724728,2724761,42894243,42894249,2724740,2725219,2724721,2724753,2724715,2724747,2724733,2724766,2724727,2724760,42894242,42894248,2724739,2725218,2724723,2724755,2724717,2724749,2724735,2725214,2724729,2724762,42894244,42894250,2724741,2725220,2725295,2725327,2725289,2725321,2725307,2725340,2725301,2725334,42894234,42894240,2725293,2725325,2725287,2725319,2725305,2725338,2725299,2725332,42894232,42894238,2725311,2725344,2725233,2725265,2725227,2725259,2725245,2725278,2725239,2725272,42894258,42894228,2725230,2725262,2725224,2725256,2725242,2725275,2725236,2725269,42894255,42894225,2725248,2725281,2725229,2725261,2725223,2725255,2725241,2725274,2725235,2725268,42894254,42894224,2725247,2725280,2725231,2725263,2725225,2725257,2725243,2725276,2725237,2725270,42894256,42894226,2725249,2725282,2725086,2725107,2725085,2725106,2725087,2725108,2725050,2725071,2725044,2725065,2725043,2725064,2725045,2725066,2001508,2001515,2001518,2001517,2001514) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2001513,2001510,2001512,2001511,2001516,2001509,2725357,2725389,2725351,2725383,2725369,2725402,2725363,2725396,42894403,42894409,2725355,2725387,2725349,2725381,2725367,2725400,2725361,2725394,42894401,42894407,2725373,2725406,2724724,2724756,2724718,2724750,2724736,2725215,2724730,2724763,42894245,42894251,2724742,2725221,2724725,2724757,2724719,2724751,2724737,2725216,2724731,2724764,42894246,42894252,2724720,2724752,2724714,2724746,2724732,2724765,2724726,2724759,42894241,42894247,2724738,2725217,2724722,2724754,2724716,2724748,2724734,2725213,2724728,2724761,42894243,42894249,2724740,2725219,2724721,2724753,2724715,2724747,2724733,2724766,2724727,2724760,42894242,42894248,2724739,2725218,2724723,2724755,2724717,2724749,2724735,2725214,2724729,2724762,42894244,42894250,2724741,2725220,2725295,2725327,2725289,2725321,2725307,2725340,2725301,2725334,42894234,42894240,2725293,2725325,2725287,2725319,2725305,2725338,2725299,2725332,42894232,42894238,2725311,2725344,2725233,2725265,2725227,2725259,2725245,2725278,2725239,2725272,42894258,42894228,2725230,2725262,2725224,2725256,2725242,2725275,2725236,2725269,42894255,42894225,2725248,2725281,2725229,2725261,2725223,2725255,2725241,2725274,2725235,2725268,42894254,42894224,2725247,2725280,2725231,2725263,2725225,2725257,2725243,2725276,2725237,2725270,42894256,42894226,2725249,2725282,2725086,2725107,2725085,2725106,2725087,2725108,2725050,2725071,2725044,2725065,2725043,2725064,2725045,2725066,2001508,2001515,2001518,2001517,2001514)) ) I ) C; @@ -314,49 +314,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/876.sql b/inst/sql/sql_server/876.sql index 74f551f1..33617fa7 100644 --- a/inst/sql/sql_server/876.sql +++ b/inst/sql/sql_server/876.sql @@ -7,29 +7,29 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 88 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2001435,2001437,2001438,2001439,2001440,2001436,2725485,2725486,2725487,2725494,2725495,2725496,2725503,2725504,2725505,2725512,2725513,2725514,40756791,40756772,40756774,2001450,2001449,2001447,2001452,2001451,2001454,2001453,2001456,2001455,2001448,2001443,2001444,2001445,2001446,2001441,2001442,2001497,40756812,2726005,2726006,2726007,2726008,2726009,2726010,2726011,2726012,2726013,2726014,2726015,2726016,42894764,42894765,42894766,2726158,42894767,42894768,42894769,2726161,2726164,42894770,42894771,42894772,2726786,42898024,42898025,42898026,2726863,2726868,2726875,2726867,2726866,2726874,2726878,2726873,2726865,2726872,2726877,2726871,2726864,2726870,2726876,2726869,2726879,2726884,2726891,2726883,2726882,2726890,2726894,2726889,2726881,2726888,2726893,2726887,2726880,2726886,2726892,2726885,2726895,2726900,2726907,2726899,2726898,2726906,2726910,2726905,2726897,2726904,2726909,2726903,2726896,2726902,2726908,2726901,2726911,43015332,2726417,43015331,2726416,43015338,2726420,43015337,2726415,43015336,2726419,43015335,2726414,43015334,2726418,43015333,43015339,43015340,43015341,2727231,43015349,2727235,2727239,43015353,2727243,2727247,43015357,2727251,2727255,43015361,2727259,2727234,43015352,2727238,2727242,43015356,2727246,2727250,43015360,2727254,2727258,43015364,2727262,2727233,43015351,2727237,2727185,2727186,2727241,43015355,2727245,2727249,43015359,2727253,2727257,43015363,2727261,2727263,2727264,2727232,43015350,2727236,2727240,43015354,2727244,2727248,43015358,2727252,2727256,43015362,2727260,2001494,2726754,40756792,40756793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2001435,2001437,2001438,2001439,2001440,2001436,2725485,2725486,2725487,2725494,2725495,2725496,2725503,2725504,2725505,2725512,2725513,2725514,40756791,40756772,40756774,2001450,2001449,2001447,2001452,2001451,2001454,2001453,2001456,2001455,2001448,2001443,2001444,2001445,2001446,2001441,2001442,2001497,40756812,2726005,2726006,2726007,2726008,2726009,2726010,2726011,2726012,2726013,2726014,2726015,2726016,42894764,42894765,42894766,2726158,42894767,42894768,42894769,2726161,2726164,42894770,42894771,42894772,2726786,42898024,42898025,42898026,2726863,2726868,2726875,2726867,2726866,2726874,2726878,2726873,2726865,2726872,2726877,2726871,2726864,2726870,2726876,2726869,2726879,2726884,2726891,2726883,2726882,2726890,2726894,2726889,2726881,2726888,2726893,2726887,2726880,2726886,2726892,2726885,2726895,2726900,2726907,2726899,2726898,2726906,2726910,2726905,2726897,2726904,2726909,2726903,2726896,2726902,2726908,2726901,2726911,43015332,2726417,43015331,2726416,43015338,2726420,43015337,2726415,43015336,2726419,43015335,2726414,43015334,2726418,43015333,43015339,43015340,43015341,2727231,43015349,2727235,2727239,43015353,2727243,2727247,43015357,2727251,2727255,43015361,2727259,2727234,43015352,2727238,2727242,43015356,2727246,2727250,43015360,2727254,2727258,43015364,2727262,2727233,43015351,2727237,2727185,2727186,2727241,43015355,2727245,2727249,43015359,2727253,2727257,43015363,2727261,2727263,2727264,2727232,43015350,2727236,2727240,43015354,2727244,2727248,43015358,2727252,2727256,43015362,2727260,2001494,2726754,40756792,40756793)) ) I ) C; @@ -314,49 +314,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/877.sql b/inst/sql/sql_server/877.sql index 7786ebf6..7ee8c0c7 100644 --- a/inst/sql/sql_server/877.sql +++ b/inst/sql/sql_server/877.sql @@ -7,793 +7,793 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4135199,3363351,2107924,2107949,2107837,4283095,4240486,4142641,4234989,4035152,2107740) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135199,3363351,2107924,2107949,2107837,4283095,4240486,4142641,4234989,4035152,2107740)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4135199,3363351,2107924,2107949,2107837,4240486,4142641,4234989) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135199,3363351,2107924,2107949,2107837,4240486,4142641,4234989)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4236706) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4236706)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4236706) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4236706)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4195136) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4195136)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4195136) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4195136)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4021530) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4021530)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4021530) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4021530)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4127886,4127887,4021529,2110177,4023403,42538159,42538160,4032622,2110209,2110211,43018211,4138738,4306298,4306070,4072416,4070209,45769914,45769913,45769911) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4127886,4127887,4021529,2110177,4023403,42538159,42538160,4032622,2110209,2110211,43018211,4138738,4306298,4306070,4072416,4070209,45769914,45769913,45769911)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2110177,4023403,42538159,42538160,43018211,4306298) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2110177,4023403,42538159,42538160,43018211,4306298)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4096783) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4096783)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4096783) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4096783)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 34 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4234536) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4234536)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4234536) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4234536)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 38 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4312749) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4312749)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4312749) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4312749)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 45 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 46 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4101626) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4101626)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4101626) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4101626)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 47 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 48 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4078547,43531648) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4078547,43531648)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43531648) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43531648)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 51 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2811735,2896830,2839189,4345349,4322818,4067461,4069129,4312613,40487106,46270641,4142436,2109316,4251035) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2811735,2896830,2839189,4345349,4322818,4067461,4069129,4312613,40487106,46270641,4142436,2109316,4251035)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2811735,2896830,2839189,4345349) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2811735,2896830,2839189,4345349)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4030150,4314001,4147687,4076862,4311405,4272324,4249893,4304358,4250892,4300528,4138127,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4030150,4314001,4147687,4076862,4311405,4272324,4249893,4304358,4250892,4300528,4138127,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4030150,4314001,4147687,4076862,46273729) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4030150,4314001,4147687,4076862,46273729)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 55 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180074) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180074)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180074) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180074)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 56 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049675,4244434,4236715,42872711,2211642,4052252,2107574,4263586,4294254,4022030,40757028,2733576,4305183,2733582,2733567,4243023,4051031,40493483,40489434,40756876,2107882,2107931,2733577,2733579) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049675,4244434,4236715,42872711,2211642,4052252,2107574,4263586,4294254,4022030,40757028,2733576,4305183,2733582,2733567,4243023,4051031,40493483,40489434,40756876,2107882,2107931,2733577,2733579)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4049675) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4049675)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,46273729) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,46273729)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 57 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872694) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872694)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872694) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872694)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 58 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872696) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872696)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872696) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872696)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 59 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4022030) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4022030)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4022030) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4022030)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 61 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049675,3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049675,3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 62 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4031312,4030825,4120657) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4031312,4030825,4120657)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4031312,4030825,4120657) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4031312,4030825,4120657)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 63 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2006434,2006432,4297155,4001562,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034,2102700,2102701,2102712,3177626,36676345,36676344,40480531,4127484,4302594,4231761,2102734,4301336,2106769,4301338,2106770) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2006434,2006432,4297155,4001562,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034,2102700,2102701,2102712,3177626,36676345,36676344,40480531,4127484,4302594,4231761,2102734,4301336,2106769,4301338,2106770)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2006434,2006432,4297155,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2006434,2006432,4297155,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 64 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4203442,4121242,2002549,2108974,40483096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4203442,4121242,2002549,2108974,40483096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4203442,4121242,2002549,2108974,40483096) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4203442,4121242,2002549,2108974,40483096)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 65 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4141456,2003225,4141110) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4141456,2003225,4141110)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4141456,2003225,4141110) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4141456,2003225,4141110)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 66 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4187533,725062,2108937) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4187533,725062,2108937)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4187533,725062,2108937) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4187533,725062,2108937)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 67 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108486,4120425,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421,4125465,2108482,4012004,4100937,2108485,2102736,4229920,4208330) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108486,4120425,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421,4125465,2108482,4012004,4100937,2108485,2102736,4229920,4208330)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108486,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108486,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 68 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000882) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000882)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000882) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000882)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 69 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917,2108020) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917,2108020)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4138127,4042673,4272324,4300528,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4138127,4042673,4272324,4300528,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 70 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4315036,4286744,43531416) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4315036,4286744,43531416)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4315036,4286744,43531416) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4315036,4286744,43531416)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 71 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4219032,2006227,2006228,4338257,4264289,2105446,2105448,2105450,2105449,2784251,2784250,4143795,2006242,2105451,4119910) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4219032,2006227,2006228,4338257,4264289,2105446,2105448,2105450,2105449,2784251,2784250,4143795,2006242,2105451,4119910)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2006227,2006228) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2006227,2006228)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 72 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000882,2001339,2001342,42742510) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000882,2001339,2001342,42742510)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000882,2001339,2001342,42742510) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000882,2001339,2001342,42742510)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 73 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2722219,4241198) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2722219,4241198)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2722219,4241198) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2722219,4241198)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 74 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2109616,4047234) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2109616,4047234)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2109616,4047234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2109616,4047234)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 75 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216,4059308,4242997,2109368,4033555,4240962,4134888) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216,4059308,4242997,2109368,4033555,4240962,4134888)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673,4272324,4300528,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673,4272324,4300528,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 76 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761)) ) I ) C UNION ALL SELECT 78 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4022807,4021108,4304536,2773682,2773695,2109617,2773685,2109574,4288997,4027426,4270496,4118715,4010266,2109723,2109724,2109715,2773934,2109722,2773938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4022807,4021108,4304536,2773682,2773695,2109617,2773685,2109574,4288997,4027426,4270496,4118715,4010266,2109723,2109724,2109715,2773934,2109722,2773938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4270496,2109723,2109724,2109715,2109722) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4270496,2109723,2109724,2109715,2109722)) ) I ) C UNION ALL SELECT 80 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4154290) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4154290)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4154290) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4154290)) ) I ) C UNION ALL SELECT 81 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C; @@ -1648,49 +1648,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/878.sql b/inst/sql/sql_server/878.sql index 8d4c6b7c..8a5b73aa 100644 --- a/inst/sql/sql_server/878.sql +++ b/inst/sql/sql_server/878.sql @@ -7,782 +7,782 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (9201)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4135199,3363351,2107924,2107949,2107837,4283095,4240486,4142641,4234989,4035152,2107740) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4135199,3363351,2107924,2107949,2107837,4283095,4240486,4142641,4234989,4035152,2107740)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4135199,3363351,2107924,2107949,2107837,4240486,4142641,4234989) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4135199,3363351,2107924,2107949,2107837,4240486,4142641,4234989)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,2853855)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4236706) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4236706)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4236706) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4236706)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 30 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4195136) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4195136)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4195136) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4195136)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4225223)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 31 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4021530) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4021530)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4021530) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4021530)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 32 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4127886,4127887,4021529,2110177,4023403,42538159,42538160,4032622,2110209,2110211,43018211,4138738,4306298,4306070,4072416,4070209,45769914,45769913,45769911) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4127886,4127887,4021529,2110177,4023403,42538159,42538160,4032622,2110209,2110211,43018211,4138738,4306298,4306070,4072416,4070209,45769914,45769913,45769911)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2110177,4023403,42538159,42538160,43018211,4306298) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2110177,4023403,42538159,42538160,43018211,4306298)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 33 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4096783) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4096783)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4096783) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4096783)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 34 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4234536) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4234536)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4234536) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4234536)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 38 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4312749) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4312749)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4312749) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4312749)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4323208,4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 43 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203)) ) I ) C UNION ALL SELECT 45 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4013040,4196081,38001162,40482705,4128868,4314436,4125173)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4144721,4035031,4195115,4311405,4170609,4249893,4304358,4250892,4300528,4138127,4179713,4126235,4194372,4062763,4127886,44809616,4179797,4030387,2002949,4144723,4042673,4166761,4199870,4200964)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 46 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4101626) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4101626)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4101626) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4101626)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4232401,4250892,4300528,4138127,40490839,4343795,4243985,4080349,4296539,4069383,4182228,4284392,4121136,4042673,45887543,2103134,2103133,4265725,4136234)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 47 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108643,2108645,2768119,2830031,4077122,2103867,2740455,2756407,2760818,2740654,2756413,2756411)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,42872673,4003042,4030715,4042673,4124209,2768121,2768142,2768127,2768130)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 48 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4078547,43531648) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4078547,43531648)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (43531648) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (43531648)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4239294,2824731,2005871,4042673,4180403,4106397,2000080,2000081,2000079,2105129,2000082)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 51 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2811735,2896830,2839189,4345349,4322818,4067461,4069129,4312613,40487106,46270641,4142436,2109316,4251035) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2811735,2896830,2839189,4345349,4322818,4067461,4069129,4312613,40487106,46270641,4142436,2109316,4251035)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2811735,2896830,2839189,4345349) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2811735,2896830,2839189,4345349)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4030150,4314001,4147687,4076862,4311405,4272324,4249893,4304358,4250892,4300528,4138127,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4030150,4314001,4147687,4076862,4311405,4272324,4249893,4304358,4250892,4300528,4138127,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4030150,4314001,4147687,4076862,46273729) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4030150,4314001,4147687,4076862,46273729)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 55 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180074) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180074)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180074) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180074)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 56 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049675,4244434,4236715,42872711,2211642,4052252,2107574,4263586,4294254,4022030,40757028,2733576,4305183,2733582,2733567,4243023,4051031,40493483,40489434,40756876,2107882,2107931,2733577,2733579) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049675,4244434,4236715,42872711,2211642,4052252,2107574,4263586,4294254,4022030,40757028,2733576,4305183,2733582,2733567,4243023,4051031,40493483,40489434,40756876,2107882,2107931,2733577,2733579)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4049675) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4049675)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,46273729) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4267446,4311405,42736434,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107573,4042673,4181152,46273729)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 57 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872694) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872694)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872694) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872694)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050715,4311405,4249893,4304358,42896616,42896602,42896609,42896661,42896610,2731751,2731749,42896667,2731750,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 58 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (42872696) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (42872696)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (42872696) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (42872696)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4050131,4311405,2730933,4249893,4304358,4116625,4250892,4300528,4138127,4195806,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 59 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4022030) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4022030)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4022030) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4022030)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4168349,4042673,4229447)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 61 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4049675,3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4049675,3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3188936,3186130,4259553,46271672,4000088,44793144,4181152,4199966,45887730,2107101,2107112)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,2107453,4272324,4249893,4304358,4250892,4300528,4138127,2211645,2211646,2107431,2107430,2211648,2107581,2107429,2107428,2211647,4042673,2107425,2107310)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 62 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4031312,4030825,4120657) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4031312,4030825,4120657)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4031312,4030825,4120657) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4031312,4030825,4120657)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 63 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2006434,2006432,4297155,4001562,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034,2102700,2102701,2102712,3177626,36676345,36676344,40480531,4127484,4302594,4231761,2102734,4301336,2106769,4301338,2106770) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2006434,2006432,4297155,4001562,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034,2102700,2102701,2102712,3177626,36676345,36676344,40480531,4127484,4302594,4231761,2102734,4301336,2106769,4301338,2106770)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2006434,2006432,4297155,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2006434,2006432,4297155,709956,709957,4183741,42733287,2103375,42732580,2740664,2106890,2106891,2006433,2006421,4337034)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 64 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4203442,4121242,2002549,2108974,40483096) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4203442,4121242,2002549,2108974,40483096)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4203442,4121242,2002549,2108974,40483096) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4203442,4121242,2002549,2108974,40483096)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4170280,4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 65 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4141456,2003225,4141110) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4141456,2003225,4141110)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4141456,2003225,4141110) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4141456,2003225,4141110)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 66 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4187533,725062,2108937) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4187533,725062,2108937)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4187533,725062,2108937) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4187533,725062,2108937)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 67 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2108486,4120425,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421,4125465,2108482,4012004,4100937,2108485,2102736,4229920,4208330) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2108486,4120425,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421,4125465,2108482,4012004,4100937,2108485,2102736,4229920,4208330)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2108486,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2108486,2108645,2108640,2108475,42735001,2102721,42733288,42732332,2110038,2108490,42742521,2110372,2006421)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 68 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000882) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000882)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000882) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000882)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 69 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917,2108020) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917,2108020)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4321450,4159841,4076334,2005415,2104897,2104896,2104912,2104919,2105149,4002375,2798725,2819144,2852443,2819622,2832272,2886663,2865770,2824740,2860039,2886683,2891748,2865764,4211987,2005457,2104900,2104899,2104943,2104914,2105166,2105165,2104920,2104934,2104898,4297365,2105163,2104913,2005882,4090926,2104839,2104840,4075926,4203771,2104918,2104917)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4138127,4042673,4272324,4300528,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4138127,4042673,4272324,4300528,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 70 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4315036,4286744,43531416) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4315036,4286744,43531416)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4315036,4286744,43531416) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4315036,4286744,43531416)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 71 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4219032,2006227,2006228,4338257,4264289,2105446,2105448,2105450,2105449,2784251,2784250,4143795,2006242,2105451,4119910) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4219032,2006227,2006228,4338257,4264289,2105446,2105448,2105450,2105449,2784251,2784250,4143795,2006242,2105451,4119910)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2006227,2006228) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2006227,2006228)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 72 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4000882,2001339,2001342,42742510) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4000882,2001339,2001342,42742510)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4000882,2001339,2001342,42742510) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4000882,2001339,2001342,42742510)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 73 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2722219,4241198) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2722219,4241198)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2722219,4241198) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2722219,4241198)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 74 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2109616,4047234) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2109616,4047234)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2109616,4047234) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2109616,4047234)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673,4272324,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673,4272324,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4300528,4138127,2752031,2752037,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 75 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216,4059308,4242997,2109368,4033555,4240962,4134888) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216,4059308,4242997,2109368,4033555,4240962,4134888)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (38001216,38001215,38001217,38001213,38001212,38001214,2003223,38001219,38001218,38001220,2003224,2722214,2722215,2722216)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673,4272324,4300528,2108020,46273729,4230535) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673,4272324,4300528,2108020,46273729,4230535)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4311405,4249893,4304358,4250892,4138127,4179071,4042673)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 76 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4216472,44809456,44809457,4264332,2102759,4032640,4216471,4064295,2102773,2102761)) ) I ) C UNION ALL SELECT 78 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4022807,4021108,4304536,2773682,2773695,2109617,2773685,2109574,4288997,4027426,4270496,4118715,4010266,2109723,2109724,2109715,2773934,2109722,2773938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4022807,4021108,4304536,2773682,2773695,2109617,2773685,2109574,4288997,4027426,4270496,4118715,4010266,2109723,2109724,2109715,2773934,2109722,2773938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4270496,2109723,2109724,2109715,2109722) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2003708,2776176,2775402,2775928,2775927,2774933,2775894,2775672,2775671,2775665,2109680,2003724,4077764,4235644,4107717,2109657,4022960,4029570,4184788,4270496,2109723,2109724,2109715,2109722)) ) I ) C UNION ALL SELECT 79 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313217) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313217)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313217) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313217)) ) I ) C; @@ -1637,49 +1637,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/881.sql b/inst/sql/sql_server/881.sql index b6e5e00f..b5763f82 100644 --- a/inst/sql/sql_server/881.sql +++ b/inst/sql/sql_server/881.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -228,49 +228,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/882.sql b/inst/sql/sql_server/882.sql index fa290fe4..3fb1b346 100644 --- a/inst/sql/sql_server/882.sql +++ b/inst/sql/sql_server/882.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4087317,443262,436246) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4087317,443262,436246)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4087317,443262,436246) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4087317,443262,436246)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/884.sql b/inst/sql/sql_server/884.sql index 0452ba4d..035a8ad0 100644 --- a/inst/sql/sql_server/884.sql +++ b/inst/sql/sql_server/884.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196523,4134607,201773,80141,4207688,4324838,197596,196620) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196523,4134607,201773,80141,4207688,4324838,197596,196620)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196523,4134607,80141,197596,196620) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196523,4134607,80141,197596,196620)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/888.sql b/inst/sql/sql_server/888.sql index 1eb716c8..e5e7dafe 100644 --- a/inst/sql/sql_server/888.sql +++ b/inst/sql/sql_server/888.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4147683,40482685,28779,2002608,198798,4198381,4112183,2108900,2108878,4265600,192671,4027663) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4147683,40482685,28779,2002608,198798,4198381,4112183,2108900,2108878,4265600,192671,4027663)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40482685,28779,2002608,198798,4198381,4112183,2108900,2108878,4265600,192671,4027663) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40482685,28779,2002608,198798,4198381,4112183,2108900,2108878,4265600,192671,4027663)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4138962,4195231,4163865,195584,4222896,4296611,200769,4177387,434400,438795,4204555,24973,23808,4209746,4248429,4101104,443530,197925,4291028) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4138962,4195231,4163865,195584,4222896,4296611,200769,4177387,434400,438795,4204555,24973,23808,4209746,4248429,4101104,443530,197925,4291028)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4138962,4195231,4163865,195584,4222896,4296611,200769,4177387,434400,438795,4204555,24973,23808,4209746,4248429,4101104,443530,197925,4291028) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4138962,4195231,4163865,195584,4222896,4296611,200769,4177387,434400,438795,4204555,24973,23808,4209746,4248429,4101104,443530,197925,4291028)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -228,49 +228,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/889.sql b/inst/sql/sql_server/889.sql index d92badf4..465675c1 100644 --- a/inst/sql/sql_server/889.sql +++ b/inst/sql/sql_server/889.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435515,4232311) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435515,4232311)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435515,4232311) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435515,4232311)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/890.sql b/inst/sql/sql_server/890.sql index 04112f07..73c8f6c8 100644 --- a/inst/sql/sql_server/890.sql +++ b/inst/sql/sql_server/890.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317002) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317002)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317002) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317002)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313232,314432) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313232,314432)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313232,314432) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313232,314432)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/891.sql b/inst/sql/sql_server/891.sql index ddee6c13..0225535d 100644 --- a/inst/sql/sql_server/891.sql +++ b/inst/sql/sql_server/891.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (31967) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (31967)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (31967) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (31967)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (30284) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (30284)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (30284) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (30284)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/892.sql b/inst/sql/sql_server/892.sql index 159a46a9..3add6190 100644 --- a/inst/sql/sql_server/892.sql +++ b/inst/sql/sql_server/892.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372924,375557,376713,443454,441874,439847,432923) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372924,375557,376713,443454,441874,439847,432923)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/893.sql b/inst/sql/sql_server/893.sql index a88d946f..035b4dc3 100644 --- a/inst/sql/sql_server/893.sql +++ b/inst/sql/sql_server/893.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437496,78162,439383,381035) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437496,78162,439383,381035)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437496,78162,439383,381035) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437496,78162,439383,381035)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/894.sql b/inst/sql/sql_server/894.sql index f55462e0..eae47543 100644 --- a/inst/sql/sql_server/894.sql +++ b/inst/sql/sql_server/894.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (200219) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (200219)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (200219) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (200219)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/895.sql b/inst/sql/sql_server/895.sql index 6f4ddf32..178da7a9 100644 --- a/inst/sql/sql_server/895.sql +++ b/inst/sql/sql_server/895.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439141) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439141)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439141) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439141)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/896.sql b/inst/sql/sql_server/896.sql index 17cffb35..11ed1577 100644 --- a/inst/sql/sql_server/896.sql +++ b/inst/sql/sql_server/896.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (435928) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (435928)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (435928) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (435928)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/898.sql b/inst/sql/sql_server/898.sql index b281bf12..78f569c8 100644 --- a/inst/sql/sql_server/898.sql +++ b/inst/sql/sql_server/898.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197320,432961,444044) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197320,432961,444044)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197320,432961,444044) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197320,432961,444044)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/9.sql b/inst/sql/sql_server/9.sql index 8096c9ae..fadbd9dd 100644 --- a/inst/sql/sql_server/9.sql +++ b/inst/sql/sql_server/9.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4036632,4173027,259153,24969,4148121,4226263,4083666,432347,4170621,4049240,4095420,44808497,30333,46270516) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4036632,4173027,259153,24969,4148121,4226263,4083666,432347,4170621,4049240,4095420,44808497,30333,46270516)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4036632,4173027,259153,24969,4148121,4226263,4083666,432347,4170621,4049240,4095420,44808497,30333,46270516) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4036632,4173027,259153,24969,4148121,4226263,4083666,432347,4170621,4049240,4095420,44808497,30333,46270516)) ) I ) C; @@ -125,49 +125,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/900.sql b/inst/sql/sql_server/900.sql index d9aa6af3..0332338a 100644 --- a/inst/sql/sql_server/900.sql +++ b/inst/sql/sql_server/900.sql @@ -7,44 +7,44 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432791) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432791)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432791) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432791)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441202) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441202)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441202) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441202)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4330225,40479646,4299299,4084633,434219,4086737,4084634) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4330225,40479646,4299299,4084633,434219,4086737,4084634)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4330225,40479646,4299299,4084633,434219,4086737,4084634) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4330225,40479646,4299299,4084633,434219,4086737,4084634)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -239,49 +239,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 7, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 7, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,7,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,7,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/901.sql b/inst/sql/sql_server/901.sql index 00fe619a..c281d191 100644 --- a/inst/sql/sql_server/901.sql +++ b/inst/sql/sql_server/901.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439777,137829,25518,24006) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439777,137829,25518,24006)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439777,137829,25518,24006) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439777,137829,25518,24006)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437090,440218,4301602) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437090,440218,4301602)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437090,440218,4301602) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437090,440218,4301602)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/917.sql b/inst/sql/sql_server/917.sql index 6b421125..246e73ce 100644 --- a/inst/sql/sql_server/917.sql +++ b/inst/sql/sql_server/917.sql @@ -7,66 +7,66 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442077,37109206,4199892,434613,4338031,381537,436074) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442077,37109206,4199892,434613,4338031,381537,436074)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (37109206,4199892,434613,4338031,381537,436074) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (37109206,4199892,434613,4338031,381537,436074)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4304010) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4304010)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4304010) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4304010)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21604686) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21604686)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21604686) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21604686)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (781039,733301,990678,797617,19050832,798874,790253,717607,723013,739323,715259,715939,755695,751412,777221,791967,702865,724816,722031,739138,743670) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (781039,733301,990678,797617,19050832,798874,790253,717607,723013,739323,715259,715939,755695,751412,777221,791967,702865,724816,722031,739138,743670)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (781039,733301,990678,797617,19050832,798874,790253,717607,723013,739323,715259,715939,755695,751412,777221,791967,702865,724816,722031,739138,743670) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (781039,733301,990678,797617,19050832,798874,790253,717607,723013,739323,715259,715939,755695,751412,777221,791967,702865,724816,722031,739138,743670)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442306,440383,4175329) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442306,440383,4175329)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442306,440383,4175329) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442306,440383,4175329)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436665) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436665)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436665) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436665)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -306,49 +306,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/918.sql b/inst/sql/sql_server/918.sql index 3df44d98..354a3131 100644 --- a/inst/sql/sql_server/918.sql +++ b/inst/sql/sql_server/918.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4169095,316999,4171683,317302) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4169095,316999,4171683,317302)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4169095,4171683,317302) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4169095,4171683,317302)) ) I ) C; @@ -199,49 +199,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/919.sql b/inst/sql/sql_server/919.sql index 3ef84a62..4da45e2b 100644 --- a/inst/sql/sql_server/919.sql +++ b/inst/sql/sql_server/919.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (44784217,38001137,38001138,315078,444070) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (44784217,38001137,38001138,315078,444070)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (44784217,38001137,38001138,315078,444070) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (44784217,38001137,38001138,315078,444070)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21600248,43013024,40228152,40241331,1310149,1309204,45892847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21600248,43013024,40228152,40241331,1310149,1309204,45892847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21600248,43013024,40228152,40241331,1310149,1309204,45892847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21600248,43013024,40228152,40241331,1310149,1309204,45892847)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45890325,45890400,2107068,4051932) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45890325,45890400,2107068,4051932)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45890325,45890400,2107068,4051932) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45890325,45890400,2107068,4051932)) ) I ) C; @@ -325,49 +325,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/920.sql b/inst/sql/sql_server/920.sql index b1358a86..097525e9 100644 --- a/inst/sql/sql_server/920.sql +++ b/inst/sql/sql_server/920.sql @@ -7,94 +7,94 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4048809,321042,442289,4317150,4132309) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4048809,321042,442289,4317150,4132309)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4048809,321042,442289,4317150,4132309) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4048809,321042,442289,4317150,4132309)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437894) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437894)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437894) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437894)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372924,375557,443454,441874) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372924,375557,443454,441874)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376713,439847,432923) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376713,439847,432923)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316139) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316139)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316139)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315295)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -457,49 +457,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/921.sql b/inst/sql/sql_server/921.sql index b473ac5f..31307dc6 100644 --- a/inst/sql/sql_server/921.sql +++ b/inst/sql/sql_server/921.sql @@ -7,95 +7,95 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376713,439847,432923) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376713,439847,432923)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4048809,321042,442289,4317150,4132309) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4048809,321042,442289,4317150,4132309)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4048809,321042,442289,4317150,4132309) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4048809,321042,442289,4317150,4132309)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437894) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437894)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437894) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437894)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316139) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316139)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316139)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315295)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372924,375557,443454,441874) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372924,375557,443454,441874)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I ) C; @@ -570,49 +570,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/922.sql b/inst/sql/sql_server/922.sql index d1376c7a..10c6657e 100644 --- a/inst/sql/sql_server/922.sql +++ b/inst/sql/sql_server/922.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (321318,77670) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (321318,77670)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (321318) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (321318)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/923.sql b/inst/sql/sql_server/923.sql index 03244d67..1110246f 100644 --- a/inst/sql/sql_server/923.sql +++ b/inst/sql/sql_server/923.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (444044,194385,195834,46271022,193016,192279,4263367,261071,201313,4103224,193253,195314,192359,4128219) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (444044,194385,195834,46271022,193016,192279,4263367,261071,201313,4103224,193253,195314,192359,4128219)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (444044,194385,195834,46271022,193016,192279,4263367,261071,201313,4103224,195314,192359,4128219) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (444044,194385,195834,46271022,193016,192279,4263367,261071,201313,4103224,195314,192359,4128219)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4090651,4032243,45889365) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4090651,4032243,45889365)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4090651,4032243,45889365) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4090651,4032243,45889365)) ) I ) C; @@ -325,49 +325,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/924.sql b/inst/sql/sql_server/924.sql index 280f7d36..ca0b53ac 100644 --- a/inst/sql/sql_server/924.sql +++ b/inst/sql/sql_server/924.sql @@ -7,55 +7,55 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4048809,321042,442289,4317150,4132309) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4048809,321042,442289,4317150,4132309)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4048809,321042,442289,4317150,4132309) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4048809,321042,442289,4317150,4132309)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437894) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437894)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437894) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437894)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -292,49 +292,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/925.sql b/inst/sql/sql_server/925.sql index 7f854f77..f7d6457a 100644 --- a/inst/sql/sql_server/925.sql +++ b/inst/sql/sql_server/925.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (254761) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (254761)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (254761) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (254761)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/927.sql b/inst/sql/sql_server/927.sql index 209a8aa3..7780feb8 100644 --- a/inst/sql/sql_server/927.sql +++ b/inst/sql/sql_server/927.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4182210) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4182210)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4182210) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4182210)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (377788,372610,37116464,4244346,37017247,37017549) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (377788,372610,37116464,4244346,37017247,37017549)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (377788,372610,37116464,4244346,37017247,37017549) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (377788,372610,37116464,4244346,37017247,37017549)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -115,49 +115,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/928.sql b/inst/sql/sql_server/928.sql index 6ae09629..e0d6a062 100644 --- a/inst/sql/sql_server/928.sql +++ b/inst/sql/sql_server/928.sql @@ -7,56 +7,56 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (442306,440383,4175329) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (442306,440383,4175329)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (442306,440383,4175329) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (442306,440383,4175329)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436665) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436665)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436665) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436665)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21604686) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21604686)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21604686) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21604686)) ) I ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (438407,4311708,434613,436962,440374,436074,436676,4242733,440690) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (438407,4311708,434613,436962,440374,436074,436676,4242733,440690)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (438407,4311708,434613,436962,440374,436074,436676,4242733,440690) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (438407,4311708,434613,436962,440374,436074,436676,4242733,440690)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4030840,2795842,2795675,4327941,45887951) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4030840,2795842,2795675,4327941,45887951)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4030840,2795842,2795675,4327941,45887951) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4030840,2795842,2795675,4327941,45887951)) ) I ) C; @@ -438,49 +438,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/929.sql b/inst/sql/sql_server/929.sql index eaba13ad..0649041f 100644 --- a/inst/sql/sql_server/929.sql +++ b/inst/sql/sql_server/929.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (433595,4155910,4171917,133299) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (433595,4155910,4171917,133299)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4155910,4171917,133299) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4155910,4171917,133299)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/930.sql b/inst/sql/sql_server/930.sql index ee61a6f7..f23126aa 100644 --- a/inst/sql/sql_server/930.sql +++ b/inst/sql/sql_server/930.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443611,193782) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443611,193782)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443611,193782) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443611,193782)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4090651,4032243,45889365) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4090651,4032243,45889365)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4090651,4032243,45889365) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4090651,4032243,45889365)) ) I ) C; @@ -314,49 +314,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/931.sql b/inst/sql/sql_server/931.sql index dd20af0c..19d0aa24 100644 --- a/inst/sql/sql_server/931.sql +++ b/inst/sql/sql_server/931.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (436583) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (436583)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (436583) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (436583)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/932.sql b/inst/sql/sql_server/932.sql index 0cc2778e..61e2f5ce 100644 --- a/inst/sql/sql_server/932.sql +++ b/inst/sql/sql_server/932.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (440674,4096347,4128219,80070) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (440674,4096347,4128219,80070)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (440674,4096347,4128219,80070) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (440674,4096347,4128219,80070)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/933.sql b/inst/sql/sql_server/933.sql index 2472779f..31fec66c 100644 --- a/inst/sql/sql_server/933.sql +++ b/inst/sql/sql_server/933.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (378253,375527) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (378253,375527)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (378253,375527) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (378253,375527)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/934.sql b/inst/sql/sql_server/934.sql index f362f892..9dee27d0 100644 --- a/inst/sql/sql_server/934.sql +++ b/inst/sql/sql_server/934.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316139) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316139)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316139)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315295)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/935.sql b/inst/sql/sql_server/935.sql index 14aedf0e..dc78b9d9 100644 --- a/inst/sql/sql_server/935.sql +++ b/inst/sql/sql_server/935.sql @@ -7,18 +7,18 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376713,439847,432923) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376713,439847,432923)) ) I ) C; @@ -212,49 +212,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/936.sql b/inst/sql/sql_server/936.sql index e9e64c8c..8676d26b 100644 --- a/inst/sql/sql_server/936.sql +++ b/inst/sql/sql_server/936.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (377604,4029488,4245975,4337543) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (377604,4029488,4245975,4337543)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4245975,4337543) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4245975,4337543)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/938.sql b/inst/sql/sql_server/938.sql index c3f89c01..f4f90768 100644 --- a/inst/sql/sql_server/938.sql +++ b/inst/sql/sql_server/938.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316139) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316139)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316139)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315295)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -206,49 +206,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 7, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 7, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,7,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,7,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/939.sql b/inst/sql/sql_server/939.sql index e70a744e..a4c76039 100644 --- a/inst/sql/sql_server/939.sql +++ b/inst/sql/sql_server/939.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315296) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315296)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315296) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315296)) ) I ) C; @@ -195,49 +195,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 7, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 7, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,7,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,7,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/940.sql b/inst/sql/sql_server/940.sql index b6443f70..91c616f8 100644 --- a/inst/sql/sql_server/940.sql +++ b/inst/sql/sql_server/940.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (434610) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (434610)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (434610) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (434610)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40789893,4245152,4276440) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40789893,4245152,4276440)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40789893,4245152,4276440) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40789893,4245152,4276440)) ) I ) C; @@ -137,49 +137,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/941.sql b/inst/sql/sql_server/941.sql index f251d5ed..5ccb0318 100644 --- a/inst/sql/sql_server/941.sql +++ b/inst/sql/sql_server/941.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437833) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437833)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437833) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437833)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45769152) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45769152)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45769152) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45769152)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/942.sql b/inst/sql/sql_server/942.sql index 23763e0a..22c8fda6 100644 --- a/inst/sql/sql_server/942.sql +++ b/inst/sql/sql_server/942.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (438725,4098604) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (438725,4098604)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (438725,4098604) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (438725,4098604)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/943.sql b/inst/sql/sql_server/943.sql index fa441bd3..899f7c2b 100644 --- a/inst/sql/sql_server/943.sql +++ b/inst/sql/sql_server/943.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4250163) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4250163)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4250163) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4250163)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/944.sql b/inst/sql/sql_server/944.sql index c8201aba..50add05d 100644 --- a/inst/sql/sql_server/944.sql +++ b/inst/sql/sql_server/944.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372924,375557,443454,441874) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372924,375557,443454,441874)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/945.sql b/inst/sql/sql_server/945.sql index 035b60ce..be2e4db5 100644 --- a/inst/sql/sql_server/945.sql +++ b/inst/sql/sql_server/945.sql @@ -7,396 +7,396 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443392) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443392)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443392) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443392)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112853) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112853)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112853) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112853)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432851) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432851)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432851) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432851)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4163261,200962) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4163261,200962)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4163261,200962) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4163261,200962)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443388,4311499) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443388,4311499)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443388) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443388)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437233) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437233)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437233) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437233)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180790,443390) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180790,443390)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180790,443390) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180790,443390)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197508,196360) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197508,196360)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197508,196360) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197508,196360)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432571) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432571)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432571) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432571)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4082311,4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4082311,4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4082311,4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4082311,4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 8 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4181351) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4181351)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4181351) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4181351)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4181483,4178976) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4181483,4178976)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4181483,4178976) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4181483,4178976)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196653,198985) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196653,198985)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196653,198985) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196653,198985)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317510) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317510)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317510) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317510)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443588) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443588)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443588) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443588)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 13 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4180793) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4180793)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4180793) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4180793)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 14 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4246127) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4246127)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4246127) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4246127)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 15 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197230) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197230)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197230) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197230)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 16 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4162276) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4162276)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4162276) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4162276)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112752,432851,4111921) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112752,432851,4111921)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112752,432851,4111921) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112752,432851,4111921)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 17 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (138994) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (138994)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (138994) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (138994)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432851) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432851)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432851) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432851)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -1416,49 +1416,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/946.sql b/inst/sql/sql_server/946.sql index 12fda1e8..8eee7b76 100644 --- a/inst/sql/sql_server/946.sql +++ b/inst/sql/sql_server/946.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40796376) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40796376)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40796376) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40796376)) ) I ) C; @@ -112,49 +112,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/947.sql b/inst/sql/sql_server/947.sql index c21095fd..0f6b9f1a 100644 --- a/inst/sql/sql_server/947.sql +++ b/inst/sql/sql_server/947.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4150156,440689,4322386,4174297,4211401,432289,320073,4119158,4190716,4135712) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4150156,440689,4322386,4174297,4211401,432289,320073,4119158,4190716,4135712)) ) I ) C; @@ -99,49 +99,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/948.sql b/inst/sql/sql_server/948.sql index e11abbe4..ca745300 100644 --- a/inst/sql/sql_server/948.sql +++ b/inst/sql/sql_server/948.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140214,139900) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140214,139900)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140214,139900) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140214,139900)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/95.sql b/inst/sql/sql_server/95.sql index d42fd2dd..ba3ca407 100644 --- a/inst/sql/sql_server/95.sql +++ b/inst/sql/sql_server/95.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (373995,376946,376094,4088373,381832,4199769,4262566) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (373995,376946,376094,4088373,381832,4199769,4262566)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (373995,376946,4088373,381832,4199769,4262566) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (373995,376946,4088373,381832,4199769,4262566)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/950.sql b/inst/sql/sql_server/950.sql index 4b2502db..ae81a413 100644 --- a/inst/sql/sql_server/950.sql +++ b/inst/sql/sql_server/950.sql @@ -7,45 +7,45 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 10 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (439142,4345578) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (439142,4345578)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439142,4345578) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439142,4345578)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (137967,439142,4345578) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (137967,439142,4345578)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (439142,4345578) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (439142,4345578)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40782593,4265595) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40782593,4265595)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40782593,4265595) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40782593,4265595)) ) I ) C; @@ -503,49 +503,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/953.sql b/inst/sql/sql_server/953.sql index 29c320c1..b23887de 100644 --- a/inst/sql/sql_server/953.sql +++ b/inst/sql/sql_server/953.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4048809,321042,442289,4317150,4132309) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4048809,321042,442289,4317150,4132309)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4048809,321042,442289,4317150,4132309) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4048809,321042,442289,4317150,4132309)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437894) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437894)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437894) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437894)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -228,49 +228,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/954.sql b/inst/sql/sql_server/954.sql index 0acd18b2..79d20338 100644 --- a/inst/sql/sql_server/954.sql +++ b/inst/sql/sql_server/954.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (135360,38001140) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (135360,38001140)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (135360) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (135360)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (140586) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (140586)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (140586) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (140586)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/955.sql b/inst/sql/sql_server/955.sql index 87adec5c..de9a5749 100644 --- a/inst/sql/sql_server/955.sql +++ b/inst/sql/sql_server/955.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (432870) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (432870)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (432870) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (432870)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/956.sql b/inst/sql/sql_server/956.sql index b46d097b..fb6b3ff3 100644 --- a/inst/sql/sql_server/956.sql +++ b/inst/sql/sql_server/956.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (373503) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (373503)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (373503) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (373503)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/957.sql b/inst/sql/sql_server/957.sql index e6d97804..632ffa20 100644 --- a/inst/sql/sql_server/957.sql +++ b/inst/sql/sql_server/957.sql @@ -7,40 +7,40 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443735,443767,192279,443732,376065,443729,201826) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443735,443767,192279,443732,376065,443729,201826)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443735,443767,192279,443732,376065,443729,201826) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443735,443767,192279,443732,376065,443729,201826)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4225656,4227210,435216,37016355,4228112,4224254,200687,201254,201531,4295011) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4225656,4227210,435216,37016355,4228112,4224254,200687,201254,201531,4295011)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4225656,4227210,435216,37016355,4228112,4224254,200687,201254,201531,4295011) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4225656,4227210,435216,37016355,4228112,4224254,200687,201254,201531,4295011)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (21600744) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (21600744)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (21600744) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (21600744)) ) I ) C UNION ALL SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4197971,44786901,3004410,3034639,40758583,3007263,3003309,3005673,40762352,2212392) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4197971,44786901,3004410,3034639,40758583,3007263,3003309,3005673,40762352,2212392)) ) I ) C; @@ -332,49 +332,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/963.sql b/inst/sql/sql_server/963.sql index 4f0dc323..5717536f 100644 --- a/inst/sql/sql_server/963.sql +++ b/inst/sql/sql_server/963.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 6 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (441408) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (441408)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (441408) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (441408)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (40480291,4216862,440785) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (40480291,4216862,440785)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (40480291,4216862,440785) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (40480291,4216862,440785)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/964.sql b/inst/sql/sql_server/964.sql index 42a20b44..bcebd158 100644 --- a/inst/sql/sql_server/964.sql +++ b/inst/sql/sql_server/964.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (194385,46271022,192279,4263367,261071,201313,4103224,193253,195314,192359) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (194385,46271022,192279,4263367,261071,201313,4103224,193253,195314,192359)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (194385,46271022,192279,4263367,261071,201313,4103224,195314,192359) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (194385,46271022,192279,4263367,261071,201313,4103224,195314,192359)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930,197320) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930,197320)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930,197320) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (45769152,195289,195737,43530912,4066005,37116834,195014,197930,197320)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4090651,4032243,45889365) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4090651,4032243,45889365)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4090651,4032243,45889365) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4090651,4032243,45889365)) ) I ) C; @@ -325,49 +325,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/965.sql b/inst/sql/sql_server/965.sql index 6b99ed56..eb35ebfa 100644 --- a/inst/sql/sql_server/965.sql +++ b/inst/sql/sql_server/965.sql @@ -7,94 +7,94 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4048809,321042,442289,4317150,4132309) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4048809,321042,442289,4317150,4132309)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4048809,321042,442289,4317150,4132309) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4048809,321042,442289,4317150,4132309)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437894) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437894)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437894) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437894)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372924,375557,443454,441874) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372924,375557,443454,441874)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376713,439847,432923,43530727,4148906) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376713,439847,432923,43530727,4148906)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316139) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316139)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316139)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315295)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -415,49 +415,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/967.sql b/inst/sql/sql_server/967.sql index 9459ddba..9939d950 100644 --- a/inst/sql/sql_server/967.sql +++ b/inst/sql/sql_server/967.sql @@ -7,94 +7,94 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4329847) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4329847)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4329847) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4329847)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (314666) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (314666)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (314666) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (314666)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 4 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4048809,321042,442289,4317150,4132309) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4048809,321042,442289,4317150,4132309)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4048809,321042,442289,4317150,4132309) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4048809,321042,442289,4317150,4132309)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (437894) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (437894)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (437894) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (437894)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null ) C UNION ALL SELECT 5 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372924,375557,443454,441874) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372924,375557,443454,441874)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I ) C UNION ALL SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (376713,439847,432923,43530727,4148906) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (376713,439847,432923,43530727,4148906)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316139) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316139)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316139)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315295)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -457,49 +457,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/976.sql b/inst/sql/sql_server/976.sql index 044592d4..7643faeb 100644 --- a/inst/sql/sql_server/976.sql +++ b/inst/sql/sql_server/976.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (3004410,3007263,3003309,3005673,40762352,40758583,3034639) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (3004410,3007263,3003309,3005673,40762352,40758583,3034639)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (3004410,3007263,3003309,3005673,40762352,40758583,3034639) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (3004410,3007263,3003309,3005673,40762352,40758583,3034639)) ) I ) C; @@ -127,49 +127,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/979.sql b/inst/sql/sql_server/979.sql index c3f89c01..f4f90768 100644 --- a/inst/sql/sql_server/979.sql +++ b/inst/sql/sql_server/979.sql @@ -7,33 +7,33 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (316139) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (316139)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (316139) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (316139)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (315295) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (315295)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (315295) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (315295)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -206,49 +206,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 7, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 7, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,7,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,7,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/980.sql b/inst/sql/sql_server/980.sql index a9a64642..121520be 100644 --- a/inst/sql/sql_server/980.sql +++ b/inst/sql/sql_server/980.sql @@ -7,34 +7,34 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4006788,4264285,4265293,4225903,4283892,4337738,4139198,44511532,45770795,44789455,44784573,44512256,44511273,44511272,44511271,44511269,44511268,44511133,44511131,44511130,43533353,43533352,43533248,43533247,43531440,43531439,43531438,4329263,4328103,4264286,4238755,4216356,4214516,4181025,4178148,4175997,4171077,4020653,2001506,2001505,2000064,2001500,2001504,2001501) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4006788,4264285,4265293,4225903,4283892,4337738,4139198,44511532,45770795,44789455,44784573,44512256,44511273,44511272,44511271,44511269,44511268,44511133,44511131,44511130,43533353,43533352,43533248,43533247,43531440,43531439,43531438,4329263,4328103,4264286,4238755,4216356,4214516,4181025,4178148,4175997,4171077,4020653,2001506,2001505,2000064,2001500,2001504,2001501)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4006788,4264285,4265293,4225903,4283892,4337738,4139198,44511532,45770795,44784573,44512256,44511273,44511271,44511269,44511268,44511131,44511130,43533353,43533248,43531440,4329263,4181025,4178148,4175997,4020653,2000064,2001500,2001501) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4006788,4264285,4265293,4225903,4283892,4337738,4139198,44511532,45770795,44784573,44512256,44511273,44511271,44511269,44511268,44511131,44511130,43533353,43533248,43531440,4329263,4181025,4178148,4175997,4020653,2000064,2001500,2001501)) ) I ) C UNION ALL SELECT 11 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 12 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2001516,4284104,4229433,4146972,4228305,4228304,4063237,4148030,4008625,4106548,4031996,4234990,45889469,4240486,4336464,4337056,4000733,4336467,4336465,4339629,4337737,4336466,4233421,4305509,4309432,4011931,4253805,45887879,2107242,2107243,2107244,2107231,45889898,2107223,2107224,2107226,2107227,2107228,2107222,45887862,2107217,2107218,2107219,2107220,2107221,2107216,2001515,4000732,2001514,4233420,45889467,4020216,4305852) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2001516,4284104,4229433,4146972,4228305,4228304,4063237,4148030,4008625,4106548,4031996,4234990,45889469,4240486,4336464,4337056,4000733,4336467,4336465,4339629,4337737,4336466,4233421,4305509,4309432,4011931,4253805,45887879,2107242,2107243,2107244,2107231,45889898,2107223,2107224,2107226,2107227,2107228,2107222,45887862,2107217,2107218,2107219,2107220,2107221,2107216,2001515,4000732,2001514,4233420,45889467,4020216,4305852)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2001516,4284104,4229433,4146972,4228305,4228304,4063237,4148030,4008625,4106548,4031996,4234990,45889469,4240486,4336464,4337056,4000733,4336467,4336465,4339629,4337737,4336466,4233421,4305509,4309432,4011931,4253805,45887879,2107242,2107243,2107244,2107231,45889898,2107223,2107224,2107226,2107227,2107228,2107222,45887862,2107217,2107218,2107219,2107220,2107221,2107216,2001515,4000732,2001514,4233420,45889467) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2001516,4284104,4229433,4146972,4228305,4228304,4063237,4148030,4008625,4106548,4031996,4234990,45889469,4240486,4336464,4337056,4000733,4336467,4336465,4339629,4337737,4336466,4233421,4305509,4309432,4011931,4253805,45887879,2107242,2107243,2107244,2107231,45889898,2107223,2107224,2107226,2107227,2107228,2107222,45887862,2107217,2107218,2107219,2107220,2107221,2107216,2001515,4000732,2001514,4233420,45889467)) ) I ) C; @@ -197,49 +197,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/982.sql b/inst/sql/sql_server/982.sql index 784441f9..fda33145 100644 --- a/inst/sql/sql_server/982.sql +++ b/inst/sql/sql_server/982.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (372924,375557,376713,443454,441874,439847,432923,43530727,4148906) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (372924,375557,376713,443454,441874,439847,432923,43530727,4148906)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443454) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443454)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/986.sql b/inst/sql/sql_server/986.sql index c8c12725..f57eaa64 100644 --- a/inst/sql/sql_server/986.sql +++ b/inst/sql/sql_server/986.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 9 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (199074,2109394,2109400,2109395,42737025) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (199074,2109394,2109400,2109395,42737025)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (199074) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (199074)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/989.sql b/inst/sql/sql_server/989.sql index 50db1c0e..da77631d 100644 --- a/inst/sql/sql_server/989.sql +++ b/inst/sql/sql_server/989.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (197508) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (197508)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (197508) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (197508)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/990.sql b/inst/sql/sql_server/990.sql index 0a86cbc4..e57189a1 100644 --- a/inst/sql/sql_server/990.sql +++ b/inst/sql/sql_server/990.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (75053,4071354) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (75053,4071354)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (75053,4071354) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (75053,4071354)) ) I ) C; @@ -125,49 +125,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/991.sql b/inst/sql/sql_server/991.sql index 40fe5520..a0a28a43 100644 --- a/inst/sql/sql_server/991.sql +++ b/inst/sql/sql_server/991.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4112853) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4112853)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4112853) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4112853)) ) I ) C; @@ -104,49 +104,21 @@ select event_id, person_id, op_end_date as end_date from #included_events WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/992.sql b/inst/sql/sql_server/992.sql index f634cc1b..558bd293 100644 --- a/inst/sql/sql_server/992.sql +++ b/inst/sql/sql_server/992.sql @@ -7,23 +7,23 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (262,9203,9201) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (262,9203,9201)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (262,9203,9201) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (262,9203,9201)) ) I ) C UNION ALL SELECT 3 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (443727) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (443727)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (443727) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (443727)) ) I ) C; @@ -217,49 +217,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 180, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 180, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,180,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,180,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/993.sql b/inst/sql/sql_server/993.sql index 0452ba4d..035a8ad0 100644 --- a/inst/sql/sql_server/993.sql +++ b/inst/sql/sql_server/993.sql @@ -7,12 +7,12 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 7 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (196523,4134607,201773,80141,4207688,4324838,197596,196620) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (196523,4134607,201773,80141,4207688,4324838,197596,196620)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (196523,4134607,80141,197596,196620) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (196523,4134607,80141,197596,196620)) ) I ) C; @@ -111,49 +111,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/994.sql b/inst/sql/sql_server/994.sql index aa2676a3..bb969d16 100644 --- a/inst/sql/sql_server/994.sql +++ b/inst/sql/sql_server/994.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (81902,4167328,77340,4265485,4126297,195588) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (81902,4167328,77340,4265485,4126297,195588)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (81902,4167328,77340,4265485,4126297,195588) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (81902,4167328,77340,4265485,4126297,195588)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (198806,4126267,194997,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,4128384,78357,195313,197919,439349,4227291,4060312,4127564,4126141,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (198806,4126267,4077499,442345,4062493,45757237,36714969,195743,201353,4047937,201792,78357,195313,197919,4127564,4127565,4207186,4207190,434557,432251,36102152,433417,36102938)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/996.sql b/inst/sql/sql_server/996.sql index cd0b5d3a..53fed2ab 100644 --- a/inst/sql/sql_server/996.sql +++ b/inst/sql/sql_server/996.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (380688,4226798,36714116,24609,4029423,45757363,4096804) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (380688,4226798,36714116,24609,4029423,45757363,4096804)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (380688,4226798,36714116,24609,4029423,45757363,4096804) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (380688,4226798,36714116,24609,4029423,45757363,4096804)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4048805,4228112,23034,4029424,45769876) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4048805,4228112,23034,4029424,45769876)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4048805,4228112,23034,4029424,45769876) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4048805,4228112,23034,4029424,45769876)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 30, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 30, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,30,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,30,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/997.sql b/inst/sql/sql_server/997.sql index 04112f07..73c8f6c8 100644 --- a/inst/sql/sql_server/997.sql +++ b/inst/sql/sql_server/997.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317002) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (317002)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (317002) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (317002)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (313232,314432) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (313232,314432)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (313232,314432) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (313232,314432)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -122,49 +122,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/998.sql b/inst/sql/sql_server/998.sql index 1d68f576..e2f66046 100644 --- a/inst/sql/sql_server/998.sql +++ b/inst/sql/sql_server/998.sql @@ -7,7 +7,7 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (77074) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (77074)) ) I ) C; @@ -106,49 +106,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 90, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 90, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,90,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,90,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) diff --git a/inst/sql/sql_server/999.sql b/inst/sql/sql_server/999.sql index 2d7fc497..02e7b0b7 100644 --- a/inst/sql/sql_server/999.sql +++ b/inst/sql/sql_server/999.sql @@ -7,22 +7,22 @@ CREATE TABLE #Codesets ( INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (4264289,2006242,2105446,2105804,2105805,2105806,2105807,2105808,2105451,2105447,4338257,2105448,4108565,2006229,4159766,4054983,2006230,4143797,2105450,2006231,2006244,4018719,2006243,4219032) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (4264289,2006242,2105446,2105804,2105805,2105806,2105807,2105808,2105451,2105447,4338257,2105448,4108565,2006229,4159766,4054983,2006230,4143797,2105450,2006231,2006244,4018719,2006243,4219032)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (4264289,2006242,2105446,2105804,2105805,2105806,2105807,2105808,2105451,2105447,4338257,2105448,4108565,2006229,4159766,4054983,2006230,4143797,2105450,2006231,2006244,4018719,2006243,4219032) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (4264289,2006242,2105446,2105804,2105805,2105806,2105807,2105808,2105451,2105447,4338257,2105448,4108565,2006229,4159766,4054983,2006230,4143797,2105450,2006231,2006244,4018719,2006243,4219032)) ) I LEFT JOIN ( - select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (2105449) + select concept_id from @vocabulary_database_schema.CONCEPT where (concept_id in (2105449)) UNION select c.concept_id from @vocabulary_database_schema.CONCEPT c join @vocabulary_database_schema.CONCEPT_ANCESTOR ca on c.concept_id = ca.descendant_concept_id - and ca.ancestor_concept_id in (2105449) - and c.invalid_reason is null + WHERE c.invalid_reason is null + and (ca.ancestor_concept_id in (2105449)) ) E ON I.concept_id = E.concept_id WHERE E.concept_id is null @@ -247,49 +247,21 @@ SELECT event_id, person_id, end_date from #strategy_ends WHERE F.ordinal = 1 ) FE; -select person_id, min(start_date) as start_date, end_date + +select person_id, min(start_date) as start_date, DATEADD(day,-1 * 0, max(end_date)) as end_date into #final_cohort -from ( --cteEnds - SELECT - c.person_id - , c.start_date - , MIN(ed.end_date) AS end_date - FROM #cohort_rows c - JOIN ( -- cteEndDates - SELECT - person_id - , DATEADD(day,-1 * 0, event_date) as end_date - FROM - ( - SELECT - person_id - , event_date - , event_type - , SUM(event_type) OVER (PARTITION BY person_id ORDER BY event_date, event_type ROWS UNBOUNDED PRECEDING) AS interval_status - FROM - ( - SELECT - person_id - , start_date AS event_date - , -1 AS event_type - FROM #cohort_rows - - UNION ALL - - - SELECT - person_id - , DATEADD(day,0,end_date) as end_date - , 1 AS event_type - FROM #cohort_rows - ) RAWDATA - ) e - WHERE interval_status = 0 - ) ed ON c.person_id = ed.person_id AND ed.end_date >= c.start_date - GROUP BY c.person_id, c.start_date -) e -group by person_id, end_date -; +from ( + select person_id, start_date, end_date, sum(is_start) over (partition by person_id order by start_date, is_start desc rows unbounded preceding) group_idx + from ( + select person_id, start_date, end_date, + case when max(end_date) over (partition by person_id order by start_date rows between unbounded preceding and 1 preceding) >= start_date then 0 else 1 end is_start + from ( + select person_id, start_date, DATEADD(day,0,end_date) as end_date + from #cohort_rows + ) CR + ) ST +) GR +group by person_id, group_idx; DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) From 8700e0e4e04a9c9daf36c19ddd5be02440e05216 Mon Sep 17 00:00:00 2001 From: Gowtham Rao Date: Fri, 27 Sep 2024 09:52:35 -0400 Subject: [PATCH 6/8] f --- extras/UpdatePhenotypes.R | 12 +- inst/Cohorts.csv | 16065 ++--------------------- inst/ConceptSetsInCohortDefinition.RDS | Bin 829555 -> 835529 bytes 3 files changed, 1007 insertions(+), 15070 deletions(-) diff --git a/extras/UpdatePhenotypes.R b/extras/UpdatePhenotypes.R index ed9e8e2f..512aa932 100644 --- a/extras/UpdatePhenotypes.R +++ b/extras/UpdatePhenotypes.R @@ -1,4 +1,4 @@ -# Import phenotypes from ATLAS ------------------------------------------------- + # Import phenotypes from ATLAS ------------------------------------------------- oldCohortDefinitions <- PhenotypeLibrary::getPhenotypeLog(showHidden = TRUE) oldCohortDefinitionSet <- PhenotypeLibrary::getPlCohortDefinitionSet(cohortIds = oldCohortDefinitions$cohortId) @@ -353,9 +353,9 @@ cohortRecord <- readRDS("cohortRecord.rds") cohortRecordAugmented <- c() for (i in (1:nrow(cohortRecord))) { - print(i) + print(paste0(i, "/", nrow(cohortRecord))) cohortRecordUnit <- cohortRecord[i, ] - + if (!file.exists(file.path( "inst", "cohorts", @@ -363,16 +363,16 @@ for (i in (1:nrow(cohortRecord))) { ))) { stop("cant find file") } - + cohortJson <- SqlRender::readSql(sourceFile = file.path( "inst", "cohorts", paste0(cohortRecordUnit$cohortId, ".json") )) -debug(CohortDefinitionReviewer::parseCohortDefinitionSpecifications) + parsed <- CohortDefinitionReviewer::parseCohortDefinitionSpecifications(cohortDefinition = cohortJson |> - RJSONIO::fromJSON(digits = 23)) + RJSONIO::fromJSON(digits = 23)) if (nrow(parsed) > 0) { cohortRecordAugmented[[i]] <- cohortRecordUnit |> tidyr::crossing(parsed) diff --git a/inst/Cohorts.csv b/inst/Cohorts.csv index 79015c8c..76110295 100644 --- a/inst/Cohorts.csv +++ b/inst/Cohorts.csv @@ -1,15064 +1,1001 @@ -"cohortId","cohortName","atlasId","description","createdDate","modifiedDate","librarian","cohortNameFormatted","lastModifiedBy","cohortNameLong","status","addedVersion","logicDescription","hashTag","contributors","contributorOrcIds","contributorOrganizations","peerReviewers","peerReviewerOrcIds","recommendedReferentConceptIds","ohdsiForumPost","replaces","notes","cohortNameAtlas","recommendedEraPersistenceDurations","recommendedEraCollapseDurations","recommendSubsetOperators","id","name" -2,"[W] COVID-19 diagnosis or SARS-CoV-2 test (1pos)",2,"cohortNameLong : COVID-19 diagnosis or SARS-CoV-2 test (1pos); -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2021-09-22","2023-09-19","rao@ohdsi.org","COVID-19 diagnosis or SARS-CoV-2 test (1pos)",,"COVID-19 diagnosis or SARS-CoV-2 test (1pos)","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","439676, 37311061","","",,,,,,2,2 -3,"[P] Cough or Sputum",3,"cohortNameLong : Cough or Sputum; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of cough or sputum finding; -hashTag : #Symptoms, #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 254761; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-22","2023-09-28","rao@ohdsi.org","Cough or Sputum",,"Cough or Sputum","Pending peer review","","All events of cough or sputum finding","#Symptoms, #respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254761","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,3,3 -4,"[P] Diarrhea",4,"cohortNameLong : Diarrhea; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of diarrhea including Functional Diarrhea; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 196523; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Diarrhea",,"Diarrhea","Pending peer review","","All events of diarrhea including Functional Diarrhea","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196523","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,4,4 -5,"[P] Dyspnea",5,"cohortNameLong : Dyspnea; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of dyspnea including difficulty breathing or abnormal breathing; -hashTag : #Symptoms, #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 312437, 4041664; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-28","rao@ohdsi.org","Dyspnea",,"Dyspnea","Pending peer review","","All events of dyspnea including difficulty breathing or abnormal breathing","#Symptoms, #respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312437, 4041664","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,5,5 -6,"[P] Fever",6,"cohortNameLong : Fever; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of fever or elevated temperature measurement; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 437663, 4178904; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Fever",,"Fever","Pending peer review","","All events of fever or elevated temperature measurement","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437663, 4178904","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,6,6 -7,"[P] Headache or Headache disorder",7,"cohortNameLong : Headache or Headache disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Headache or headache disorder; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 378253; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Headache or Headache disorder",,"Headache or Headache disorder","Pending peer review","","All events of Headache or headache disorder","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378253","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,7,7 -8,"[P] Altered smell or taste including Anosmia, Hyposmia or Dysgeusia",8,"cohortNameLong : Altered smell or taste including Anosmia, Hyposmia or Dysgeusia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Altered smell or taste including Anosmia, Hyposmia or Dysgeusia; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 43530714; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Altered smell or taste including Anosmia, Hyposmia or Dysgeusia",,"Altered smell or taste including Anosmia, Hyposmia or Dysgeusia","Pending peer review","","Altered smell or taste including Anosmia, Hyposmia or Dysgeusia","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","43530714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,8,8 -9,"[P] Sore throat",9,"cohortNameLong : Sore throat; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Sore throat; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 25297, 4226263; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Sore throat",,"Sore throat","Pending peer review","","All events of Sore throat","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","25297, 4226263","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,9,9 -10,"[P] Nausea or Vomiting",10,"cohortNameLong : Nausea or Vomiting; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Nausea or vomiting; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 27674, 4101344; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Nausea or Vomiting",,"Nausea or Vomiting","Pending peer review","","All events of Nausea or vomiting","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27674, 4101344","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,10,10 -11,"[P] Malaise and or fatigue",11,"cohortNameLong : Malaise and or fatigue; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Malaise and or fatigue; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439926, 4272240; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Malaise and or fatigue",,"Malaise and or fatigue","Pending peer review","","All events of Malaise and or fatigue","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439926, 4272240","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,11,11 -12,"[P] Rhinitis or common cold or Sinusitis",12,"cohortNameLong : Rhinitis or common cold or Sinusitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Rhinitis or common cold; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257007, 4320791; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Rhinitis or common cold or Sinusitis",,"Rhinitis or common cold or Sinusitis","Pending peer review","","All events of Rhinitis or common cold","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 4320791","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,12,12 -13,"[P] Myalgia (not explained by injury, ischemia or systemic inflammation)",13,"cohortNameLong : Myalgia (not explained by injury, ischemia or systemic inflammation); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Myalgia. Exclude persons with secondary causes of myalgia explained by injury, ischemia or chronic systemic inflammation; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 442752, 4150129; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Myalgia (not explained by injury, ischemia or systemic inflammation)",,"Myalgia (not explained by injury, ischemia or systemic inflammation)","Pending peer review","","All events of Myalgia. Exclude persons with secondary causes of myalgia explained by injury, ischemia or chronic systemic inflammation","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442752, 4150129","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,13,13 -14,"[P] Myalgia",14,"cohortNameLong : Myalgia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Myalgia; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 442752, 4150129; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Myalgia",,"Myalgia","Pending peer review","","All events of Myalgia","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442752, 4150129","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,14,14 -15,"[P][R] Exposure to viral disease ",15,"cohortNameLong : Exposure to viral disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Exposure to viral disease. Persons exit on cohort end date; -hashTag : #Referent, #Observation; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 37016200; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Exposure to viral disease",,"Exposure to viral disease","Pending peer review","","all events of Exposure to viral disease. Persons exit on cohort end date","#Referent, #Observation","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37016200","","",,,,,,15,15 -16,"[W] Exposure to SARS-Cov 2 and coronavirus",16,"cohortNameLong : Exposure to SARS-Cov 2 and coronavirus; -librarian : rao@ohdsi.org; -status : ; -addedVersion : ; -logicDescription : ; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Exposure to SARS-Cov 2 and coronavirus",,"Exposure to SARS-Cov 2 and coronavirus","","","","","","","","","","","","",,,,,,16,16 -17,"[P][R] Exposure to SARS-CoV-2 ",17,"cohortNameLong : Exposure to SARS-CoV-2; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Exposure to SARS-CoV-2. Persons exit on cohort end date; -hashTag : #Referent, #Observation; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 37311059; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Exposure to SARS-CoV-2",,"Exposure to SARS-CoV-2","Pending peer review","","all events of Exposure to SARS-CoV-2. Persons exit on cohort end date","#Referent, #Observation","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37311059","","",,,,,,17,17 -18,"[P][R] Multisystem inflammatory syndrome (MIS) ",18,"cohortNameLong : Multisystem inflammatory syndrome (MIS); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Multisystem inflammatory syndrome (MIS). Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 703578; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Multisystem inflammatory syndrome (MIS)",,"Multisystem inflammatory syndrome (MIS)","Pending peer review","","all events of Multisystem inflammatory syndrome (MIS). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","703578","","",,,,,,18,18 -20,"[P] Bronchitis or Bronchiolitis",20,"cohortNameLong : Bronchitis or Bronchiolitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Bronchitis; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 256451, 260139; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Bronchitis or Bronchiolitis",,"Bronchitis or Bronchiolitis","Pending peer review","","All events of Bronchitis","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","256451, 260139","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,20,20 -21,"[P] Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure",21,"cohortNameLong : Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 319049; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure",,"Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure","Pending peer review","","All events of Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure","","","","","","","319049","","",,,,,,21,21 -22,"[W] SARS-CoV-2 testing",22,"cohortNameLong : SARS-CoV-2 testing; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","SARS-CoV-2 testing",,"SARS-CoV-2 testing","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,22,22 -23,"Inpatient Hospitalization (1Pe, 0Era)",23,"cohortNameLong : Inpatient Hospitalization (1Pe, 0Era); -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.4.0; -logicDescription : All events of Inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process; -hashTag : #standard, #Visits; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Inpatient Hospitalization (1Pe, 0Era)",,"Inpatient Hospitalization (1Pe, 0Era)","Accepted","3.4.0","All events of Inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,23,23 -24,"Emergency room visits (0Pe, 0Era)",24,"cohortNameLong : Emergency room visits (0Pe, 0Era); -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.4.0; -logicDescription : All events of Emergency Room visits. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process; -hashTag : #standard, #Visits; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Emergency room visits (0Pe, 0Era)",,"Emergency room visits (0Pe, 0Era)","Accepted","3.4.0","All events of Emergency Room visits. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,24,24 -25,"All cause mortality",25,"cohortNameLong : All cause mortality; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : 3.4.0; -logicDescription : Earliest observation of any death; -hashTag : #standard; -contributors : Gowtham A Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","All cause mortality",,"All cause mortality","Pending peer review","3.4.0","Earliest observation of any death","#standard","Gowtham A Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,25,25 -27,"[P] Asthma without COPD",27,"cohortNameLong : Asthma without COPD; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest of either asthma diagnosis or therapy for asthma with a history of another asthma therapy more than 180 days before. The person should not have a diagnosis or treatment for COPD in past; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 317009; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Asthma without COPD",,"Asthma without COPD","Pending peer review","","Earliest of either asthma diagnosis or therapy for asthma with a history of another asthma therapy more than 180 days before. The person should not have a diagnosis or treatment for COPD in past","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317009","","",,,,,,27,27 -29,"[W] Autoimmune condition (FP)",29,"cohortNameLong : Autoimmune condition (FP); -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 76685, 80809, 81893, 81931, 134442, 134618, 135215, 140168, 194992, 199856, 201254, 201606, 254443, 257628, 374919, 432295, 438688, 443394, 4137275, 4232076; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Autoimmune condition (FP)",,"Autoimmune condition (FP)","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","","","","","","","76685, 80809, 81893, 81931, 134442, 134618, 135215, 140168, 194992, 199856, 201254, 201606, 254443, 257628, 374919, 432295, 438688, 443394, 4137275, 4232076","","",,,,,,29,29 -30,"[P] Tuberculosis with treatment using anti tubercular drug",30,"cohortNameLong : Tuberculosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of tuberculosis with at least 3 different drugs for tuberculosis at anytime on or after diagnosis; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 253954, 434557; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Tuberculosis with treatment using anti tubercular drug",,"Tuberculosis","Pending peer review","","All events of tuberculosis with at least 3 different drugs for tuberculosis at anytime on or after diagnosis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","253954, 434557","","",,,,,,30,30 -31,"[P] Malignant neoplasm excluding non-melanoma skin cancer",31,"cohortNameLong : Malignant neoplasm excluding non-melanoma skin cancer; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events with a malignant neoplastic disease or history of malignant neoplastic disease; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137809, 443392; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Malignant neoplasm excluding non-melanoma skin cancer",,"Malignant neoplasm excluding non-melanoma skin cancer","Pending peer review","","All events with a malignant neoplastic disease or history of malignant neoplastic disease","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137809, 443392","","",,,,,,31,31 -32,"[P] Obesity",32,"cohortNameLong : Obesity; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Persons with obesity diagnosis or a body weight measurement > 120 kg or 265 lbs; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433736; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Obesity",,"Obesity","Pending peer review","","Persons with obesity diagnosis or a body weight measurement > 120 kg or 265 lbs","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433736","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,32,32 -33,"[P] Dementia",33,"cohortNameLong : Dementia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Persons with the diagnosis of dementia, includes history of Dementia; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4182210; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Dementia",,"Dementia","Pending peer review","","Persons with the diagnosis of dementia, includes history of Dementia","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4182210","","",,,,,,33,33 -34,"[P] Hypertensive disorder or hypertensive complications",34,"cohortNameLong : Hypertensive disorder or hypertensive complications; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Hypertensive disorder diagnosis or complication of hypertension; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 312648, 4028741; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Hypertensive disorder or hypertensive complications",,"Hypertensive disorder or hypertensive complications","Pending peer review","","Hypertensive disorder diagnosis or complication of hypertension","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312648, 4028741","","",,,,,,34,34 -35,"[W] Chronic kidney disease (FP)",35,"cohortNameLong : Chronic kidney disease (FP); -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192359, 193782; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Chronic kidney disease (FP)",,"Chronic kidney disease (FP)","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","","","","","","","192359, 193782","","",,,,,,35,35 -36,"[P] Human immunodeficiency virus (not HIV2) infection",36,"cohortNameLong : Human immunodeficiency virus (not HIV2) infection; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest diagnosis of HIV (not HIV2) with another diagnosis in future or a treatment for HIV; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439727; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Human immunodeficiency virus (not HIV2) infection",,"Human immunodeficiency virus (not HIV2) infection","Pending peer review","","Earliest diagnosis of HIV (not HIV2) with another diagnosis in future or a treatment for HIV","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439727","","",,,,,,36,36 -37,"[P] Hepatitis C infection, carrier status or antibody positivity",37,"cohortNameLong : Hepatitis C infection, carrier status or antibody positivity; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest diagnosis of Hepatitis C; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197494, 198964; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Hepatitis C infection, carrier status or antibody positivity",,"Hepatitis C infection, carrier status or antibody positivity","Pending peer review","","Earliest diagnosis of Hepatitis C","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197494, 198964","","",,,,,,37,37 -38,"[P] Heart disease",38,"cohortNameLong : Heart disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest of any Heart disease or arteriosclerosis of coronary artery bypass graft; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313217, 44784217; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Heart disease",,"Heart disease","Pending peer review","","Earliest of any Heart disease or arteriosclerosis of coronary artery bypass graft","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 44784217","","",,,,,,38,38 -39,"[W] End stage renal disease (FP)",39,"cohortNameLong : End stage renal disease (FP); -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 193782; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","End stage renal disease (FP)",,"End stage renal disease (FP)","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","","","","","","","193782","","",,,,,,39,39 -40,"[P] Diabetes Mellitus Type 2 or history of diabetes",40,"cohortNameLong : Diabetes Mellitus Type 2 or history of diabetes; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest of any Type 2 Diabetes Mellitus or History of Diabetes; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201820, 201826; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Diabetes Mellitus Type 2 or history of diabetes",,"Diabetes Mellitus Type 2 or history of diabetes","Pending peer review","","Earliest of any Type 2 Diabetes Mellitus or History of Diabetes","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201820, 201826","","",,,,,,40,40 -41,"[W] Chronic kidney disease broad (FP)",41,"cohortNameLong : Chronic kidney disease broad (FP); -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192359, 193782; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","Chronic kidney disease broad (FP)",,"Chronic kidney disease broad (FP)","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","","","","","","","192359, 193782","","",,,,,,41,41 -42,"[W] End stage renal disease broad (FP)",42,"cohortNameLong : End stage renal disease broad (FP); -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 193782; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-19","rao@ohdsi.org","End stage renal disease broad (FP)",,"End stage renal disease broad (FP)","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","","","","","","","193782","","",,,,,,42,42 -43,"[P] Respiratory or pulmonary tuberculosis",43,"cohortNameLong : Respiratory or pulmonary tuberculosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest occurrence of respiratory or pulmonary tuberculosis; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 253954, 434557; -ohdsiForumPost : ; -replaces : ; -","2021-09-23","2023-09-25","rao@ohdsi.org","Respiratory or pulmonary tuberculosis",,"Respiratory or pulmonary tuberculosis","Pending peer review","","Earliest occurrence of respiratory or pulmonary tuberculosis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","253954, 434557","","",,,,,,43,43 -44,"[P][R] COVID-19 ",44,"cohortNameLong : COVID-19; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of COVID-19. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 37311061; -ohdsiForumPost : ; -replaces : ; -","2021-09-24","2023-09-19","rao@ohdsi.org","COVID-19",,"COVID-19","Pending peer review","","all events of COVID-19. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37311061","","",,,,,,44,44 -45,"[W] COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d)",45,"cohortNameLong : COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d); -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2021-09-24","2023-09-19","rao@ohdsi.org","COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d)",,"COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d)","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","439676, 37311061","","",,,,,,45,45 -46,"[W] COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d",46,"cohortNameLong : COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2021-09-24","2023-09-19","rao@ohdsi.org","COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d",,"COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","439676, 37311061","","",,,,,,46,46 -47,"[W] COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d",47,"cohortNameLong : COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2021-09-24","2023-09-19","rao@ohdsi.org","COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d",,"COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","439676, 37311061","","",,,,,,47,47 -48,"[W] COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d)",48,"cohortNameLong : COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d); -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2021-09-24","2023-09-19","rao@ohdsi.org","COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d)",,"COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d)","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","439676, 37311061","","",,,,,,48,48 -51,"[W] SARS-CoV-2 test positive result",51,"cohortNameLong : SARS-CoV-2 test positive result; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-09-24","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test positive result",,"SARS-CoV-2 test positive result","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,51,51 -52,"[W] SARS-CoV-2 test negative result",52,"cohortNameLong : SARS-CoV-2 test negative result; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-09-24","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test negative result",,"SARS-CoV-2 test negative result","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,52,52 -53,"[W] SARS-CoV-2 test positive or negative result - keep persons with positive",53,"cohortNameLong : SARS-CoV-2 test positive or negative result - keep persons with positive; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-09-24","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test positive or negative result - keep persons with positive",,"SARS-CoV-2 test positive or negative result - keep persons with positive","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,53,53 -54,"[P] Febrile seizure",54,"cohortNameLong : Febrile seizure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Febrile seizures; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377091, 4196708; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-24","2023-09-25","rao@ohdsi.org","Febrile seizure",,"Febrile seizure","Pending peer review","","All events of Febrile seizures","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377091, 4196708","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,54,54 -56,"[P] SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d)",56,"cohortNameLong : SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Covid Diagnosis without a negative test result or a SARS-Cov-2 test positive test; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2021-09-30","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d)",,"SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d)","Pending peer review","","All events of Covid Diagnosis without a negative test result or a SARS-Cov-2 test positive test","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439676, 37311061","","",,,,,,56,56 -57,"[P][R] Bleeding ",57,"cohortNameLong : Bleeding; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Bleeding. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192671, 437312; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-09-30","2023-09-19","rao@ohdsi.org","Bleeding",,"Bleeding","Pending peer review","","all events of Bleeding. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671, 437312","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,57,57 -59,"[W] COVID-19 diagnosis with no SARS-CoV-2 test",59,"cohortNameLong : COVID-19 diagnosis with no SARS-CoV-2 test; -librarian : rao@ohdsi.org; -status : ; -addedVersion : ; -logicDescription : ; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","COVID-19 diagnosis with no SARS-CoV-2 test",,"COVID-19 diagnosis with no SARS-CoV-2 test","","","","","","","","","","439676, 37311061","","",,,,,,59,59 -60,"[W] SARS-CoV-2 test positive and negative result",60,"cohortNameLong : SARS-CoV-2 test positive and negative result; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test positive and negative result",,"SARS-CoV-2 test positive and negative result","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,60,60 -61,"[P] Bradycardia or heart block with inpatient admission",61,"cohortNameLong : Bradycardia or heart block with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Bradycardia or heart block or first occurrence of pace maker limited to inpatient visit; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 317302, 320425; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-25","rao@ohdsi.org","Bradycardia or heart block with inpatient admission",,"Bradycardia or heart block with inpatient admission","Pending peer review","","All events of Bradycardia or heart block or first occurrence of pace maker limited to inpatient visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317302, 320425","","",,,,,,61,61 -62,"[P][R] Seizure related finding ",62,"cohortNameLong : Seizure related finding; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Seizure related finding. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377091, 4196708; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Seizure related finding",,"Seizure related finding","Pending peer review","","all events of Seizure related finding. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377091, 4196708","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,62,62 -63,"Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W)",63,"cohortNameLong : Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W); -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.7.0; -logicDescription : events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia; -hashTag : #Accepted, #Level2; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : Evan Minty; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 79908, 139803, 443904; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W)",,"Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W)","Accepted","3.7.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 139803, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,63,63 -64,"[P] Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia",64,"cohortNameLong : Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of flue like symptoms or signs; -hashTag : #Symptoms, #Signs; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 254761, 312437, 437663, 439926, 442752, 4041664, 4178904, 4272240, 43530714; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2021-10-05","2023-09-25","rao@ohdsi.org","Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia",,"Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia","Pending peer review","","All events of flue like symptoms or signs","#Symptoms, #Signs","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254761, 312437, 437663, 439926, 442752, 4041664, 4178904, 4272240, 43530714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,64,64 -65,"[W] Acute pancreatitis with inpatient admission",65,"cohortNameLong : Acute pancreatitis with inpatient admission; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn and replaced by 205; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 199074; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Acute pancreatitis with inpatient admission",,"Acute pancreatitis with inpatient admission","Withdrawn","","Withdrawn and replaced by 205","","","","","","","199074","","",,,,,,65,65 -66,"[W] Acute renal failure with inpatient admission",66,"cohortNameLong : Acute renal failure with inpatient admission; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197320; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Acute renal failure with inpatient admission",,"Acute renal failure with inpatient admission","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","197320","","",,,,,,66,66 -67,"[W] Hepatic failure with inpatient admission",67,"cohortNameLong : Hepatic failure with inpatient admission; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Hepatic failure with inpatient admission",,"Hepatic failure with inpatient admission","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","4245975","","",,,,,,67,67 -68,"[W] Heart failure with inpatient admission",68,"cohortNameLong : Heart failure with inpatient admission; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 316139, 319835; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Heart failure with inpatient admission",,"Heart failure with inpatient admission","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","316139, 319835","","",,,,,,68,68 -69,"[W] Angioedema with inpatient admission",69,"cohortNameLong : Angioedema with inpatient admission; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432791; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Angioedema with inpatient admission",,"Angioedema with inpatient admission","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","432791","","",,,,,,69,69 -70,"[P] Stroke (ischemic or hemorrhagic) with inpatient admission",70,"cohortNameLong : Stroke (ischemic or hemorrhagic) with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of ischemic or hemorrhagic stroke in an inpatient or ER visit; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 443454; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Stroke (ischemic or hemorrhagic) with inpatient admission",,"Stroke (ischemic or hemorrhagic) with inpatient admission","Pending peer review","","all events of ischemic or hemorrhagic stroke in an inpatient or ER visit","","","","","","","443454","","",,,,,,70,70 -71,"[P] Acute myocardial infarction with inpatient admission",71,"cohortNameLong : Acute myocardial infarction with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of acute myocardial infarction in an inpatient or ER visit; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314666, 4329847; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; -replaces : ; -","2021-10-05","2023-09-25","rao@ohdsi.org","Acute myocardial infarction with inpatient admission",,"Acute myocardial infarction with inpatient admission","Pending peer review","","all events of acute myocardial infarction in an inpatient or ER visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,71,71 -72,"[P] Influenza diagnosis or positive test result",72,"cohortNameLong : Influenza diagnosis or positive test result; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of influenza diagnosis, or positive influenza test result; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4183609, 4266367; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Influenza diagnosis or positive test result",,"Influenza diagnosis or positive test result","Pending peer review","","all events of influenza diagnosis, or positive influenza test result","","","","","","","4183609, 4266367","","",,,,,,72,72 -74,"[P] Hemorrhagic stroke (intracerebral bleeding) with inpatient admission",74,"cohortNameLong : Hemorrhagic stroke (intracerebral bleeding) with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of hemorrhagic stroke while inpatient or ER setting.; -hashTag : ; -contributors : Unknown; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 376713, 439847; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Hemorrhagic stroke (intracerebral bleeding) with inpatient admission",,"Hemorrhagic stroke (intracerebral bleeding) with inpatient admission","Pending peer review","","all events of hemorrhagic stroke while inpatient or ER setting.","","Unknown","","","","","376713, 439847","","",,,,,,74,74 -75,"[P] Ischemic stroke with inpatient admission",75,"cohortNameLong : Ischemic stroke with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of ischemic stroke while inpatient or ER setting.; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 443454; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Ischemic stroke with inpatient admission",,"Ischemic stroke with inpatient admission","Pending peer review","","all events of ischemic stroke while inpatient or ER setting.","","","","","","","443454","","",,,,,,75,75 -76,"[P] Transient ischemic attack with inpatient admission",76,"cohortNameLong : Transient ischemic attack with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of transient ischemic attack while in inpatient or ER setting; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 373503; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Transient ischemic attack with inpatient admission",,"Transient ischemic attack with inpatient admission","Pending peer review","","all events of transient ischemic attack while in inpatient or ER setting","","","","","","","373503","","",,,,,,76,76 -77,"[P] Gastrointestinal bleeding with inpatient admission",77,"cohortNameLong : Gastrointestinal bleeding with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of gastrointestinal hemorrhage in inpatient or ER setting; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192671; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Gastrointestinal bleeding with inpatient admission",,"Gastrointestinal bleeding with inpatient admission","Pending peer review","","all events of gastrointestinal hemorrhage in inpatient or ER setting","","","","","","","192671","","",,,,,,77,77 -78,"[P] Cardiac arrhythmia with inpatient admission",78,"cohortNameLong : Cardiac arrhythmia with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of cardiac arrhythmia or treatments for cardiac arrhythmia in inpatient or ER setting; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313217, 44784217; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Cardiac arrhythmia with inpatient admission",,"Cardiac arrhythmia with inpatient admission","Pending peer review","","all events of cardiac arrhythmia or treatments for cardiac arrhythmia in inpatient or ER setting","","","","","","","313217, 44784217","","",,,,,,78,78 -79,"[P] Dialysis with inpatient admission",79,"cohortNameLong : Dialysis with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of dialysis in inpatient setting; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 438624, 4027133; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Dialysis with inpatient admission",,"Dialysis with inpatient admission","Pending peer review","","all events of dialysis in inpatient setting","","","","","","","438624, 4027133","","",,,,,,79,79 -80,"[P] Extracorporeal Membrane Oxygenation with inpatient admission",80,"cohortNameLong : Extracorporeal Membrane Oxygenation with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Extracorporeal Membrane Oxygenation in inpatient setting; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Extracorporeal Membrane Oxygenation with inpatient admission",,"Extracorporeal Membrane Oxygenation with inpatient admission","Pending peer review","","all events of Extracorporeal Membrane Oxygenation in inpatient setting","","","","","","","","","",,,,,,80,80 -81,"[P] Cesarean section",81,"cohortNameLong : Cesarean section; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Cesarean section; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Cesarean section",,"Cesarean section","Pending peer review","","all events of Cesarean section","","","","","","","","","",,,,,,81,81 -82,"[P] Intensive services during hospitalization",82,"cohortNameLong : Intensive services during hospitalization; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of intensive care service in an inpatient setting; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 40481547; -ohdsiForumPost : ; -replaces : ; -","2021-10-05","2023-09-19","rao@ohdsi.org","Intensive services during hospitalization",,"Intensive services during hospitalization","Pending peer review","","all events of intensive care service in an inpatient setting","","","","","","","40481547","","",,,,,,82,82 -84,"[P] SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d)",84,"cohortNameLong : SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of positive SAR-CoV-2 test result or Covid-19 diagnosis without a negative test result on or within 3 days of diagnosis; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2021-10-09","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d)",,"SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d)","Pending peer review","","all events of positive SAR-CoV-2 test result or Covid-19 diagnosis without a negative test result on or within 3 days of diagnosis","","","","","","","439676, 37311061","","",,,,,,84,84 -86,"[W] SARS-CoV-2 test positive or negative result",86,"cohortNameLong : SARS-CoV-2 test positive or negative result; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-10-11","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test positive or negative result",,"SARS-CoV-2 test positive or negative result","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,86,86 -87,"[W] SARS-CoV-2 test",87,"cohortNameLong : SARS-CoV-2 test; -librarian : rao@ohdsi.org; -status : Withdrawn; -addedVersion : ; -logicDescription : Withdrawn by contributor before peer review; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2021-10-21","2023-09-19","rao@ohdsi.org","SARS-CoV-2 test",,"SARS-CoV-2 test","Withdrawn","","Withdrawn by contributor before peer review","","","","","","","","","",,,,,,87,87 -95,"[P] Delirium",95,"cohortNameLong : Delirium; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : first occurrence of Delirium; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 373995; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2022-02-04","2023-09-25","rao@ohdsi.org","Delirium",,"Delirium","Pending peer review","","first occurrence of Delirium","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","373995","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,95,95 -100,"[P][R] Alzheimer's disease",100,"cohortNameLong : Alzheimer's disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Alzheimer's disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 378419; -ohdsiForumPost : ; -replaces : ; -","2022-02-06","2023-09-25","ryan@ohdsi.org","Alzheimer's disease",,"Alzheimer's disease","Pending peer review","","all events of Alzheimer's disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378419","","",,,,,,100,100 -119,"Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP)",119,"cohortNameLong : Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP); -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.10.0; -logicDescription : first signs and symptoms suggestive of Systemic lupus erythematosus (SLE) or first treatment suggestive of SLE with SLE diagnosis with 90 days; -hashTag : #PhenotypePhebruary, #2023, #SystemicLupusErythematosus; -contributors : Joel Swerdel, Daniel Prieto-Alhambra; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 138525, 194133; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p5-systemic-lupus-erythematosus-sle/18223; -replaces : ; -","2022-02-10","2023-09-19","rao@ohdsi.org","Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP)",,"Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP)","Accepted","3.10.0","first signs and symptoms suggestive of Systemic lupus erythematosus (SLE) or first treatment suggestive of SLE with SLE diagnosis with 90 days","#PhenotypePhebruary, #2023, #SystemicLupusErythematosus","Joel Swerdel, Daniel Prieto-Alhambra","","","","","138525, 194133","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p5-systemic-lupus-erythematosus-sle/18223","",,,,,,119,119 -123,"[P] Suicide attempt or self inflicted injury",123,"cohortNameLong : Suicide attempt or self inflicted injury; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Suicide or self inflicted events; -hashTag : #Submitted; -contributors : Azza A Shoaibi; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 444362; -ohdsiForumPost : ; -replaces : ; -","2022-02-11","2023-09-25","rao@ohdsi.org","Suicide attempt or self inflicted injury",,"Suicide attempt or self inflicted injury","Pending","","Suicide or self inflicted events","#Submitted","Azza A Shoaibi","'0000-0002-4949-7236'","'OHDSI'","","","444362","","",,,,,,123,123 -134,"[P] Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment",134,"cohortNameLong : Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Attention-deficit hyperactivity disorder (ADHD) condition or related procedures, indexed on the earliest occurrence of ADHD condition, procedure or treatment (limited to drug exposure followed by a related condition or procedure), with 365d prior observation, exit at end of observation; -hashTag : #PhenotypePhebruary; -contributors : Patrick B. Ryan; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 438409, 4047120; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-13-attention-deficit-hyperactivity-disorder/15901; -replaces : ; -","2022-02-13","2023-09-19","ryan@ohdsi.org","Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment",,"Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment","Pending peer review","","First occurrence of Attention-deficit hyperactivity disorder (ADHD) condition or related procedures, indexed on the earliest occurrence of ADHD condition, procedure or treatment (limited to drug exposure followed by a related condition or procedure), with 365d prior observation, exit at end of observation","#PhenotypePhebruary","Patrick B. Ryan","","","","","438409, 4047120","https//forums.ohdsi.org/t/phenotype-phebruary-day-13-attention-deficit-hyperactivity-disorder/15901","",,,,,,134,134 -142,"[P] ST elevated Myocardial infarction or Acute MI with ST elevation",142,"cohortNameLong : Earliest of ST elevated Myocardial infarction or Acute MI with ST elevation; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest of ST elevated Myocardial infarction or Acute Myocardial Infarction with ST elevation; -hashTag : #PhenotypePhebruary, #2022; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314666, 4296653, 4329847; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; -replaces : ; -","2022-02-15","2023-09-25","rao@ohdsi.org","ST elevated Myocardial infarction or Acute MI with ST elevation",,"Earliest of ST elevated Myocardial infarction or Acute MI with ST elevation","Pending","","Earliest of ST elevated Myocardial infarction or Acute Myocardial Infarction with ST elevation","#PhenotypePhebruary, #2022","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4296653, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,142,142 -189,"[P][R] Right upper quadrant pain ",189,"cohortNameLong : Right upper quadrant pain; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Right upper quadrant pain. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 198263; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2022-06-29","2023-09-19","rao@ohdsi.org","Right upper quadrant pain",,"Right upper quadrant pain","Pending peer review","","all events of Right upper quadrant pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198263","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,189,189 -190,"[P][R] Swollen abdomen ",190,"cohortNameLong : Swollen abdomen; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Swollen abdomen. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 442597, 4152351; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2022-06-29","2023-09-19","rao@ohdsi.org","Swollen abdomen",,"Swollen abdomen","Pending peer review","","all events of Swollen abdomen. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442597, 4152351","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,190,190 -191,"[P] Fatigue, Asthenia, Malaise, Lethargy, Anorexia",191,"cohortNameLong : Fatigue, Asthenia, Malaise, Lethargy, Anorexia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events with a diagnosis of Fatigue, Asthenia, Malaise, Lethargy, Anorexia but not senile, cancer or stroke related asthenia; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439926, 4272240; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2022-06-29","2023-09-25","rao@ohdsi.org","Fatigue, Asthenia, Malaise, Lethargy, Anorexia",,"Fatigue, Asthenia, Malaise, Lethargy, Anorexia","Pending peer review","","events with a diagnosis of Fatigue, Asthenia, Malaise, Lethargy, Anorexia but not senile, cancer or stroke related asthenia","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439926, 4272240","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,191,191 -192,"[P] Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia",192,"cohortNameLong : Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Skin, Nasal or oral mucosal bleeding events such as epistaxis. Does not include gastrointestinal bleeding. Limited to bleeding common during thrombocytopenia; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4096682; -ohdsiForumPost : Pending; -replaces : ; -","2022-06-29","2023-09-25","rao@ohdsi.org","Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia",,"Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia","Pending peer review","","all events of Skin, Nasal or oral mucosal bleeding events such as epistaxis. Does not include gastrointestinal bleeding. Limited to bleeding common during thrombocytopenia","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4096682","Pending","",,,,,,192,192 -193,"[P] Jaundice or Itching",193,"cohortNameLong : Jaundice or Itching; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of jaundice or itching; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137977, 435656; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2022-06-29","2023-09-25","rao@ohdsi.org","Jaundice or Itching",,"Jaundice or Itching","Pending peer review","","events of jaundice or itching","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137977, 435656","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,193,193 -194,"[P] Encephalopathy or its presentations",194,"cohortNameLong : Encephalopathy or its presentations; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events Encephalopathy or its presentations; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436222; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2022-06-29","2023-09-25","rao@ohdsi.org","Encephalopathy or its presentations",,"Encephalopathy or its presentations","Pending peer review","","events Encephalopathy or its presentations","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436222","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,194,194 -195,"[P] Primary or malignant urothelial bladder cancer",195,"cohortNameLong : Primary or malignant urothelial bladder cancer; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Primary or malignant urothelial bladder cancer; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 196360, 197508; -ohdsiForumPost : ; -replaces : ; -","2022-06-30","2023-09-19","rao@ohdsi.org","Primary or malignant urothelial bladder cancer",,"Primary or malignant urothelial bladder cancer","Pending peer review","","all events of Primary or malignant urothelial bladder cancer","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196360, 197508","","",,,,,,195,195 -196,"[P] Rheumatoid arthritis or complications",196,"cohortNameLong : Rheumatoid arthritis or complications; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of rheumatoid arthritis or complications; -hashTag : #Disease; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 80809; -ohdsiForumPost : ; -replaces : ; -","2022-06-30","2023-09-19","rao@ohdsi.org","Rheumatoid arthritis or complications",,"Rheumatoid arthritis or complications","Pending peer review","","All events of rheumatoid arthritis or complications","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80809","","",,,,,,196,196 -197,"[P] Coronary Artery Disease from vessel disease to ischemic injury",197,"cohortNameLong : Coronary Artery Disease from vessel disease to ischemic injury; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all occurrence of coronary artery disease; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 318443, 764123; -ohdsiForumPost : ; -replaces : ; -","2022-06-30","2023-09-19","rao@ohdsi.org","Coronary Artery Disease from vessel disease to ischemic injury",,"Coronary Artery Disease from vessel disease to ischemic injury","Pending peer review","","all occurrence of coronary artery disease","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318443, 764123","","",,,,,,197,197 -198,"[P] Crohns disease or its complication",198,"cohortNameLong : Crohns disease or its complication; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of crohns disease or complications; -hashTag : #Disease; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201606; -ohdsiForumPost : ; -replaces : ; -","2022-06-30","2023-09-25","rao@ohdsi.org","Crohns disease or its complication",,"Crohns disease or its complication","Pending peer review","","All events of crohns disease or complications","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201606","","",,,,,,198,198 -199,"[P] Major Depressive Disorder",199,"cohortNameLong : Major Depressive Disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of major depressive disorder; -hashTag : #Disease; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440383; -ohdsiForumPost : ; -replaces : ; -","2022-06-30","2023-09-25","rao@ohdsi.org","Major Depressive Disorder",,"Major Depressive Disorder","Pending peer review","","All events of major depressive disorder","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440383","","",,,,,,199,199 -200,"[P] Psoriasis of skin",200,"cohortNameLong : Psoriasis of skin; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of psoriasis of skin; -hashTag : #Disease; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 140168; -ohdsiForumPost : ; -replaces : ; -","2022-06-30","2023-09-25","rao@ohdsi.org","Psoriasis of skin",,"Psoriasis of skin","Pending peer review","","All events of psoriasis of skin","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140168","","",,,,,,200,200 -201,"[P] Ulcerative colitis or complications",201,"cohortNameLong : Ulcerative colitis or complications; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Ulcerative colitis or complications; -hashTag : #Disease; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 81893; -ohdsiForumPost : ; -replaces : ; -","2022-06-30","2023-09-25","rao@ohdsi.org","Ulcerative colitis or complications",,"Ulcerative colitis or complications","Pending peer review","","All events of Ulcerative colitis or complications","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81893","","",,,,,,201,201 -207,"[P] Acquired Pure Red Cell Aplasia",207,"cohortNameLong : Acquired Pure Red Cell Aplasia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : earliest of acquired pure red cell aplasia indexed on anemia, with no congenital or genetic anemia or constitutional aplasia, and no erroneous measurements such as normal hemoglobin or hematocrit. Persons should not have constitutional aplasia as it represents congenital form of aplasia and should not have bone marrow transplantation; -hashTag : #DME; -contributors : Azza Shoaibi; -contributorOrcIds : '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 26942, 138723, 4144746; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acquired-pure-red-cell-aplasia/17854; -replaces : ; -","2022-11-10","2024-09-11","rao@ohdsi.org","Acquired Pure Red Cell Aplasia",,"Acquired Pure Red Cell Aplasia","Pending peer review","","earliest of acquired pure red cell aplasia indexed on anemia, with no congenital or genetic anemia or constitutional aplasia, and no erroneous measurements such as normal hemoglobin or hematocrit. Persons should not have constitutional aplasia as it represents congenital form of aplasia and should not have bone marrow transplantation","#DME","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","26942, 138723, 4144746","https//forums.ohdsi.org/t/phenotype-submission-acquired-pure-red-cell-aplasia/17854","",,,,,,207,207 -208,"[P] Febrile Neutropenia or Neutropenic Fever",208,"cohortNameLong : Febrile Neutropenia or Neutropenic Fever; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of febrile neutropenia, indexed on the diagnosis of febrile neutropenia or a fever (diagnosis or measurement) cooccurring with neutropenia (diagnosis or measurement) within 1 day , or a diagnosis of clinically significant infection cooccurring with neutropenia (diagnosis or measurement) within 1 day. Restricted to events overlapping with in an inpatient or emergency room visit and excluding events with a normal neutrophil count (ANC) on index.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257011, 437663, 4170143, 4250734; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-febrile-neutropenia-or-neutropenic-fever/17876; -replaces : ; -","2022-11-10","2023-09-19","rao@ohdsi.org","Febrile Neutropenia or Neutropenic Fever",,"Febrile Neutropenia or Neutropenic Fever","Pending peer review","","All events of febrile neutropenia, indexed on the diagnosis of febrile neutropenia or a fever (diagnosis or measurement) cooccurring with neutropenia (diagnosis or measurement) within 1 day , or a diagnosis of clinically significant infection cooccurring with neutropenia (diagnosis or measurement) within 1 day. Restricted to events overlapping with in an inpatient or emergency room visit and excluding events with a normal neutrophil count (ANC) on index.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","257011, 437663, 4170143, 4250734","https//forums.ohdsi.org/t/phenotype-submission-febrile-neutropenia-or-neutropenic-fever/17876","",,,,,,208,208 -209,"[P] Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd",209,"cohortNameLong : Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, enzyme or RBC structure; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435503, 439777, 441269, 4250490; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; -replaces : ; -","2022-11-11","2023-09-19","rao@ohdsi.org","Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd",,"Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, enzyme or RBC structure","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269, 4250490","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,209,209 -210,"[P] Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect",210,"cohortNameLong : Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, or RBC structure. Persons with enzyme disorder (e.g. G-6-PD deficiency) are not excluded; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435503, 439777, 441269, 4250490; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; -replaces : ; -","2022-11-11","2024-09-11","rao@ohdsi.org","Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect",,"Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, or RBC structure. Persons with enzyme disorder (e.g. G-6-PD deficiency) are not excluded","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269, 4250490","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,210,210 -211,"[P] Pancytopenia, Acquired",211,"cohortNameLong : Pancytopenia, Acquired; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Pancytopenia, indexed on diagnosis or lab results. Excluded are patients with severe congenital blood disorders that may cause pancytopenia any time prior to 7 days post index. Exist cohort at 60 days post end date. Repeated events will be combined into events eras if they are within 365 days of each other.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432881; -ohdsiForumPost : ; -replaces : ; -","2022-11-11","2024-09-11","rao@ohdsi.org","Pancytopenia, Acquired",,"Pancytopenia, Acquired","Pending peer review","","All events of Pancytopenia, indexed on diagnosis or lab results. Excluded are patients with severe congenital blood disorders that may cause pancytopenia any time prior to 7 days post index. Exist cohort at 60 days post end date. Repeated events will be combined into events eras if they are within 365 days of each other.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","432881","","",,,,,,211,211 -213,"[D] Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)",213,"cohortNameLong : Neutropenia or unspecified leukopenia; -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.11.0; -logicDescription : All events of neutropenia indexed on diagnosis or lab results, with no congenital or genetic neutropenia all days pre to 7 days post index. Also excluded, events with normal neutrophil count or a diagnosis of Neutrophilia on index. patients exit 21 days post end date or with the occurrence of a normal neutrophil count. Reoccurring events for the same patients will be combined into event eras if they are within 365 days of each other.; -hashTag : #PhenotypePhebruary, #2023, #Neutropenia, #DME; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : Anna Ostropolets; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435224; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409; -replaces : ; -","2022-11-11","2024-09-11","rao@ohdsi.org","Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)",,"Neutropenia or unspecified leukopenia","Accepted","3.11.0","All events of neutropenia indexed on diagnosis or lab results, with no congenital or genetic neutropenia all days pre to 7 days post index. Also excluded, events with normal neutrophil count or a diagnosis of Neutrophilia on index. patients exit 21 days post end date or with the occurrence of a normal neutrophil count. Reoccurring events for the same patients will be combined into event eras if they are within 365 days of each other.","#PhenotypePhebruary, #2023, #Neutropenia, #DME","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Anna Ostropolets","","435224","https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409","",,,,,,213,213 -214,"[P] Acquired Isolated Neutropenia or unspecified leukopenia",214,"cohortNameLong : Acquired Isolated Neutropenia or unspecified leukopenia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of neutropenia indexed on diagnosis or lab results with no congenital or genetic neutropenia, and no other cell lines reduced at the same time; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435224; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409; -replaces : ; -","2022-11-11","2023-09-19","rao@ohdsi.org","Acquired Isolated Neutropenia or unspecified leukopenia",,"Acquired Isolated Neutropenia or unspecified leukopenia","Pending peer review","","all events of neutropenia indexed on diagnosis or lab results with no congenital or genetic neutropenia, and no other cell lines reduced at the same time","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435224","https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409","",,,,,,214,214 -215,"[P] Isolated Immune Thrombocytopenia",215,"cohortNameLong : Isolated Immune Thrombocytopenia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of Immune Thrombocytopenia (ITP) with no evidence of congenital or genetic thrombocytopenia, and no simultaneous neutropenia, pancytopenia, bone marrow involvement, anemia.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433749, 4103532; -ohdsiForumPost : ; -replaces : ; -","2022-11-11","2023-09-19","rao@ohdsi.org","Isolated Immune Thrombocytopenia",,"Isolated Immune Thrombocytopenia","Pending peer review","","events of Immune Thrombocytopenia (ITP) with no evidence of congenital or genetic thrombocytopenia, and no simultaneous neutropenia, pancytopenia, bone marrow involvement, anemia.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433749, 4103532","","",,,,,,215,215 -216,"[P] Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes",216,"cohortNameLong : Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of Immune Thrombocytopenia (ITP) with no evidence of congenital or genetic thrombocytopenia, and no simultaneous neutropenia, pancytopenia, bone marrow involvement, anemia. Persons exit after 180 days or when they have normal platelet count. Also no evidence of common causes of thrombocytopenia including hypersplenism, antiphospholipid syndrome, paroxysmal noctural hemoglobinuria, hemolytic uremic syndrome, thrombotic microangiopathy, major autoimmune disorders, chronic liver disease, pregnancy HELLP, tumors of hematopoietic cells or nutritional deficiency; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433749, 4103532; -ohdsiForumPost : ; -replaces : ; -","2022-11-11","2024-09-11","rao@ohdsi.org","Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes",,"Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes","Pending peer review","","events of Immune Thrombocytopenia (ITP) with no evidence of congenital or genetic thrombocytopenia, and no simultaneous neutropenia, pancytopenia, bone marrow involvement, anemia. Persons exit after 180 days or when they have normal platelet count. Also no evidence of common causes of thrombocytopenia including hypersplenism, antiphospholipid syndrome, paroxysmal noctural hemoglobinuria, hemolytic uremic syndrome, thrombotic microangiopathy, major autoimmune disorders, chronic liver disease, pregnancy HELLP, tumors of hematopoietic cells or nutritional deficiency","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433749, 4103532","","",,,,,,216,216 -217,"[W] Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)",217,"cohortNameLong : Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest events of Immune Thrombotic microangiopathy or microangiopathic hemolytic anemia indexed on the diagnosis or its treatment or investigation. Events with congenital or genetic thrombocytopenia all time prior to 7 days post index are excluded. Also excluded are patients with Platelet count > 150. cohort exit is 7 days post end date or an occurrence of a normal platelet measure .; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313800, 4119134; -ohdsiForumPost : ; -replaces : ; -notes : same as 741;","2022-11-11","2023-10-16","rao@ohdsi.org","Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)",,"Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","Pending peer review","","Earliest events of Immune Thrombotic microangiopathy or microangiopathic hemolytic anemia indexed on the diagnosis or its treatment or investigation. Events with congenital or genetic thrombocytopenia all time prior to 7 days post index are excluded. Also excluded are patients with Platelet count > 150. cohort exit is 7 days post end date or an occurrence of a normal platelet measure .","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","313800, 4119134","","","same as 741",,,,,217,217 -218,"[P] Rhabdomyolysis",218,"cohortNameLong : Rhabdomyolysis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of rhabdomyolysis, indexed on a diagnosis or an observation of of Rhabdomyolysis or Myoglobinuria or a diagnosis of Muscle, ligament and fascia disorders co-occurring with a measurement of creatine kinase that is 5 times above the normal range- within 7 days. With no such events in the last 180 days washout period. Restricted to events that overlap with an inpatient visit. Events are excluded if they had recent trauma such as burn, drowning, hypothermia, hyperthermia, hyperpyrexia, crush syndrome, sepsis, march myoglobinuria, exertional rhabdomyolysis or alcohol intoxication, in the last 14 days including index. cohort exit 0 days post end date.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137967, 4345578; -ohdsiForumPost : ; -replaces : ; -","2022-11-11","2024-09-11","rao@ohdsi.org","Rhabdomyolysis",,"Rhabdomyolysis","Pending peer review","","All events of rhabdomyolysis, indexed on a diagnosis or an observation of of Rhabdomyolysis or Myoglobinuria or a diagnosis of Muscle, ligament and fascia disorders co-occurring with a measurement of creatine kinase that is 5 times above the normal range- within 7 days. With no such events in the last 180 days washout period. Restricted to events that overlap with an inpatient visit. Events are excluded if they had recent trauma such as burn, drowning, hypothermia, hyperthermia, hyperpyrexia, crush syndrome, sepsis, march myoglobinuria, exertional rhabdomyolysis or alcohol intoxication, in the last 14 days including index. cohort exit 0 days post end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","137967, 4345578","","",,,,,,218,218 -219,"[P] Sudden Cardiac arrest or cardiac death",219,"cohortNameLong : Sudden Cardiac arrest or cardiac death; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest event of Sudden Cardiac arrest or Cardiac death, indexed on diagnosis or observation of cardiac arrest or cardiac death or a procedures of resuscitation. Restricting to events overlapping an inpatient or ER visit. Cohort exist is 1 day post cohort end date.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 321042; -ohdsiForumPost : ; -replaces : ; -","2022-11-11","2024-09-11","rao@ohdsi.org","Sudden Cardiac arrest or cardiac death",,"Sudden Cardiac arrest or cardiac death","Pending peer review","","Earliest event of Sudden Cardiac arrest or Cardiac death, indexed on diagnosis or observation of cardiac arrest or cardiac death or a procedures of resuscitation. Restricting to events overlapping an inpatient or ER visit. Cohort exist is 1 day post cohort end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","321042","","",,,,,,219,219 -220,"[P] Angioedema",220,"cohortNameLong : Angioedema; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of angioedema, with no recent cardiac edema, cellulitis, erysipelas, dermatitis or eczema, lymphedema or insect bites; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 139900; -ohdsiForumPost : ; -replaces : ; -","2022-11-11","2023-09-25","rao@ohdsi.org","Angioedema",,"Angioedema","Pending peer review","","all events of angioedema, with no recent cardiac edema, cellulitis, erysipelas, dermatitis or eczema, lymphedema or insect bites","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139900","","",,,,,,220,220 -221,"[P] Anaphylaxis Non Environmental exposure related",221,"cohortNameLong : Anaphylaxis Non Environmental exposure related; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of anaphylaxis that is not due to environmental etiology and no food, substance, insect bite or sting, poisoning as an explanation for anaphylaxis; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441202; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-anaphylaxis/17835; -replaces : ; -","2022-11-11","2023-09-25","rao@ohdsi.org","Anaphylaxis Non Environmental exposure related",,"Anaphylaxis Non Environmental exposure related","Pending peer review","","all events of anaphylaxis that is not due to environmental etiology and no food, substance, insect bite or sting, poisoning as an explanation for anaphylaxis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441202","https//forums.ohdsi.org/t/phenotype-submission-anaphylaxis/17835","",,,,,,221,221 -222,"[P] Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum",222,"cohortNameLong : Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest event of Stevens-Johnson syndrome, Toxic epidermal necrolysis spectrum, indexed on diagnosis of Stevens-Johnson syndrome, Toxic epidermal necrolysis spectrum. Restricting to events overlapping an inpatient or ER visit. Cohort exist is 1 day post cohort end date.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 141651; -ohdsiForumPost : ; -replaces : ; -","2022-11-11","2024-09-11","rao@ohdsi.org","Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum",,"Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum","Pending peer review","","Earliest event of Stevens-Johnson syndrome, Toxic epidermal necrolysis spectrum, indexed on diagnosis of Stevens-Johnson syndrome, Toxic epidermal necrolysis spectrum. Restricting to events overlapping an inpatient or ER visit. Cohort exist is 1 day post cohort end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","141651","","",,,,,,222,222 -223,"[P] Posterior reversible encephalopathy syndrome PRES",223,"cohortNameLong : Posterior reversible encephalopathy syndrome PRES; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of posterior reversible encephalopathy syndrome with no hypertensive encephalopathy or eclampsia; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 42872891; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Posterior reversible encephalopathy syndrome PRES",,"Posterior reversible encephalopathy syndrome PRES","Pending peer review","","all events of posterior reversible encephalopathy syndrome with no hypertensive encephalopathy or eclampsia","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","42872891","","",,,,,,223,223 -224,"[P] Long QT Syndrome or QT prolonged (Acquired)",224,"cohortNameLong : Long QT Syndrome or QT prolonged (Acquired); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Long QT or QT prolonged. Exclude persons with congenital QT syndrome; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314664; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Long QT Syndrome or QT prolonged (Acquired)",,"Long QT Syndrome or QT prolonged (Acquired)","Pending peer review","","all events of Long QT or QT prolonged. Exclude persons with congenital QT syndrome","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314664","","",,,,,,224,224 -225,"[P] Drug-induced Lupus",225,"cohortNameLong : Drug-induced Lupus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of drug induced lupus with no Systemic Lupus Erythematosus; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4063581, 4198217; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Drug-induced Lupus",,"Drug-induced Lupus","Pending peer review","","all events of drug induced lupus with no Systemic Lupus Erythematosus","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4063581, 4198217","","",,,,,,225,225 -226,"[P][R] Drug reaction with eosinophilia and systemic symptoms ",226,"cohortNameLong : Drug reaction with eosinophilia and systemic symptoms; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Drug reaction with eosinophilia and systemic symptoms. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 45765791; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Drug reaction with eosinophilia and systemic symptoms",,"Drug reaction with eosinophilia and systemic symptoms","Pending peer review","","all events of Drug reaction with eosinophilia and systemic symptoms. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","45765791","","",,,,,,226,226 -227,"[P] Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM)",227,"cohortNameLong : Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), Erythema Multiforme, Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 132702, 141651, 45765791; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM)",,"Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM)","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), Erythema Multiforme, Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132702, 141651, 45765791","","",,,,,,227,227 -228,"[P] Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS)",228,"cohortNameLong : Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 141651, 45765791; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS)",,"Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS)","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141651, 45765791","","",,,,,,228,228 -229,"[P] Progressive multifocal leukoencephalopathy",229,"cohortNameLong : Progressive multifocal leukoencephalopathy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest occurrence of progressive multifocal leukoencephalopathy, indexed on diagnosis of multifocal leukoencephalopathy. Cohort exist at the end of observation period; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433957; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2024-09-11","rao@ohdsi.org","Progressive multifocal leukoencephalopathy",,"Progressive multifocal leukoencephalopathy","Pending peer review","","Earliest occurrence of progressive multifocal leukoencephalopathy, indexed on diagnosis of multifocal leukoencephalopathy. Cohort exist at the end of observation period","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433957","","",,,,,,229,229 -230,"[P] Autoimmune hepatitis",230,"cohortNameLong : Autoimmune hepatitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of autoimmune hepatitis with no chronic liver diseases that may have similar presentation up to 365days prior such as viral hepatitis, drug induced liver injury, alcoholic liver disease, and no systemic lupus erythematosus in past 365 days; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 200762; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Autoimmune hepatitis",,"Autoimmune hepatitis","Pending peer review","","all events of autoimmune hepatitis with no chronic liver diseases that may have similar presentation up to 365days prior such as viral hepatitis, drug induced liver injury, alcoholic liver disease, and no systemic lupus erythematosus in past 365 days","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200762","","",,,,,,230,230 -231,"[P][R] Erythema multiforme ",231,"cohortNameLong : Erythema multiforme; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Erythema multiforme. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 132702; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Erythema multiforme",,"Erythema multiforme","Pending peer review","","all events of Erythema multiforme. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132702","","",,,,,,231,231 -232,"[P] Paresthesia",232,"cohortNameLong : Paresthesia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of paresthesia; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4090425; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2022-11-12","2023-09-25","rao@ohdsi.org","Paresthesia",,"Paresthesia","Pending peer review","","all events of paresthesia","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4090425","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,232,232 -233,"[P] Hemorrhagic stroke",233,"cohortNameLong : Hemorrhagic stroke; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of hemorrhagic stroke during an inpatient or ER visit; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 376713, 439847; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Hemorrhagic stroke",,"Hemorrhagic stroke","Pending peer review","","all events of hemorrhagic stroke during an inpatient or ER visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376713, 439847","","",,,,,,233,233 -234,"Appendicitis (1Pe, 180Era)",234,"cohortNameLong : Appendicitis (1Pe, 180Era); -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.11.0; -logicDescription : events of appendicitis with an inpatient or ER visit with no events in 365 days clean window; -hashTag : #PhenotypePhebruary, #2023; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : Azza Shoaibi; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440448, 441604; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p3-appendicitis-interactive-session/18188; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Appendicitis (1Pe, 180Era)",,"Appendicitis (1Pe, 180Era)","Accepted","3.11.0","events of appendicitis with an inpatient or ER visit with no events in 365 days clean window","#PhenotypePhebruary, #2023","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Azza Shoaibi","","440448, 441604","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p3-appendicitis-interactive-session/18188","",,,,,,234,234 -235,"[P] Guillain Barre syndrome inpatient",235,"cohortNameLong : Guillain Barre syndrome inpatient; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : earliest event of Guillain Barre Syndrome during inpatient or ER stay; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374925; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-25","rao@ohdsi.org","Guillain Barre syndrome inpatient",,"Guillain Barre syndrome inpatient","Pending peer review","","earliest event of Guillain Barre Syndrome during inpatient or ER stay","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374925","","",,,,,,235,235 -236,"[P] Idiopathic Peripheral Neuropathy",236,"cohortNameLong : Idiopathic Peripheral Neuropathy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of idiopathic peripheral neuropathy; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 375806, 4175154; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-25","rao@ohdsi.org","Idiopathic Peripheral Neuropathy",,"Idiopathic Peripheral Neuropathy","Pending peer review","","all events of idiopathic peripheral neuropathy","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","375806, 4175154","","",,,,,,236,236 -237,"[P] Kawasaki disease",237,"cohortNameLong : Kawasaki disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of Kawasaki's disease; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314381; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-25","rao@ohdsi.org","Kawasaki disease",,"Kawasaki disease","Pending peer review","","events of Kawasaki's disease","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314381","","",,,,,,237,237 -238,"[P][R] Optic neuritis ",238,"cohortNameLong : Optic neuritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Optic neuritis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374954; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Optic neuritis",,"Optic neuritis","Pending peer review","","all events of Optic neuritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374954","","",,,,,,238,238 -239,"[P] Narcolepsy events",239,"cohortNameLong : Narcolepsy events; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Narcolepsy (includes cataplexy with narcolepsy) with no such events in prior clean window period (365 days). Persons should not be diagnosed with hypersomnia. Persons exit the cohort on end_date + 90 days as persons are assumed to have the condition for at least 90 days; -hashTag : #AESI; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436100; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-narcolepsy/17784; -replaces : ; -","2022-11-12","2023-09-21","rao@ohdsi.org","Narcolepsy events",,"Narcolepsy events","Pending peer review","","All events of Narcolepsy (includes cataplexy with narcolepsy) with no such events in prior clean window period (365 days). Persons should not be diagnosed with hypersomnia. Persons exit the cohort on end_date + 90 days as persons are assumed to have the condition for at least 90 days","#AESI","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436100","https//forums.ohdsi.org/t/phenotype-submission-narcolepsy/17784","",,,,,,239,239 -240,"[P] Muscle weakness or monoplegia",240,"cohortNameLong : Muscle weakness or monoplegia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of muscle weakness or monoplegia with no events in prior 365 days clean window; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 79908; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-25","rao@ohdsi.org","Muscle weakness or monoplegia",,"Muscle weakness or monoplegia","Pending peer review","","events of muscle weakness or monoplegia with no events in prior 365 days clean window","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","79908","","",,,,,,240,240 -241,"[P][R] Urticaria ",241,"cohortNameLong : Urticaria; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Urticaria. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 139900; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Urticaria",,"Urticaria","Pending peer review","","all events of Urticaria. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139900","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,241,241 -243,"[P] Tinnitus",243,"cohortNameLong : Tinnitus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of tinnitus; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377575; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2022-11-12","2023-09-25","rao@ohdsi.org","Tinnitus",,"Tinnitus","Pending peer review","","events of tinnitus","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377575","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,243,243 -244,"[P] Dizziness or giddiness including motion sickness and vertigo",244,"cohortNameLong : Dizziness or giddiness including motion sickness and vertigo; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of dizziness; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433316, 4223938; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2022-11-12","2023-09-25","rao@ohdsi.org","Dizziness or giddiness including motion sickness and vertigo",,"Dizziness or giddiness including motion sickness and vertigo","Pending peer review","","events of dizziness","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433316, 4223938","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,244,244 -245,"[P] Hepatic Thrombosis",245,"cohortNameLong : Hepatic Thrombosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : first event of hepatic thrombosis; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 196715; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Hepatic Thrombosis",,"Hepatic Thrombosis","Pending peer review","","first event of hepatic thrombosis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196715","","",,,,,,245,245 -246,"[P] Portal vein thrombosis",246,"cohortNameLong : Portal vein thrombosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : first event of portal vein thrombosis; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 199837; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Portal vein thrombosis",,"Portal vein thrombosis","Pending peer review","","first event of portal vein thrombosis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","199837","","",,,,,,246,246 -247,"[P] Deep Vein Thrombosis DVT",247,"cohortNameLong : Deep Vein Thrombosis DVT; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : first event of non obstetric Deep Vein Thrombosis; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4133004, 43531681; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; -replaces : ; -","2022-11-12","2023-09-19","rao@ohdsi.org","Deep Vein Thrombosis DVT",,"Deep Vein Thrombosis DVT","Pending peer review","","first event of non obstetric Deep Vein Thrombosis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4133004, 43531681","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,247,247 -248,"[P] Disseminated intravascular coagulation DIC in inpatient visit",248,"cohortNameLong : Disseminated intravascular coagulation DIC in inpatient visit; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of Disseminated Intravascular Coagulation in an inpatient or ER setting with no events in prior 365 day window; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436093; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-25","rao@ohdsi.org","Disseminated intravascular coagulation DIC in inpatient visit",,"Disseminated intravascular coagulation DIC in inpatient visit","Pending peer review","","events of Disseminated Intravascular Coagulation in an inpatient or ER setting with no events in prior 365 day window","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436093","","",,,,,,248,248 -249,"[P] Ischemic (Non-hemorrhagic) Stroke In Inpatient",249,"cohortNameLong : Ischemic (Non-hemorrhagic) Stroke In Inpatient; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of cerebral infarction while in an inpatient or ER setting; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 443454; -ohdsiForumPost : ; -replaces : ; -","2022-11-12","2023-09-25","rao@ohdsi.org","Ischemic (Non-hemorrhagic) Stroke In Inpatient",,"Ischemic (Non-hemorrhagic) Stroke In Inpatient","Pending peer review","","events of cerebral infarction while in an inpatient or ER setting","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443454","","",,,,,,249,249 -251,"[P] Acute pancreatitis",251,"cohortNameLong : Acute pancreatitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of acute pancreatitis in an inpatient or emergency setting and no history of chronic pancreatitis or hereditary or congenital pancreatitis; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4192640, 199074; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848; -replaces : ; -","2022-11-15","2023-09-25","rao@ohdsi.org","Acute pancreatitis",,"Acute pancreatitis","Pending peer review","","events of acute pancreatitis in an inpatient or emergency setting and no history of chronic pancreatitis or hereditary or congenital pancreatitis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4192640, 199074","https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848","",,,,,,251,251 -253,"[P] Drug Induced Acute pancreatitis",253,"cohortNameLong : Drug Induced Acute pancreatitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of acute pancreatitis in an inpatient or emergency setting with no events in prior washout window of 365 days, and no history of chronic pancreatitis or hereditary or congenital pancreatitis. Events with other explanations for acute pancreatitis such as alcoholic pancreatitis, severe alcoholism, recent alcohol intoxication, cholangitis or cholecystitits, biliary tract disease, endoscopic retrograde cholangiopancreatography, intestinal ischemia or obstruction or not eligible; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4192640, 199074, 4340961; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848; -replaces : ; -","2022-11-15","2023-09-25","rao@ohdsi.org","Drug Induced Acute pancreatitis",,"Drug Induced Acute pancreatitis","Pending peer review","","events of acute pancreatitis in an inpatient or emergency setting with no events in prior washout window of 365 days, and no history of chronic pancreatitis or hereditary or congenital pancreatitis. Events with other explanations for acute pancreatitis such as alcoholic pancreatitis, severe alcoholism, recent alcohol intoxication, cholangitis or cholecystitits, biliary tract disease, endoscopic retrograde cholangiopancreatography, intestinal ischemia or obstruction or not eligible","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4192640, 199074, 4340961","https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848","",,,,,,253,253 -254,"[P] Drug Resistant Epilepsy",254,"cohortNameLong : Drug Resistant Epilepsy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : first occurrence of epilepsy in inpatient, of subsequent epilepsy in an outpatient setting after another outpatient epilepsy visit more than 30 days before, or anti-epileptic drug on or after a diagnosis of epilepsy. Limit to persons with at least two different anti epilepsy drug or diagnosis of intractable epilepsy on or after index date; -hashTag : ; -contributors : Mathew Spotnitz; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377091, 380378, 4029498; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-drug-resistant-epilepsy/17569; -replaces : ; -","2022-11-17","2023-09-19","rao@ohdsi.org","Drug Resistant Epilepsy",,"Drug Resistant Epilepsy","Pending peer review","","first occurrence of epilepsy in inpatient, of subsequent epilepsy in an outpatient setting after another outpatient epilepsy visit more than 30 days before, or anti-epileptic drug on or after a diagnosis of epilepsy. Limit to persons with at least two different anti epilepsy drug or diagnosis of intractable epilepsy on or after index date","","Mathew Spotnitz","","","","","377091, 380378, 4029498","https//forums.ohdsi.org/t/phenotype-submission-drug-resistant-epilepsy/17569","",,,,,,254,254 -255,"[P] Alzheimer's disease (based on Imfeld, 2013)",255,"cohortNameLong : Alzheimer's disease (based on Imfeld, 2013); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : this is an approximation of algorithm published by Imfeld et.al 2013; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 378419, 4182210; -ohdsiForumPost : ; -replaces : ; -","2022-11-18","2023-09-19","rao@ohdsi.org","Alzheimer's disease (based on Imfeld, 2013)",,"Alzheimer's disease (based on Imfeld, 2013)","Pending peer review","","this is an approximation of algorithm published by Imfeld et.al 2013","","","","","","","378419, 4182210","","",,,,,,255,255 -256,"[P] Facial Palsy lower motor neuron including Bells Palsy",256,"cohortNameLong : Facial Palsy lower motor neuron including Bells Palsy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of facial palsy with 183 days washout period. Remove persons with congenital facial palsy. Remove events with upper motor neuron disease suggestive of stroke; -hashTag : #AESI; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374923, 4091559; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-facial-palsy-lmn-including-bells-palsy-thats-not-umn/17788; -replaces : ; -","2022-11-22","2023-09-21","rao@ohdsi.org","Facial Palsy lower motor neuron including Bells Palsy",,"Facial Palsy lower motor neuron including Bells Palsy","Pending peer review","","events of facial palsy with 183 days washout period. Remove persons with congenital facial palsy. Remove events with upper motor neuron disease suggestive of stroke","#AESI","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 4091559","https//forums.ohdsi.org/t/phenotype-submission-facial-palsy-lmn-including-bells-palsy-thats-not-umn/17788","",,,,,,256,256 -257,"[P] Emergency room visits or code",257,"cohortNameLong : Emergency room visits or code; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Emergency Room visits or code; -hashTag : #Visits; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2022-11-22","2023-09-19","rao@ohdsi.org","Emergency room visits or code",,"Emergency room visits or code","Pending peer review","","All events of Emergency Room visits or code","#Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,257,257 -258,"[P] Anaphylaxis or Anaphylactic shock events",258,"cohortNameLong : Anaphylaxis or Anaphylactic shock events; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of anaphylaxis or anaphylaxis shock due to serum with no events in prior clean window; -hashTag : ; -contributors : Erica Voss; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441202; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-24-anaphylaxis/16033; -replaces : ; -","2022-11-28","2023-09-19","rao@ohdsi.org","Anaphylaxis or Anaphylactic shock events",,"Anaphylaxis or Anaphylactic shock events","Pending peer review","","all events of anaphylaxis or anaphylaxis shock due to serum with no events in prior clean window","","Erica Voss","","","","","441202","https//forums.ohdsi.org/t/phenotype-phebruary-day-24-anaphylaxis/16033","",,,,,,258,258 -259,"[P] Anaphylaxis all cause",259,"cohortNameLong : Anaphylaxis all cause; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of anaphylaxis; -hashTag : ; -contributors : Gowtham A. Rao, Andrea Noel; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441202; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebrurary-2023-p2-anaphylaxis/18193; -replaces : ; -","2022-11-28","2023-09-25","rao@ohdsi.org","Anaphylaxis all cause",,"Anaphylaxis all cause","Pending peer review","","all events of anaphylaxis","","Gowtham A. Rao, Andrea Noel","'0000-0002-4949-7236'","'OHDSI'","","","441202","https//forums.ohdsi.org/t/phenotype-phebrurary-2023-p2-anaphylaxis/18193","",,,,,,259,259 -260,"[P] ST elevated myocardial infarction with inpatient admission",260,"cohortNameLong : ST elevated myocardial infarction with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of ST segment acute myocardial infarction in an inpatient or ER visit; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314666, 4296653, 4329847; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; -replaces : ; -","2022-11-29","2023-09-25","rao@ohdsi.org","ST elevated myocardial infarction with inpatient admission",,"ST elevated myocardial infarction with inpatient admission","Pending peer review","","all events of ST segment acute myocardial infarction in an inpatient or ER visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4296653, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,260,260 -261,"[P] Non ST elevated myocardial infarction with inpatient admission",261,"cohortNameLong : Non ST elevated myocardial infarction with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Non ST segment acute myocardial infarction in an inpatient or ER visit; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314666, 4329847; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; -replaces : ; -","2022-11-29","2023-09-25","rao@ohdsi.org","Non ST elevated myocardial infarction with inpatient admission",,"Non ST elevated myocardial infarction with inpatient admission","Pending peer review","","all events of Non ST segment acute myocardial infarction in an inpatient or ER visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,261,261 -262,"[P] Unstable Angina with inpatient admission",262,"cohortNameLong : Unstable Angina with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Unstable Angina in an inpatient or ER visit; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 315296; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; -replaces : ; -","2022-11-29","2023-09-19","rao@ohdsi.org","Unstable Angina with inpatient admission",,"Unstable Angina with inpatient admission","Pending peer review","","all events of Unstable Angina in an inpatient or ER visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","315296","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,262,262 -263,"[P] Unstable Angina OR NSTEMI with inpatient admission",263,"cohortNameLong : Unstable Angina OR NSTEMI with inpatient admission; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Unstable Angina or NSTEMI in an inpatient or ER visit; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314666, 4329847; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; -replaces : ; -","2022-11-29","2023-09-19","rao@ohdsi.org","Unstable Angina OR NSTEMI with inpatient admission",,"Unstable Angina OR NSTEMI with inpatient admission","Pending peer review","","all events of Unstable Angina or NSTEMI in an inpatient or ER visit","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,263,263 -264,"[P] Acute Hepatic Failure in persons with liver disease",264,"cohortNameLong : Acute Hepatic Failure in persons with liver disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Events of Hepatic Failure. Persons should have prior liver disease; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2022-11-29","2023-09-19","rao@ohdsi.org","Acute Hepatic Failure in persons with liver disease",,"Acute Hepatic Failure in persons with liver disease","Pending peer review","","Events of Hepatic Failure. Persons should have prior liver disease","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","",,,,,,264,264 -265,"[P] Drug Induced Acute Hepatic Failure",265,"cohortNameLong : Drug Induced Acute Hepatic Failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : first occurrence of Hepatic Failure and no other liver problems in past; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2022-11-29","2023-09-19","rao@ohdsi.org","Drug Induced Acute Hepatic Failure",,"Drug Induced Acute Hepatic Failure","Pending peer review","","first occurrence of Hepatic Failure and no other liver problems in past","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","",,,,,,265,265 -267,"[P] Acute Kidney Injury AKI, in persons with chronic kidney disease",267,"cohortNameLong : Acute Kidney Injury AKI, in persons with chronic kidney disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute Kidney Injury with washout period of 30 days. Persons should have chronic kidney disease that is is not ESKD, and should be not on chronic dialysis or had kidney transplant. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index; -hashTag : #DME; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197320; -ohdsiForumPost : ; -replaces : ; -","2022-11-29","2023-09-19","rao@ohdsi.org","Acute Kidney Injury AKI, in persons with chronic kidney disease",,"Acute Kidney Injury AKI, in persons with chronic kidney disease","Pending peer review","","all events of Acute Kidney Injury with washout period of 30 days. Persons should have chronic kidney disease that is is not ESKD, and should be not on chronic dialysis or had kidney transplant. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","#DME","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","","",,,,,,267,267 -268,"[P] Acute Kidney Injury AKI, in persons with NO chronic kidney disease",268,"cohortNameLong : Acute Kidney Injury AKI, in persons with NO chronic kidney disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute Kidney Injury with washout period of 30 days. Persons should have chronic kidney disease that is is not ESKD, and should be not on chronic dialysis or had kidney transplant. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197320; -ohdsiForumPost : ; -replaces : ; -","2022-11-29","2023-09-19","rao@ohdsi.org","Acute Kidney Injury AKI, in persons with NO chronic kidney disease",,"Acute Kidney Injury AKI, in persons with NO chronic kidney disease","Pending peer review","","all events of Acute Kidney Injury with washout period of 30 days. Persons should have chronic kidney disease that is is not ESKD, and should be not on chronic dialysis or had kidney transplant. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","","",,,,,,268,268 -269,"[D] Acute Kidney Injury AKI",269,"cohortNameLong : Acute Kidney Injury AKI; -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.8.0; -logicDescription : This accepted cohort was Deprecated because the rule to exclude no chronic dialysis was incorrect. This definition was replaced by 362. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index; -hashTag : #PhenotypePhebruary, #2022; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197320; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-29-acute-kidney-injury/16067; -replaces : ; -","2022-11-29","2023-09-19","rao@ohdsi.org","Acute Kidney Injury AKI",,"Acute Kidney Injury AKI","Accepted","3.8.0","This accepted cohort was Deprecated because the rule to exclude no chronic dialysis was incorrect. This definition was replaced by 362. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","#PhenotypePhebruary, #2022","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","https//forums.ohdsi.org/t/phenotype-phebruary-day-29-acute-kidney-injury/16067","",,,,,,269,269 -270,"[P] Hemolytic Anemia",270,"cohortNameLong : Hemolytic Anemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of hemolytic anemia, indexed on anemia or hemolysis; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435503, 439777, 441269; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; -replaces : ; -","2022-11-30","2023-09-19","rao@ohdsi.org","Hemolytic Anemia",,"Hemolytic Anemia","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,270,270 -271,"[P] Hemolytic Anemia Intra corpuscular",271,"cohortNameLong : Hemolytic Anemia Intra corpuscular; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, enzyme or RBC structure; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435503, 439777, 441269; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; -replaces : ; -","2022-11-30","2023-09-19","rao@ohdsi.org","Hemolytic Anemia Intra corpuscular",,"Hemolytic Anemia Intra corpuscular","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, enzyme or RBC structure","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,271,271 -273,"[P] Pathological Ventricular Tachycardia",273,"cohortNameLong : Pathological Ventricular Tachycardia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of ventricular tachycardia with hospitalization. note - the use of ventricular tachycardia is thought to imply pathological tachycardia vs. simple tachycardia; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 437579, 4103295; -ohdsiForumPost : ; -replaces : ; -","2022-12-06","2023-09-19","rao@ohdsi.org","Pathological Ventricular Tachycardia",,"Pathological Ventricular Tachycardia","Pending peer review","","all events of ventricular tachycardia with hospitalization. note - the use of ventricular tachycardia is thought to imply pathological tachycardia vs. simple tachycardia","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437579, 4103295","","",,,,,,273,273 -274,"[P] Cardiac arrest or Pathological Ventricular tachycardia",274,"cohortNameLong : Cardiac arrest or Pathological Ventricular tachycardia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Cardiac arrest or Pathological Ventricular tachycardia with inpatient stay; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 321042, 437579, 4103295; -ohdsiForumPost : ; -replaces : ; -","2022-12-06","2023-09-19","rao@ohdsi.org","Cardiac arrest or Pathological Ventricular tachycardia",,"Cardiac arrest or Pathological Ventricular tachycardia","Pending peer review","","Cardiac arrest or Pathological Ventricular tachycardia with inpatient stay","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321042, 437579, 4103295","","",,,,,,274,274 -275,"[P] Polymorphic Ventricular Tachycardia or Torsades de Pointes",275,"cohortNameLong : Polymorphic Ventricular Tachycardia or Torsades de Pointes; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Polymorphic Ventricular Tachycardia or Torsades de Pointes; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4088349, 4135823; -ohdsiForumPost : ; -replaces : ; -","2022-12-06","2024-09-11","rao@ohdsi.org","Polymorphic Ventricular Tachycardia or Torsades de Pointes",,"Polymorphic Ventricular Tachycardia or Torsades de Pointes","Pending peer review","","Polymorphic Ventricular Tachycardia or Torsades de Pointes","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","4088349, 4135823","","",,,,,,275,275 -276,"[P] Sudden Vision Loss",276,"cohortNameLong : Sudden Vision Loss; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Vision Loss, indexed on diagnosis of Vision Loss. With 1. no such events in prior washout window of 365 days 2. and no history of other pathological eye disease such as glaucoma, infections and others in 365 days to 1 day prior index. cohort exits is 90 days after cohort end date.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377556; -ohdsiForumPost : ; -replaces : ; -","2022-12-08","2024-09-11","rao@ohdsi.org","Sudden Vision Loss",,"Sudden Vision Loss","Pending peer review","","all events of Vision Loss, indexed on diagnosis of Vision Loss. With 1. no such events in prior washout window of 365 days 2. and no history of other pathological eye disease such as glaucoma, infections and others in 365 days to 1 day prior index. cohort exits is 90 days after cohort end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","377556","","",,,,,,276,276 -277,"[P] Sudden Hearing Loss",277,"cohortNameLong : Sudden Hearing Loss; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Sudden Hearing Loss or hearing loss that is managed by corticosteroids, imaging of head or multiple hearing exams after among persons without congenital, middle or inner ear disease and no past hearing tests; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374053, 377889; -ohdsiForumPost : ; -replaces : ; -","2022-12-08","2023-09-19","rao@ohdsi.org","Sudden Hearing Loss",,"Sudden Hearing Loss","Pending peer review","","all events of Sudden Hearing Loss or hearing loss that is managed by corticosteroids, imaging of head or multiple hearing exams after among persons without congenital, middle or inner ear disease and no past hearing tests","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","374053, 377889","","",,,,,,277,277 -278,"[P] Pain or ache that is Non Chronic",278,"cohortNameLong : Pain or ache that is Non Chronic; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of non chronic non generalized or diffuse pain; -hashTag : #Symptoms, #Pain; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 138525, 194133; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-01-04","2023-09-25","rao@ohdsi.org","Pain or ache that is Non Chronic",,"Pain or ache that is Non Chronic","Pending peer review","","all events of non chronic non generalized or diffuse pain","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138525, 194133","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,278,278 -279,"[P] Low Back Pain or injury",279,"cohortNameLong : Low Back Pain or injury; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of low back pain; -hashTag : #Symptoms, #Pain; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 134736, 194133; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-01-04","2023-09-25","rao@ohdsi.org","Low Back Pain or injury",,"Low Back Pain or injury","Pending peer review","","all events of low back pain","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134736, 194133","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,279,279 -280,"[P] Abdominal Pain or acute abdomen",280,"cohortNameLong : Abdominal Pain or acute abdomen; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of abdominal pain; -hashTag : #Symptoms, #Pain; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 200219; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-01-04","2023-09-25","rao@ohdsi.org","Abdominal Pain or acute abdomen",,"Abdominal Pain or acute abdomen","Pending peer review","","all events of abdominal pain","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200219","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,280,280 -281,"[P] Epigastric Pain",281,"cohortNameLong : Epigastric Pain; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of epigastric pain; -hashTag : #Symptoms, #Pain; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197381, 4306292; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-01-04","2023-09-25","rao@ohdsi.org","Epigastric Pain",,"Epigastric Pain","Pending peer review","","all events of epigastric pain","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197381, 4306292","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,281,281 -282,"[P] Joint Pain",282,"cohortNameLong : Joint Pain; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of joint pain; -hashTag : #Symptoms, #Pain; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 78232, 80180; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-01-04","2023-09-25","rao@ohdsi.org","Joint Pain",,"Joint Pain","Pending peer review","","all events of joint pain","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","78232, 80180","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,282,282 -283,"[P] Prostatitis",283,"cohortNameLong : Prostatitis; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : All events of prostatits that is either a first occurrence of chronic prostatitis, or did not have an event of prostatitis in past 1 year, with no testicular lesions, bladder neoplasm or abdominal or inguinal hernia in prior 1 year. cohort end 180 days post cohort end date; -hashTag : #Submitted; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194997; -ohdsiForumPost : ; -replaces : ; -","2023-01-13","2023-09-19","rao@ohdsi.org","Prostatitis",,"Prostatitis","Pending","","All events of prostatits that is either a first occurrence of chronic prostatitis, or did not have an event of prostatitis in past 1 year, with no testicular lesions, bladder neoplasm or abdominal or inguinal hernia in prior 1 year. cohort end 180 days post cohort end date","#Submitted","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194997","","",,,,,,283,283 -284,"[P] Myocarditis or Pericarditis",284,"cohortNameLong : Myocarditis or Pericarditis; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : All events of Myocarditis or Pericarditis; -hashTag : #Submitted; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 320116, 4138837; -ohdsiForumPost : ; -replaces : ; -","2023-01-14","2023-09-19","rao@ohdsi.org","Myocarditis or Pericarditis",,"Myocarditis or Pericarditis","Pending","","All events of Myocarditis or Pericarditis","#Submitted","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320116, 4138837","","",,,,,,284,284 -285,"[P] Myocarditis or Pericarditis Not due to infections",285,"cohortNameLong : Myocarditis or Pericarditis Not due to infections; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : All events of Myocarditis or Pericarditis without events that are due to Infectious Etiology; -hashTag : #Submitted; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 320116, 4138837; -ohdsiForumPost : ; -replaces : ; -","2023-01-14","2023-09-19","rao@ohdsi.org","Myocarditis or Pericarditis Not due to infections",,"Myocarditis or Pericarditis Not due to infections","Pending","","All events of Myocarditis or Pericarditis without events that are due to Infectious Etiology","#Submitted","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320116, 4138837","","",,,,,,285,285 -287,"[P] Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica",287,"cohortNameLong : Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, OR related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days OR events of myelitis unspecified with weakness or asthenia, neuromyelitis optica with weakness or asthenia. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia; -hashTag : #Sensitivity; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : Evan Minty; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 79908, 138965, 139803, 380995, 443904; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; -replaces : ; -","2023-01-17","2023-09-19","rao@ohdsi.org","Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica",,"Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica","Pending","","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, OR related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days OR events of myelitis unspecified with weakness or asthenia, neuromyelitis optica with weakness or asthenia. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Sensitivity","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 138965, 139803, 380995, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,287,287 -288,"[P] Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results",288,"cohortNameLong : Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest event of Type 2 Diabetes Mellitus (DM), indexed on diagnosis or Blood glucose lowering drugs excluding insulin or high Hemoglobin A1c (limited to treatments or measurement that are followed with Type 2 DM diagnosis within 365 days) excluding persons with Type 1 DM or secondary diabetes mellitus in the all time prior including index date; -hashTag : #Disease; -contributors : Patrick Ryan, Jill Hardin; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201820, 201826; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-1-type-2-diabetes-mellitus/15764; -replaces : ; -","2023-01-25","2023-09-20","rao@ohdsi.org","Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results",,"Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results","Pending","","Earliest event of Type 2 Diabetes Mellitus (DM), indexed on diagnosis or Blood glucose lowering drugs excluding insulin or high Hemoglobin A1c (limited to treatments or measurement that are followed with Type 2 DM diagnosis within 365 days) excluding persons with Type 1 DM or secondary diabetes mellitus in the all time prior including index date","#Disease","Patrick Ryan, Jill Hardin","","","","","201820, 201826","https//forums.ohdsi.org/t/phenotype-phebruary-day-1-type-2-diabetes-mellitus/15764","",,,,,,288,288 -289,"[P] Presence Of Cardiac Arrhythmia",289,"cohortNameLong : Presence Of Cardiac Arrhythmia; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : All events of Cardiac arrythmia or treatments for cardiac arrythmia; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313217, 44784217; -ohdsiForumPost : ; -replaces : ; -","2023-01-26","2023-09-25","rao@ohdsi.org","Presence Of Cardiac Arrhythmia",,"Presence Of Cardiac Arrhythmia","Pending","","All events of Cardiac arrythmia or treatments for cardiac arrythmia","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 44784217","","",,,,,,289,289 -290,"[P] Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment",290,"cohortNameLong : Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of thyroiditis, indexed on an occurrence of Thyroiditis (including hypo and hyperthyroidism) condition or exposure to levothyroxine (limited to drug exposure that occurred within 365 days prior to an occurrence of Thyroiditis condition). Limited to events that had zero condition occurrence of Hypothyroidism other than Hashimoto's Disease (ie excluding alternative causes of hypothyroidism) all time prior and including index; -hashTag : #Disease; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 138384, 140673; -ohdsiForumPost : ; -replaces : ; -","2023-01-26","2023-09-25","rao@ohdsi.org","Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment",,"Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment","Pending peer review","","All events of thyroiditis, indexed on an occurrence of Thyroiditis (including hypo and hyperthyroidism) condition or exposure to levothyroxine (limited to drug exposure that occurred within 365 days prior to an occurrence of Thyroiditis condition). Limited to events that had zero condition occurrence of Hypothyroidism other than Hashimoto's Disease (ie excluding alternative causes of hypothyroidism) all time prior and including index","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138384, 140673","","",,,,,,290,290 -291,"[P] Gynecomastia, indexed on diagnosis, procedure or symptoms",291,"cohortNameLong : Gynecomastia, indexed on diagnosis, procedure or symptoms; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : All events of Gynecomastia diagnosis, indexed on a diagnosis of Gynecomastia or a procedure of Mastectomy for gynecomastia or a presentation/symptoms of Gynecomastia (breast lump or pain). Events indexed on a procedures or symptoms are required to be followed by a diagnosis within a year; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 78474, 80767, 137809; -ohdsiForumPost : ; -replaces : ; -","2023-01-26","2023-09-25","rao@ohdsi.org","Gynecomastia, indexed on diagnosis, procedure or symptoms",,"Gynecomastia, indexed on diagnosis, procedure or symptoms","Pending","","All events of Gynecomastia diagnosis, indexed on a diagnosis of Gynecomastia or a procedure of Mastectomy for gynecomastia or a presentation/symptoms of Gynecomastia (breast lump or pain). Events indexed on a procedures or symptoms are required to be followed by a diagnosis within a year","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","78474, 80767, 137809","","",,,,,,291,291 -292,"[P] Acute Hepatic Failure in persons without chronic hepatic failure",292,"cohortNameLong : Hepatic Failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of acute hepatic failure. no chronic hepatic failure; -hashTag : #Disease; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2023-01-26","2023-09-25","rao@ohdsi.org","Acute Hepatic Failure in persons without chronic hepatic failure",,"Hepatic Failure","Pending peer review","","all events of acute hepatic failure. no chronic hepatic failure","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","",,,,,,292,292 -293,"[P] Acute Hepatic Injury or inpatient jaundice",293,"cohortNameLong : Acute Hepatic Injury with no chronic hepatic failure; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, with no chronic hepatic failure. Sequela of chronic liver disease maps to codes that historically were used for acute liver injury; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194990; -ohdsiForumPost : ; -replaces : ; -","2023-01-26","2023-09-25","rao@ohdsi.org","Acute Hepatic Injury or inpatient jaundice",,"Acute Hepatic Injury with no chronic hepatic failure","Pending","","All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, with no chronic hepatic failure. Sequela of chronic liver disease maps to codes that historically were used for acute liver injury","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194990","","",,,,,,293,293 -294,"[P] Acute Hepatic Injury with no pre-existing liver disease",294,"cohortNameLong : Acute Hepatic Injury with no pre-existing liver disease; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest event of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury. Patients are excluded if they have a diagnosis of chronic hepatic failure any time in the past or on the same day. Also excluded patients who have other prior liver disease such as viral hepatitis, Liver Cirrhosis, liver fibrosis, alcoholic and others anytime prior including index; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194990; -ohdsiForumPost : ; -replaces : ; -","2023-01-26","2023-09-25","rao@ohdsi.org","Acute Hepatic Injury with no pre-existing liver disease",,"Acute Hepatic Injury with no pre-existing liver disease","Pending","","Earliest event of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury. Patients are excluded if they have a diagnosis of chronic hepatic failure any time in the past or on the same day. Also excluded patients who have other prior liver disease such as viral hepatitis, Liver Cirrhosis, liver fibrosis, alcoholic and others anytime prior including index","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194990","","",,,,,,294,294 -295,"[P] Acute Hepatic Failure in persons with no pre-existing liver disease",295,"cohortNameLong : Acute Hepatic Failure in persons with no pre-existing liver disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Event of hepatic Failure, indexed on the diagnosis of Hepatic Failure. Patients are excluded if they have a diagnosis of chronic hepatic failure any time in the past or on the same day. Also excluded patients who have other prior liver disease such as viral hepatitis, Liver Cirrhosis, liver fibrosis, alcoholic and others anytime prior including index; -hashTag : #Submitted; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2023-01-26","2023-09-19","rao@ohdsi.org","Acute Hepatic Failure in persons with no pre-existing liver disease",,"Acute Hepatic Failure in persons with no pre-existing liver disease","Pending peer review","","Event of hepatic Failure, indexed on the diagnosis of Hepatic Failure. Patients are excluded if they have a diagnosis of chronic hepatic failure any time in the past or on the same day. Also excluded patients who have other prior liver disease such as viral hepatitis, Liver Cirrhosis, liver fibrosis, alcoholic and others anytime prior including index","#Submitted","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","",,,,,,295,295 -296,"Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era)",296,"cohortNameLong : Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era); -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.9.0; -logicDescription : events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia; -hashTag : #Accepted, #Level2; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : Evan Minty; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 79908, 139803, 443904; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; -replaces : ; -","2023-01-26","2023-09-19","rao@ohdsi.org","Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era)",,"Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era)","Accepted","3.9.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 139803, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,296,296 -298,"[P] Urinary bleed events in persons without renal glomerular disease",298,"cohortNameLong : Urinary bleed events in persons without renal glomerular disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of urinary bleeds in persons with no recent kidney biopsy, no chronic kidney disease or recent renal glomerular disease; -hashTag : #Symptoms, #urinary; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 79864, 437038; -ohdsiForumPost : ; -replaces : ; -","2023-02-02","2023-09-25","rao@ohdsi.org","Urinary bleed events in persons without renal glomerular disease",,"Urinary bleed events in persons without renal glomerular disease","Pending peer review","","all events of urinary bleeds in persons with no recent kidney biopsy, no chronic kidney disease or recent renal glomerular disease","#Symptoms, #urinary","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","79864, 437038","","",,,,,,298,298 -299,"[P] Acute gastrointestinal bleeding or perforation events",299,"cohortNameLong : Acute gastrointestinal bleeding or perforation events; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of gastrointestinal bleed or perforation; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192671; -ohdsiForumPost : ; -replaces : ; -","2023-02-02","2023-09-25","rao@ohdsi.org","Acute gastrointestinal bleeding or perforation events",,"Acute gastrointestinal bleeding or perforation events","Pending peer review","","all events of gastrointestinal bleed or perforation","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671","","",,,,,,299,299 -300,"[P] Heavy menstrual bleeding (menorrhagia) events",300,"cohortNameLong : Heavy menstrual bleeding (menorrhagia) events; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197607, 4302555; -ohdsiForumPost : ; -replaces : ; -","2023-02-02","2023-09-25","rao@ohdsi.org","Heavy menstrual bleeding (menorrhagia) events",,"Heavy menstrual bleeding (menorrhagia) events","Pending peer review","","","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197607, 4302555","","",,,,,,300,300 -304,"Neurofibromatosis type 1 (FP)",304,"cohortNameLong : Neurofibromatosis type 1 (FP); -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.12.0; -logicDescription : ; -hashTag : #PhenotypePhebruary, #2023, #Neurofibromatosis; -contributors : Maxim Moinat; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377252; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; -replaces : ; -","2023-02-07","2023-09-19","rao@ohdsi.org","Neurofibromatosis type 1 (FP)",,"Neurofibromatosis type 1 (FP)","Accepted","3.12.0","","#PhenotypePhebruary, #2023, #Neurofibromatosis","Maxim Moinat","","","","","377252","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,304,304 -305,"Neurofibromatosis type 1 without Type 2 (FP)",305,"cohortNameLong : Neurofibromatosis type 1 without Type 2 (FP); -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.12.0; -logicDescription : Persons with Neurofibromatosis without a diagnosis of NF2, vestibular schwannoma or hearing problems. Not all data sources capture NF subtype (e.g. when using ICD10), so to select NF1 we exclude diagnoses that give a suspicion of NF2 (affecting auditory system); -hashTag : #PhenotypePhebruary, #2023, #Neurofibromatosis; -contributors : Maxim Moinat; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 376938; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; -replaces : ; -","2023-02-07","2023-09-19","rao@ohdsi.org","Neurofibromatosis type 1 without Type 2 (FP)",,"Neurofibromatosis type 1 without Type 2 (FP)","Accepted","3.12.0","Persons with Neurofibromatosis without a diagnosis of NF2, vestibular schwannoma or hearing problems. Not all data sources capture NF subtype (e.g. when using ICD10), so to select NF1 we exclude diagnoses that give a suspicion of NF2 (affecting auditory system)","#PhenotypePhebruary, #2023, #Neurofibromatosis","Maxim Moinat","","","","","376938","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,305,305 -306,"Optical pathway glioma and neurofibromatosis (FP)",306,"cohortNameLong : Optical pathway glioma and neurofibromatosis (FP); -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.12.0; -logicDescription : Persons with an optic nerve glioma and diagnosis of neurofibromatosis anytime in persons history. This would be the preferred code for an OPG; -hashTag : #PhenotypePhebruary, #2023, #Neurofibromatosis; -contributors : Maxim Moinat; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4112970; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; -replaces : ; -","2023-02-07","2023-09-19","rao@ohdsi.org","Optical pathway glioma and neurofibromatosis (FP)",,"Optical pathway glioma and neurofibromatosis (FP)","Accepted","3.12.0","Persons with an optic nerve glioma and diagnosis of neurofibromatosis anytime in persons history. This would be the preferred code for an OPG","#PhenotypePhebruary, #2023, #Neurofibromatosis","Maxim Moinat","","","","","4112970","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,306,306 -307,"Optical pathway glioma or non mal neoplasm of optic nerve w nf",307,"cohortNameLong : Optical pathway glioma or non malignant neoplasm of optic nerve w neurofibromatosis; -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.12.0; -logicDescription : Persons with an optic nerve glioma OR neoplasm of optic nerve, and a diagnosis of neurofibromatosis anytime in persons history; -hashTag : #PhenotypePhebruary, #2023, #Neurofibromatosis; -contributors : Maxim Moinat; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4216000, 4246137; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; -replaces : ; -","2023-02-07","2023-09-19","rao@ohdsi.org","Optical pathway glioma or non mal neoplasm of optic nerve w nf",,"Optical pathway glioma or non malignant neoplasm of optic nerve w neurofibromatosis","Accepted","3.12.0","Persons with an optic nerve glioma OR neoplasm of optic nerve, and a diagnosis of neurofibromatosis anytime in persons history","#PhenotypePhebruary, #2023, #Neurofibromatosis","Maxim Moinat","","","","","4216000, 4246137","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,307,307 -308,"Optical pathway glioma with MRI imaging and ophth visits NF",308,"cohortNameLong : Optical pathway glioma with MRI imaging and ophthalmology visits Neurofibromatosis; -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.12.0; -logicDescription : Persons with neurofibromatosis, that also had one MRI of the brain AND at least 3 ophthalmology visits within one year (anytime in persons history). In some centers, an OPG might be coded as general NF and needs to be inferred from follow-up care after diagnosis; -hashTag : #PhenotypePhebruary, #2023, #Neurofibromatosis; -contributors : Maxim Moinat; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 376938; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; -replaces : ; -","2023-02-07","2023-09-19","rao@ohdsi.org","Optical pathway glioma with MRI imaging and ophth visits NF",,"Optical pathway glioma with MRI imaging and ophthalmology visits Neurofibromatosis","Accepted","3.12.0","Persons with neurofibromatosis, that also had one MRI of the brain AND at least 3 ophthalmology visits within one year (anytime in persons history). In some centers, an OPG might be coded as general NF and needs to be inferred from follow-up care after diagnosis","#PhenotypePhebruary, #2023, #Neurofibromatosis","Maxim Moinat","","","","","376938","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,308,308 -311,"[P] Parasomnia",311,"cohortNameLong : Parasomnia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Parasomnia that may be expected to persist for atleast 30 days with events collapse 1 day after; -hashTag : ; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440087; -ohdsiForumPost : ; -replaces : ; -","2023-02-10","2023-09-23","rao@ohdsi.org","Parasomnia",,"Parasomnia","Pending peer review","","All events of Parasomnia that may be expected to persist for atleast 30 days with events collapse 1 day after","","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","","","","440087","","",,,,,,311,311 -318,"[P] Acute Hepatic Failure in persons without chronic hepatic failure on same day",318,"cohortNameLong : Acute Hepatic Failure in persons without chronic hepatic failure on same day; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of acute hepatic failure. If the persons also has chronic hepatic failure coded on the same day, they are excluded; -hashTag : #Disease; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2023-02-11","2023-09-19","rao@ohdsi.org","Acute Hepatic Failure in persons without chronic hepatic failure on same day",,"Acute Hepatic Failure in persons without chronic hepatic failure on same day","Pending peer review","","all events of acute hepatic failure. If the persons also has chronic hepatic failure coded on the same day, they are excluded","#Disease","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","",,,,,,318,318 -324,"[P] Pain",324,"cohortNameLong : Pain; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of pain; -hashTag : #Symptoms, #Pain; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 138525, 194133; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-02-12","2023-09-25","rao@ohdsi.org","Pain",,"Pain","Pending peer review","","all events of pain","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138525, 194133","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,324,324 -325,"[P] Inpatient Hospitalization By Site of care or type of service",325,"cohortNameLong : Inpatient Hospitalization By Site of care or type of service; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : All events of Inpatient visit defined by site of care (visit domain) or type of service (procedure or observation codes) within any of the main visit categories; -hashTag : #Visits; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-02-12","2023-09-19","rao@ohdsi.org","Inpatient Hospitalization By Site of care or type of service",,"Inpatient Hospitalization By Site of care or type of service","Pending","","All events of Inpatient visit defined by site of care (visit domain) or type of service (procedure or observation codes) within any of the main visit categories","#Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,325,325 -327,"[P][R] Pharyngitis ",327,"cohortNameLong : Pharyngitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pharyngitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 25297, 4226263; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-02-12","2023-09-19","rao@ohdsi.org","Pharyngitis",,"Pharyngitis","Pending peer review","","all events of Pharyngitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","25297, 4226263","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,327,327 -328,"[P] Wheezing",328,"cohortNameLong : Wheezing; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of wheezing; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314754; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-02-12","2023-09-25","rao@ohdsi.org","Wheezing",,"Wheezing","Pending peer review","","All events of wheezing","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314754","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,328,328 -330,"[P][R] Abdominal bloating ",330,"cohortNameLong : Abdominal bloating; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Abdominal bloating. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4023572; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-02-12","2023-09-19","rao@ohdsi.org","Abdominal bloating",,"Abdominal bloating","Pending peer review","","all events of Abdominal bloating. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4023572","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,330,330 -331,"[P] Encephalopathy",331,"cohortNameLong : Encephalopathy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events Encephalopathy; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 372892, 43021132; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-02-12","2023-09-25","rao@ohdsi.org","Encephalopathy",,"Encephalopathy","Pending peer review","","events Encephalopathy","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372892, 43021132","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,331,331 -332,"[P] Pain or ache that is Chronic",332,"cohortNameLong : Pain or ache that is Chronic; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of non chronic non generalized or diffuse pain; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 138525, 194133; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-02-12","2023-09-25","rao@ohdsi.org","Pain or ache that is Chronic",,"Pain or ache that is Chronic","Pending peer review","","all events of non chronic non generalized or diffuse pain","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138525, 194133","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,332,332 -333,"[P] Alcohol Use Disorder",333,"cohortNameLong : Alcohol Use Disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of abdominal pain; -hashTag : #Symptoms, #Drug; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435243, 36714559; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-02-12","2023-09-25","rao@ohdsi.org","Alcohol Use Disorder",,"Alcohol Use Disorder","Pending peer review","","all events of abdominal pain","#Symptoms, #Drug","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435243, 36714559","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,333,333 -334,"[P] Asthma",334,"cohortNameLong : Asthma; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of asthma diagnosis or therapy for asthma with a history of another asthma therapy more than 180 days before, or asthma diagnosis; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 317009; -ohdsiForumPost : ; -replaces : ; -","2023-02-12","2023-09-25","rao@ohdsi.org","Asthma",,"Asthma","Pending peer review","","All events of asthma diagnosis or therapy for asthma with a history of another asthma therapy more than 180 days before, or asthma diagnosis","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317009","","",,,,,,334,334 -335,"[P] Anxiety or Fear",335,"cohortNameLong : Anxiety or Fear; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Events of Anxiety or Fear; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441542, 442077; -ohdsiForumPost : ; -replaces : ; -","2023-02-12","2023-09-19","rao@ohdsi.org","Anxiety or Fear",,"Anxiety or Fear","Pending peer review","","Events of Anxiety or Fear","","","","","","","441542, 442077","","",,,,,,335,335 -339,"[P][R] Low blood pressure ",339,"cohortNameLong : Low blood pressure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Low blood pressure. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 317002; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-14","2023-09-19","rao@ohdsi.org","Low blood pressure",,"Low blood pressure","Pending peer review","","all events of Low blood pressure. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317002","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,339,339 -340,"[P] Hives, Erythema, Eruption, Urticaria",340,"cohortNameLong : Hives, Erythema, Eruption, Urticaria; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Hives, Erythema, Eruption, Urticaria; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 134438, 45766714; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-14","2023-09-25","rao@ohdsi.org","Hives, Erythema, Eruption, Urticaria",,"Hives, Erythema, Eruption, Urticaria","Pending peer review","","All events of Hives, Erythema, Eruption, Urticaria","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134438, 45766714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,340,340 -341,"[P] Loss of mentation including comma, syncope, altered consciousness",341,"cohortNameLong : Loss of mentation including comma, syncope, altered consciousness; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Disturbance of consciousness, loss of mentation including comma, syncope, altered consciousness; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 376961, 4206148; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-14","2023-09-25","rao@ohdsi.org","Loss of mentation including comma, syncope, altered consciousness",,"Loss of mentation including comma, syncope, altered consciousness","Pending peer review","","All events of Disturbance of consciousness, loss of mentation including comma, syncope, altered consciousness","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376961, 4206148","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,341,341 -342,"[P][R] Urinary incontinence",342,"cohortNameLong : Urinary incontinence; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Urinary incontinence. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197672; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-14","2023-09-25","rao@ohdsi.org","Urinary incontinence",,"Urinary incontinence","Pending peer review","","all events of Urinary incontinence. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197672","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,342,342 -343,"[P] Fecal Incontinence",343,"cohortNameLong : Fecal Incontinence; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Fecal Incontinence; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197675, 4101350; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-14","2023-09-25","rao@ohdsi.org","Fecal Incontinence",,"Fecal Incontinence","Pending peer review","","All events of Fecal Incontinence","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197675, 4101350","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,343,343 -344,"[P] Doctors office or clinic visit without other overlapping visits",344,"cohortNameLong : Doctors office or clinic visit without other overlapping visits; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Doctors office or clinic visit that does not overlap with inpatient, urgent care or emergency visit; -hashTag : #Visits; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-03-14","2023-09-25","rao@ohdsi.org","Doctors office or clinic visit without other overlapping visits",,"Doctors office or clinic visit without other overlapping visits","Pending peer review","","All events of Doctors office or clinic visit that does not overlap with inpatient, urgent care or emergency visit","#Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,344,344 -346,"[P] Non urgent outpatient visit without overlapping inpatient or emergency visit",346,"cohortNameLong : Non urgent outpatient visit without overlapping inpatient or emergency visit; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Doctors office or clinic visit that does not overlap with inpatient, urgent care or emergency visit. If a person has visits on consecutive days, they are collapsed into a spans of days; -hashTag : #Visits; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-03-14","2023-10-22","rao@ohdsi.org","Non urgent outpatient visit without overlapping inpatient or emergency visit",,"Non urgent outpatient visit without overlapping inpatient or emergency visit","Pending peer review","","All events of Doctors office or clinic visit that does not overlap with inpatient, urgent care or emergency visit. If a person has visits on consecutive days, they are collapsed into a spans of days","#Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,346,346 -347,"[P] Ambulance utilization",347,"cohortNameLong : Ambulance utilization; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Ambulance use; -hashTag : #Visits; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-03-14","2023-09-25","rao@ohdsi.org","Ambulance utilization",,"Ambulance utilization","Pending peer review","","All events of Ambulance use","#Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,347,347 -348,"[P][R] Blood in urine ",348,"cohortNameLong : Blood in urine; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Blood in urine. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 79864, 437038; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-15","2023-09-19","rao@ohdsi.org","Blood in urine",,"Blood in urine","Pending peer review","","all events of Blood in urine. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","79864, 437038","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,348,348 -349,"[P] Lower gastrointestinal bleeding events",349,"cohortNameLong : Lower gastrointestinal bleeding events; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of lower gastrointestinal bleed; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197925, 4245614; -ohdsiForumPost : ; -replaces : ; -","2023-03-15","2023-09-25","rao@ohdsi.org","Lower gastrointestinal bleeding events",,"Lower gastrointestinal bleeding events","Pending peer review","","all events of lower gastrointestinal bleed","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197925, 4245614","","",,,,,,349,349 -350,"[P][R] Hemoptysis",350,"cohortNameLong : Hemoptysis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hemoptysis. Persons exit on cohort end date; -hashTag : #Referent, #Condition, #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 261687; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-15","2023-09-28","rao@ohdsi.org","Hemoptysis",,"Hemoptysis","Pending peer review","","all events of Hemoptysis. Persons exit on cohort end date","#Referent, #Condition, #respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","261687","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,350,350 -351,"[P] Nasal Polyp present",351,"cohortNameLong : Nasal Polyp present; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of nasal polyp; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4209223, 4285898, 42537251; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-15","2023-09-25","rao@ohdsi.org","Nasal Polyp present",,"Nasal Polyp present","Pending peer review","","all events of nasal polyp","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4209223, 4285898, 42537251","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,351,351 -352,"[P][R] Inflamed tonsils ",352,"cohortNameLong : Inflamed tonsils; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Inflamed tonsils. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 24660, 4083666; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-15","2023-09-19","rao@ohdsi.org","Inflamed tonsils",,"Inflamed tonsils","Pending peer review","","all events of Inflamed tonsils. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24660, 4083666","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,352,352 -353,"[P][R] Conjunctivitis ",353,"cohortNameLong : Conjunctivitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Conjunctivitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 379019; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-15","2023-09-19","rao@ohdsi.org","Conjunctivitis",,"Conjunctivitis","Pending peer review","","all events of Conjunctivitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","379019","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,353,353 -354,"[P] Nasal Congestion or Rhinitis or Common Cold",354,"cohortNameLong : Nasal Congestion or Rhinitis or Common Cold; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Nasal Congestion or Rhinitis or Common Cold; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257007, 4320791; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-15","2023-09-25","rao@ohdsi.org","Nasal Congestion or Rhinitis or Common Cold",,"Nasal Congestion or Rhinitis or Common Cold","Pending peer review","","all events of Nasal Congestion or Rhinitis or Common Cold","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 4320791","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,354,354 -355,"[P] Laryngitis",355,"cohortNameLong : Laryngitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Laryngitis; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 24969, 260134; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-15","2023-09-25","rao@ohdsi.org","Laryngitis",,"Laryngitis","Pending peer review","","all events of Laryngitis","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24969, 260134","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,355,355 -356,"[P] Epistaxis",356,"cohortNameLong : Epistaxis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Epistaxis; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4096682; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-15","2023-09-25","rao@ohdsi.org","Epistaxis",,"Epistaxis","Pending peer review","","all events of Epistaxis","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4096682","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,356,356 -357,"[P][R] Pulmonary edema ",357,"cohortNameLong : Pulmonary edema; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pulmonary edema. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 261600, 4078925; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-15","2023-09-19","rao@ohdsi.org","Pulmonary edema",,"Pulmonary edema","Pending peer review","","all events of Pulmonary edema. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","261600, 4078925","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,357,357 -358,"[P] Acute Respiratory Failure among persons with no chronic respiratory failure",358,"cohortNameLong : Acute Respiratory Failure among persons with no chronic respiratory failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Acute Respiratory Failure among persons with no evidence of chronic respiratory failure in past 365 days; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 319049, 4256228; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-15","2023-09-25","rao@ohdsi.org","Acute Respiratory Failure among persons with no chronic respiratory failure",,"Acute Respiratory Failure among persons with no chronic respiratory failure","Pending peer review","","All events of Acute Respiratory Failure among persons with no evidence of chronic respiratory failure in past 365 days","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049, 4256228","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,358,358 -359,"[P] Acute Respiratory Failure",359,"cohortNameLong : Acute Respiratory Failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Acute Respiratory Failure; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 319049, 4256228; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-15","2023-09-25","rao@ohdsi.org","Acute Respiratory Failure",,"Acute Respiratory Failure","Pending peer review","","All events of Acute Respiratory Failure","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049, 4256228","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,359,359 -360,"[P] Pleural Effusion",360,"cohortNameLong : Pleural Effusion; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Pleural Effusion; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 254061; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-03-15","2023-09-25","rao@ohdsi.org","Pleural Effusion",,"Pleural Effusion","Pending peer review","","All events of Pleural Effusion","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254061","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,360,360 -361,"[P][R] Restless legs ",361,"cohortNameLong : Restless legs; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Restless legs. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 73754; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; -replaces : ; -","2023-04-25","2023-09-19","rao@ohdsi.org","Restless legs",,"Restless legs","Pending peer review","","all events of Restless legs. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","73754","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,361,361 -362,"Acute Kidney Injury AKI",362,"cohortNameLong : Acute Kidney Injury AKI; -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.8.0; -logicDescription : Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index; -hashTag : #PhenotypePhebruary, #2022, #DME; -contributors : Marcela V Rivera David Vizcaya; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197320; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-29-acute-kidney-injury/16067; -replaces : ; -","2023-04-25","2023-09-19","rao@ohdsi.org","Acute Kidney Injury AKI",,"Acute Kidney Injury AKI","Accepted","3.8.0","Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","#PhenotypePhebruary, #2022, #DME","Marcela V Rivera David Vizcaya","","","","","197320","https//forums.ohdsi.org/t/phenotype-phebruary-day-29-acute-kidney-injury/16067","",,,,,,362,362 -363,"[P][R] Joint stiffness ",363,"cohortNameLong : Joint stiffness; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Joint stiffness. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 72404, 72711; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-30","2023-09-19","rao@ohdsi.org","Joint stiffness",,"Joint stiffness","Pending peer review","","all events of Joint stiffness. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","72404, 72711","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,363,363 -364,"[P][R] Sleep disorder ",364,"cohortNameLong : Sleep disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Sleep disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435524, 442588; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-30","2023-09-19","rao@ohdsi.org","Sleep disorder",,"Sleep disorder","Pending peer review","","all events of Sleep disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435524, 442588","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,364,364 -365,"[P] Dysuria",365,"cohortNameLong : Dysuria; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Dysuria; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197684, 4021780; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-30","2023-09-25","rao@ohdsi.org","Dysuria",,"Dysuria","Pending peer review","","all events of Dysuria","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197684, 4021780","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,365,365 -366,"[P] Streptococcal throat infection",366,"cohortNameLong : Streptococcal throat infection; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Streptococcal throat infection; -hashTag : #respiratory; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 25297, 28060, 4226263; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Streptococcal throat infection",,"Streptococcal throat infection","Pending peer review","","All events of Streptococcal throat infection","#respiratory","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","25297, 28060, 4226263","","",,,,,,366,366 -367,"[P] Allergic Rhinitis",367,"cohortNameLong : Allergic Rhinitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Allergic rhinitis; -hashTag : #respiratory; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257007, 4320791; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Allergic Rhinitis",,"Allergic Rhinitis","Pending peer review","","All events of Allergic rhinitis","#respiratory","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 4320791","","",,,,,,367,367 -368,"[P][R] Sinusitis ",368,"cohortNameLong : Sinusitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Sinusitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 260123, 4283893; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Sinusitis",,"Sinusitis","Pending peer review","","all events of Sinusitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","260123, 4283893","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,368,368 -369,"[P][R] Allergic condition ",369,"cohortNameLong : Allergic condition; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Allergic condition. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257007, 43021227; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Allergic condition",,"Allergic condition","Pending peer review","","all events of Allergic condition. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 43021227","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,369,369 -370,"[P] Allergic disorder",370,"cohortNameLong : Allergic disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Allergic Disorder; -hashTag : #symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257007, 43021227; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Allergic disorder",,"Allergic disorder","Pending peer review","","All events of Allergic Disorder","#symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 43021227","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,370,370 -371,"[P] Claudication Pain",371,"cohortNameLong : Claudication Pain; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of claudication pain; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 195834, 317309, 442774; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Claudication Pain",,"Claudication Pain","Pending peer review","","all events of claudication pain","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","195834, 317309, 442774","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,371,371 -372,"[P] Otitis media",372,"cohortNameLong : Otitis media; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Otitis media; -hashTag : #respiratory; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 372328; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Otitis media",,"Otitis media","Pending peer review","","All events of Otitis media","#respiratory","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372328","","",,,,,,372,372 -373,"[P] Iron deficiency Anemia",373,"cohortNameLong : Iron deficiency Anemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of iron deficiency anemia; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439777; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Iron deficiency Anemia",,"Iron deficiency Anemia","Pending peer review","","all events of iron deficiency anemia","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439777","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,373,373 -374,"[P][R] Drug dependence ",374,"cohortNameLong : Drug dependence; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Drug dependence. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 437264, 440069; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Drug dependence",,"Drug dependence","Pending peer review","","all events of Drug dependence. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437264, 440069","","",,,,,,374,374 -375,"[P] Gall stone disorder",375,"cohortNameLong : Gall stone disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Gall stone; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 444367, 4145627; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Gall stone disorder",,"Gall stone disorder","Pending peer review","","all events of Gall stone","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","444367, 4145627","","",,,,,,375,375 -376,"[P][R] Bleeding skin ",376,"cohortNameLong : Bleeding skin; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Bleeding skin. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441259, 4177600; -ohdsiForumPost : Pending; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Bleeding skin",,"Bleeding skin","Pending peer review","","all events of Bleeding skin. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441259, 4177600","Pending","",,,,,,376,376 -377,"[P][R] Petechiae ",377,"cohortNameLong : Petechiae; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Petechiae. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4155911; -ohdsiForumPost : Pending; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Petechiae",,"Petechiae","Pending peer review","","all events of Petechiae. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4155911","Pending","",,,,,,377,377 -378,"[P][R] Purpuric disorder ",378,"cohortNameLong : Purpuric disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Purpuric disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441259, 4307580; -ohdsiForumPost : Pending; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Purpuric disorder",,"Purpuric disorder","Pending peer review","","all events of Purpuric disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441259, 4307580","Pending","",,,,,,378,378 -379,"[P] Ecchymosis",379,"cohortNameLong : Ecchymosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Ecchymosis anywhere; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 438252, 4118793; -ohdsiForumPost : Pending; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Ecchymosis",,"Ecchymosis","Pending peer review","","all events of Ecchymosis anywhere","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438252, 4118793","Pending","",,,,,,379,379 -380,"[P][R] Jaundice ",380,"cohortNameLong : Jaundice; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Jaundice. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137977, 435656; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Jaundice",,"Jaundice","Pending peer review","","all events of Jaundice. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137977, 435656","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,380,380 -381,"[P] Skin Itching",381,"cohortNameLong : Skin Itching; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of skin itching; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 133834, 133835, 135618, 4169287; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Skin Itching",,"Skin Itching","Pending peer review","","events of skin itching","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133834, 133835, 135618, 4169287","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,381,381 -382,"[P] Prurititc Rash",382,"cohortNameLong : Prurititc Rash; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : events of pruritic rash; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 135618, 4169287; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Prurititc Rash",,"Prurititc Rash","Pending peer review","","events of pruritic rash","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","135618, 4169287","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,382,382 -383,"[P] Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis",383,"cohortNameLong : Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #skin; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 133834, 133835, 45766714; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis",,"Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis","Pending peer review","","","#skin","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133834, 133835, 45766714","","",,,,,,383,383 -384,"[P][R] Contact dermatitis ",384,"cohortNameLong : Contact dermatitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Contact dermatitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 134438; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Contact dermatitis",,"Contact dermatitis","Pending peer review","","all events of Contact dermatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134438","","",,,,,,384,384 -385,"[P][R] Intertrigo ",385,"cohortNameLong : Intertrigo; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Intertrigo. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4242574; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Intertrigo",,"Intertrigo","Pending peer review","","all events of Intertrigo. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4242574","","",,,,,,385,385 -386,"[P][R] Seborrheic dermatitis ",386,"cohortNameLong : Seborrheic dermatitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Seborrheic dermatitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137053; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Seborrheic dermatitis",,"Seborrheic dermatitis","Pending peer review","","all events of Seborrheic dermatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137053","","",,,,,,386,386 -387,"[P][R] Photodermatitis ",387,"cohortNameLong : Photodermatitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Photodermatitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4203600, 4239682, 4331304; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Photodermatitis",,"Photodermatitis","Pending peer review","","all events of Photodermatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4203600, 4239682, 4331304","","",,,,,,387,387 -388,"[P][R] Peripheral neuritis ",388,"cohortNameLong : Peripheral neuritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Peripheral neuritis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4027396; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Peripheral neuritis",,"Peripheral neuritis","Pending peer review","","all events of Peripheral neuritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4027396","","",,,,,,388,388 -389,"[P] Peripheral Neuropathy or Neuritits",389,"cohortNameLong : Peripheral Neuropathy or Neuritits; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : first occurrence of peripheral neuritis or neuropathy; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4027396, 4117779; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Peripheral Neuropathy or Neuritits",,"Peripheral Neuropathy or Neuritits","Pending peer review","","first occurrence of peripheral neuritis or neuropathy","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4027396, 4117779","","",,,,,,389,389 -391,"[P] Hearing Loss",391,"cohortNameLong : Hearing Loss; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hearing Loss; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377889; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Hearing Loss",,"Hearing Loss","Pending peer review","","all events of Hearing Loss","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377889","","",,,,,,391,391 -392,"[P] Otalgia or Otitis",392,"cohortNameLong : Otalgia or Otitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Otitis or Otalgia; -hashTag : #symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 372328, 4183452; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Otalgia or Otitis",,"Otalgia or Otitis","Pending peer review","","All events of Otitis or Otalgia","#symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372328, 4183452","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,392,392 -393,"[P] Low Back Pain or Injury",393,"cohortNameLong : Low Back Pain or Injury; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of low back pain or injury; -hashTag : #Symptoms, #Pain; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 312998, 4020345; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Low Back Pain or Injury",,"Low Back Pain or Injury","Pending peer review","","all events of low back pain or injury","#Symptoms, #Pain","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312998, 4020345","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,393,393 -394,"[P] Gastroesophageal reflux disease",394,"cohortNameLong : Gastroesophageal reflux disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Gastroesophageal reflux disease; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 23325, 318800, 4091509; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Gastroesophageal reflux disease",,"Gastroesophageal reflux disease","Pending peer review","","all events of Gastroesophageal reflux disease","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","23325, 318800, 4091509","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,394,394 -395,"[P] Dysmenorrhea",395,"cohortNameLong : Dysmenorrhea; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Dysmenorrhea; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 443431; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Dysmenorrhea",,"Dysmenorrhea","Pending peer review","","all events of Dysmenorrhea","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443431","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,395,395 -396,"[P][R] Osteoarthritis ",396,"cohortNameLong : Osteoarthritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Osteoarthritis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 80180, 4079750; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Osteoarthritis",,"Osteoarthritis","Pending peer review","","all events of Osteoarthritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80180, 4079750","","",,,,,,396,396 -397,"[P][R] Hyperplasia of prostate ",397,"cohortNameLong : Hyperplasia of prostate; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hyperplasia of prostate. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197032, 443211; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Hyperplasia of prostate",,"Hyperplasia of prostate","Pending peer review","","all events of Hyperplasia of prostate. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197032, 443211","","",,,,,,397,397 -398,"[P] Bladder Outflow Obstruction",398,"cohortNameLong : Bladder Outflow Obstruction; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Bladder Outflow Obstruction; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194406, 443211; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Bladder Outflow Obstruction",,"Bladder Outflow Obstruction","Pending peer review","","All events of Bladder Outflow Obstruction","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194406, 443211","","",,,,,,398,398 -399,"[P][R] Urolithiasis ",399,"cohortNameLong : Urolithiasis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Urolithiasis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201620, 4319447; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Urolithiasis",,"Urolithiasis","Pending peer review","","all events of Urolithiasis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201620, 4319447","","",,,,,,399,399 -400,"[P][R] Malignant tumor of prostate ",400,"cohortNameLong : Malignant tumor of prostate; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant tumor of prostate. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 200962, 4163261; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Malignant tumor of prostate",,"Malignant tumor of prostate","Pending peer review","","all events of Malignant tumor of prostate. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200962, 4163261","","",,,,,,400,400 -401,"[P] Uterine Fibroids or benign uterine tumors",401,"cohortNameLong : Uterine Fibroids or benign uterine tumors; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Uterine Fibroids; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197236, 201817; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Uterine Fibroids or benign uterine tumors",,"Uterine Fibroids or benign uterine tumors","Pending peer review","","Uterine Fibroids","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197236, 201817","","",,,,,,401,401 -402,"[P] Ventilatory assist for respiratory findings with Acute Respiratory Failure",402,"cohortNameLong : Ventilatory assist for respiratory findings with Acute Respiratory Failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of acute respiratory symptoms commonly seen in acute respiratory failure with procedures for ventilatory assist among persons with respiratory failure; -hashTag : #CriticalCare; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 255573, 4027553; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Ventilatory assist for respiratory findings with Acute Respiratory Failure",,"Ventilatory assist for respiratory findings with Acute Respiratory Failure","Pending peer review","","all events of acute respiratory symptoms commonly seen in acute respiratory failure with procedures for ventilatory assist among persons with respiratory failure","#CriticalCare","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","255573, 4027553","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,402,402 -403,"[P] Acute Respiratory Failure in inpatient or Emergency room",403,"cohortNameLong : Acute Respiratory Failure in inpatient or Emergency room; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute Respiratory Failure in inpatient or Emergency room; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 319049; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Acute Respiratory Failure in inpatient or Emergency room",,"Acute Respiratory Failure in inpatient or Emergency room","Pending peer review","","all events of Acute Respiratory Failure in inpatient or Emergency room","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,403,403 -404,"[P] Ventricular Tachycardia, in an Inpatient or Emergency room setting",404,"cohortNameLong : Ventricular Tachycardia, in an Inpatient or Emergency room setting; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Ventricular tachycardia with inpatient stay; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 437579, 4103295; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Ventricular Tachycardia, in an Inpatient or Emergency room setting",,"Ventricular Tachycardia, in an Inpatient or Emergency room setting","Pending peer review","","Ventricular tachycardia with inpatient stay","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437579, 4103295","","",,,,,,404,404 -405,"[P] Atrial Fibrillation or Flutter",405,"cohortNameLong : Atrial Fibrillation or Flutter; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Atrial Fibrillation or Flutter; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313217; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-25","rao@ohdsi.org","Atrial Fibrillation or Flutter",,"Atrial Fibrillation or Flutter","Pending peer review","","All events of Atrial Fibrillation or Flutter","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217","","",,,,,,405,405 -406,"[P][R] Intellectual disability ",406,"cohortNameLong : Intellectual disability; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Intellectual disability. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 40277917; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Intellectual disability",,"Intellectual disability","Pending peer review","","all events of Intellectual disability. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40277917","","",,,,,,406,406 -407,"[P][R] Hemorrhoids ",407,"cohortNameLong : Hemorrhoids; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hemorrhoids. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 195562; -ohdsiForumPost : ; -replaces : ; -","2023-05-31","2023-09-19","rao@ohdsi.org","Hemorrhoids",,"Hemorrhoids","Pending peer review","","all events of Hemorrhoids. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","195562","","",,,,,,407,407 -410,"[P] Acute Urinary tract infections UTI",410,"cohortNameLong : Acute Urinary tract infections UTI; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Symptoms; -contributors : Stephen H. Fortin; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 81902; -ohdsiForumPost : ; -replaces : ; -","2023-06-01","2023-09-19","rao@ohdsi.org","Acute Urinary tract infections UTI",,"Acute Urinary tract infections UTI","Pending peer review","","","#Symptoms","Stephen H. Fortin","","","","","81902","","",,,,,,410,410 -411,"[P] Sepsis or Septic Shock",411,"cohortNameLong : Sepsis or Septic Shock; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Sepsis or Septic Shock; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 132797; -ohdsiForumPost : ; -replaces : ; -","2023-06-01","2023-09-25","rao@ohdsi.org","Sepsis or Septic Shock",,"Sepsis or Septic Shock","Pending peer review","","All events of Sepsis or Septic Shock","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132797","","",,,,,,411,411 -412,"Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W)",412,"cohortNameLong : Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W); -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.7.0; -logicDescription : events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia; -hashTag : #Accepted, #Level2; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : Evan Minty; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 139803, 443904; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; -replaces : ; -","2023-06-02","2023-09-19","rao@ohdsi.org","Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W)",,"Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W)","Accepted","3.7.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","139803, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,412,412 -414,"[P] Acute Skin Eruption symptoms",414,"cohortNameLong : Acute Skin Eruption symptoms; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of certain skin eruption symptoms; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 134438, 45766714; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-06-02","2023-09-25","rao@ohdsi.org","Acute Skin Eruption symptoms",,"Acute Skin Eruption symptoms","Pending peer review","","All events of certain skin eruption symptoms","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134438, 45766714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,414,414 -415,"[P][R] Erythema of skin ",415,"cohortNameLong : Erythema of skin; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Erythema of skin. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4300442, 40481101; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-06-02","2023-09-19","rao@ohdsi.org","Erythema of skin",,"Erythema of skin","Pending peer review","","all events of Erythema of skin. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4300442, 40481101","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,415,415 -416,"[P] Skin Rash",416,"cohortNameLong : Skin Rash; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Skin Erythema; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 135618; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-06-02","2023-09-25","rao@ohdsi.org","Skin Rash",,"Skin Rash","Pending peer review","","All events of Skin Erythema","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","135618","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,416,416 -417,"[P] Acute gastrointestinal bleeding events",417,"cohortNameLong : Acute gastrointestinal bleeding events; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of gastrointestinal bleed; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192671; -ohdsiForumPost : ; -replaces : ; -","2023-06-02","2023-09-25","rao@ohdsi.org","Acute gastrointestinal bleeding events",,"Acute gastrointestinal bleeding events","Pending peer review","","all events of gastrointestinal bleed","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671","","",,,,,,417,417 -444,"[P][R] Neck pain",444,"cohortNameLong : Neck pain; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Neck pain. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 24134; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Neck pain",,"Neck pain","Pending peer review","","all events of Neck pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24134","","",,,,,,444,444 -445,"[P][R] Hypoglycemia",445,"cohortNameLong : Hypoglycemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hypoglycemia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 24609; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Hypoglycemia",,"Hypoglycemia","Pending peer review","","all events of Hypoglycemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24609","","",,,,,,445,445 -446,"[P][R] Eosinophilic esophagitis",446,"cohortNameLong : Eosinophilic esophagitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Eosinophilic esophagitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 27918; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Eosinophilic esophagitis",,"Eosinophilic esophagitis","Pending peer review","","all events of Eosinophilic esophagitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27918","","",,,,,,446,446 -447,"[P][R] Esophagitis",447,"cohortNameLong : Esophagitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Esophagitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 30437, 30753; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Esophagitis",,"Esophagitis","Pending peer review","","all events of Esophagitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","30437, 30753","","",,,,,,447,447 -448,"[P][R] Dysphagia",448,"cohortNameLong : Dysphagia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Dysphagia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 31317; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Dysphagia",,"Dysphagia","Pending peer review","","all events of Dysphagia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","31317","","",,,,,,448,448 -449,"[P][R] Nausea",449,"cohortNameLong : Nausea; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Nausea. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 27674, 31967; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Nausea",,"Nausea","Pending peer review","","all events of Nausea. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27674, 31967","","",,,,,,449,449 -450,"[P][R] Constipation",450,"cohortNameLong : Constipation; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Constipation. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 75860; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Constipation",,"Constipation","Pending peer review","","all events of Constipation. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","75860","","",,,,,,450,450 -451,"[P][R] Myasthenia gravis",451,"cohortNameLong : Myasthenia gravis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Myasthenia gravis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 76685; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Myasthenia gravis",,"Myasthenia gravis","Pending peer review","","all events of Myasthenia gravis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","76685","","",,,,,,451,451 -452,"[P][R] Joint pain",452,"cohortNameLong : Joint pain; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Joint pain. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 77074, 78232; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Joint pain",,"Joint pain","Pending peer review","","all events of Joint pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","77074, 78232","","",,,,,,452,452 -453,"[P][R] Osteoarthritis",453,"cohortNameLong : Osteoarthritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Osteoarthritis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 80180, 4079750; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Osteoarthritis",,"Osteoarthritis","Pending peer review","","all events of Osteoarthritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80180, 4079750","","",,,,,,453,453 -454,"[P][R] Dermatomyositis",454,"cohortNameLong : Dermatomyositis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Dermatomyositis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 80182; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Dermatomyositis",,"Dermatomyositis","Pending peer review","","all events of Dermatomyositis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80182","","",,,,,,454,454 -455,"[P][R] Fetal growth restriction",455,"cohortNameLong : Fetal growth restriction; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Fetal growth restriction. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 74469, 80204, 4145947; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Fetal growth restriction",,"Fetal growth restriction","Pending peer review","","all events of Fetal growth restriction. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","74469, 80204, 4145947","","",,,,,,455,455 -456,"[P][R] Osteoporosis",456,"cohortNameLong : Osteoporosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Osteoporosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 80502; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Osteoporosis",,"Osteoporosis","Pending peer review","","all events of Osteoporosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80502","","",,,,,,456,456 -457,"[P][R] Rheumatoid arthritis",457,"cohortNameLong : Rheumatoid arthritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Rheumatoid arthritis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 80809; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Rheumatoid arthritis",,"Rheumatoid arthritis","Pending peer review","","all events of Rheumatoid arthritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80809","","",,,,,,457,457 -458,"[P][R] Ulcerative colitis",458,"cohortNameLong : Ulcerative colitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Ulcerative colitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 81893; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Ulcerative colitis",,"Ulcerative colitis","Pending peer review","","all events of Ulcerative colitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81893","","",,,,,,458,458 -459,"[P][R] Urinary tract infectious disease",459,"cohortNameLong : Urinary tract infectious disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Urinary tract infectious disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 81902; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Urinary tract infectious disease",,"Urinary tract infectious disease","Pending peer review","","all events of Urinary tract infectious disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81902","","",,,,,,459,459 -460,"[P][R] Psoriasis with arthropathy",460,"cohortNameLong : Psoriasis with arthropathy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Psoriasis with arthropathy. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 81931; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Psoriasis with arthropathy",,"Psoriasis with arthropathy","Pending peer review","","all events of Psoriasis with arthropathy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81931","","",,,,,,460,460 -461,"[P][R] Erythema multiforme",461,"cohortNameLong : Erythema multiforme; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Erythema multiforme. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 132702; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Erythema multiforme",,"Erythema multiforme","Pending peer review","","all events of Erythema multiforme. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132702","","",,,,,,461,461 -462,"[P][R] Lichen planus",462,"cohortNameLong : Lichen planus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Lichen planus. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 132703; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Lichen planus",,"Lichen planus","Pending peer review","","all events of Lichen planus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132703","","",,,,,,462,462 -463,"[P][R] Sepsis",463,"cohortNameLong : Sepsis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Sepsis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 132797; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Sepsis",,"Sepsis","Pending peer review","","all events of Sepsis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132797","","",,,,,,463,463 -464,"[P][R] Myelofibrosis",464,"cohortNameLong : Myelofibrosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Myelofibrosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 133169; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Myelofibrosis",,"Myelofibrosis","Pending peer review","","all events of Myelofibrosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133169","","",,,,,,464,464 -465,"[P][R] Thyroiditis",465,"cohortNameLong : Thyroiditis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Thyroiditis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 133444, 4281109; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Thyroiditis",,"Thyroiditis","Pending peer review","","all events of Thyroiditis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133444, 4281109","","",,,,,,465,465 -466,"[P][R] Atopic dermatitis",466,"cohortNameLong : Atopic dermatitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Atopic dermatitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 133834; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Atopic dermatitis",,"Atopic dermatitis","Pending peer review","","all events of Atopic dermatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133834","","",,,,,,466,466 -467,"[P][R] Systemic sclerosis",467,"cohortNameLong : Systemic sclerosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Systemic sclerosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 134442; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Systemic sclerosis",,"Systemic sclerosis","Pending peer review","","all events of Systemic sclerosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134442","","",,,,,,467,467 -468,"[P][R] Pityriasis rubra pilaris",468,"cohortNameLong : Pityriasis rubra pilaris; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pityriasis rubra pilaris. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 136774; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Pityriasis rubra pilaris",,"Pityriasis rubra pilaris","Pending peer review","","all events of Pityriasis rubra pilaris. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","136774","","",,,,,,468,468 -469,"[P][R] Jaundice",469,"cohortNameLong : Jaundice; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Jaundice. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137977, 435656; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Jaundice",,"Jaundice","Pending peer review","","all events of Jaundice. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137977, 435656","","",,,,,,469,469 -470,"[P][R] Chronic lymphoid leukemia, disease",470,"cohortNameLong : Chronic lymphoid leukemia, disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Chronic lymphoid leukemia, disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 138379; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Chronic lymphoid leukemia, disease",,"Chronic lymphoid leukemia, disease","Pending peer review","","all events of Chronic lymphoid leukemia, disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138379","","",,,,,,470,470 -471,"[P][R] Vitiligo",471,"cohortNameLong : Vitiligo; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Vitiligo. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 138502; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Vitiligo",,"Vitiligo","Pending peer review","","all events of Vitiligo. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138502","","",,,,,,471,471 -472,"[P][R] Myelodysplastic syndrome (clinical)",472,"cohortNameLong : Myelodysplastic syndrome (clinical); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Myelodysplastic syndrome (clinical). Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 138994; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Myelodysplastic syndrome (clinical)",,"Myelodysplastic syndrome (clinical)","Pending peer review","","all events of Myelodysplastic syndrome (clinical). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138994","","",,,,,,472,472 -473,"[P][R] Acute transverse myelitis",473,"cohortNameLong : Acute transverse myelitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute transverse myelitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 139803; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Acute transverse myelitis",,"Acute transverse myelitis","Pending peer review","","all events of Acute transverse myelitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139803","","",,,,,,473,473 -474,"[P][R] Pemphigoid",474,"cohortNameLong : Pemphigoid; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pemphigoid. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 139899; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Pemphigoid",,"Pemphigoid","Pending peer review","","all events of Pemphigoid. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139899","","",,,,,,474,474 -475,"[P][R] Psoriasis",475,"cohortNameLong : Psoriasis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Psoriasis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 140168; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Psoriasis",,"Psoriasis","Pending peer review","","all events of Psoriasis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140168","","",,,,,,475,475 -476,"[P][R] Acute myeloid leukemia, disease",476,"cohortNameLong : Acute myeloid leukemia, disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute myeloid leukemia, disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 140352; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Acute myeloid leukemia, disease",,"Acute myeloid leukemia, disease","Pending peer review","","all events of Acute myeloid leukemia, disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140352","","",,,,,,476,476 -477,"[P][R] Hypothyroidism",477,"cohortNameLong : Hypothyroidism; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hypothyroidism. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 138384, 140673; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Hypothyroidism",,"Hypothyroidism","Pending peer review","","all events of Hypothyroidism. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138384, 140673","","",,,,,,477,477 -478,"[P][R] Malignant melanoma of skin",478,"cohortNameLong : Malignant melanoma of skin; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant melanoma of skin. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 141232; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant melanoma of skin",,"Malignant melanoma of skin","Pending peer review","","all events of Malignant melanoma of skin. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141232","","",,,,,,478,478 -479,"[P][R] Chilblains",479,"cohortNameLong : Chilblains; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Chilblains. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 141456; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Chilblains",,"Chilblains","Pending peer review","","all events of Chilblains. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141456","","",,,,,,479,479 -480,"[P][R] Alopecia areata",480,"cohortNameLong : Alopecia areata; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Alopecia areata. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 141933; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Alopecia areata",,"Alopecia areata","Pending peer review","","all events of Alopecia areata. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141933","","",,,,,,480,480 -481,"[P][R] Renal failure syndrome",481,"cohortNameLong : Renal failure syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Renal failure syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192359, 193782; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Renal failure syndrome",,"Renal failure syndrome","Pending peer review","","all events of Renal failure syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192359, 193782","","",,,,,,481,481 -482,"[P][R] Gastrointestinal hemorrhage",482,"cohortNameLong : Gastrointestinal hemorrhage; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Gastrointestinal hemorrhage. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192671; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Gastrointestinal hemorrhage",,"Gastrointestinal hemorrhage","Pending peer review","","all events of Gastrointestinal hemorrhage. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671","","",,,,,,482,482 -483,"[P][R] Biliary cirrhosis",483,"cohortNameLong : Biliary cirrhosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Biliary cirrhosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192675; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Biliary cirrhosis",,"Biliary cirrhosis","Pending peer review","","all events of Biliary cirrhosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192675","","",,,,,,483,483 -484,"[P][R] End-stage renal disease",484,"cohortNameLong : End-stage renal disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of End-stage renal disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 193782; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","End-stage renal disease",,"End-stage renal disease","Pending peer review","","all events of End-stage renal disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","193782","","",,,,,,484,484 -485,"[P][R] Low back pain",485,"cohortNameLong : Low back pain; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Low back pain. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194133; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Low back pain",,"Low back pain","Pending peer review","","all events of Low back pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194133","","",,,,,,485,485 -486,"[P][R] Premature rupture of membranes",486,"cohortNameLong : Premature rupture of membranes; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Premature rupture of membranes. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194702, 200160; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Premature rupture of membranes",,"Premature rupture of membranes","Pending peer review","","all events of Premature rupture of membranes. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194702, 200160","","",,,,,,486,486 -487,"[P][R] Celiac disease",487,"cohortNameLong : Celiac disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Celiac disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194992; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Celiac disease",,"Celiac disease","Pending peer review","","all events of Celiac disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194992","","",,,,,,487,487 -488,"[P][R] Diarrhea",488,"cohortNameLong : Diarrhea; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Diarrhea. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 196523; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Diarrhea",,"Diarrhea","Pending peer review","","all events of Diarrhea. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196523","","",,,,,,488,488 -489,"[P][R] Acute renal failure syndrome",489,"cohortNameLong : Acute renal failure syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute renal failure syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197320; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Acute renal failure syndrome",,"Acute renal failure syndrome","Pending peer review","","all events of Acute renal failure syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","","",,,,,,489,489 -490,"[P][R] Viral hepatitis C",490,"cohortNameLong : Viral hepatitis C; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Viral hepatitis C. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197494, 198964; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Viral hepatitis C",,"Viral hepatitis C","Pending peer review","","all events of Viral hepatitis C. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197494, 198964","","",,,,,,490,490 -491,"[P][R] Malignant tumor of urinary bladder",491,"cohortNameLong : Malignant tumor of urinary bladder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant tumor of urinary bladder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 196360, 197508; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of urinary bladder",,"Malignant tumor of urinary bladder","Pending peer review","","all events of Malignant tumor of urinary bladder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196360, 197508","","",,,,,,491,491 -492,"[P][R] Cardiogenic shock",492,"cohortNameLong : Cardiogenic shock; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Cardiogenic shock. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 198571; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Cardiogenic shock",,"Cardiogenic shock","Pending peer review","","all events of Cardiogenic shock. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198571","","",,,,,,492,492 -493,"[P][R] Malignant tumor of cervix",493,"cohortNameLong : Malignant tumor of cervix; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant tumor of cervix. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 196359, 198984; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of cervix",,"Malignant tumor of cervix","Pending peer review","","all events of Malignant tumor of cervix. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196359, 198984","","",,,,,,493,493 -494,"[P][R] Primary malignant neoplasm of kidney",494,"cohortNameLong : Primary malignant neoplasm of kidney; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Primary malignant neoplasm of kidney. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 198985; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Primary malignant neoplasm of kidney",,"Primary malignant neoplasm of kidney","Pending peer review","","all events of Primary malignant neoplasm of kidney. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198985","","",,,,,,494,494 -495,"[P][R] Acute pancreatitis",495,"cohortNameLong : Acute pancreatitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute pancreatitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 199074; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Acute pancreatitis",,"Acute pancreatitis","Pending peer review","","all events of Acute pancreatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","199074","","",,,,,,495,495 -496,"[P][R] Abdominal pain",496,"cohortNameLong : Abdominal pain; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Abdominal pain. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 200219; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Abdominal pain",,"Abdominal pain","Pending peer review","","all events of Abdominal pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200219","","",,,,,,496,496 -497,"[P][R] Autoimmune hepatitis",497,"cohortNameLong : Autoimmune hepatitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Autoimmune hepatitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 200762; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Autoimmune hepatitis",,"Autoimmune hepatitis","Pending peer review","","all events of Autoimmune hepatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200762","","",,,,,,497,497 -498,"[P][R] Toxic shock syndrome",498,"cohortNameLong : Toxic shock syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Toxic shock syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201214; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Toxic shock syndrome",,"Toxic shock syndrome","Pending peer review","","all events of Toxic shock syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201214","","",,,,,,498,498 -499,"[P][R] Type 1 diabetes mellitus",499,"cohortNameLong : Type 1 diabetes mellitus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Type 1 diabetes mellitus. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201254; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Type 1 diabetes mellitus",,"Type 1 diabetes mellitus","Pending peer review","","all events of Type 1 diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201254","","",,,,,,499,499 -500,"[P][R] Gastritis",500,"cohortNameLong : Gastritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Gastritis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201340; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Gastritis",,"Gastritis","Pending peer review","","all events of Gastritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201340","","",,,,,,500,500 -501,"[P][R] Crohn's disease",501,"cohortNameLong : Crohn's disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Crohn's disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201606; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Crohn's disease",,"Crohn's disease","Pending peer review","","all events of Crohn's disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201606","","",,,,,,501,501 -502,"[P][R] Kidney stone",502,"cohortNameLong : Kidney stone; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Kidney stone. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201620; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Kidney stone",,"Kidney stone","Pending peer review","","all events of Kidney stone. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201620","","",,,,,,502,502 -503,"[P][R] Type 2 diabetes mellitus",503,"cohortNameLong : Type 2 diabetes mellitus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Type 2 diabetes mellitus. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201826; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Type 2 diabetes mellitus",,"Type 2 diabetes mellitus","Pending peer review","","all events of Type 2 diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201826","","",,,,,,503,503 -504,"[P][R] Sjögren's syndrome",504,"cohortNameLong : Sjögren's syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Sjögren's syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 254443; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Sjögren's syndrome",,"Sjögren's syndrome","Pending peer review","","all events of Sjögren's syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254443","","",,,,,,504,504 -505,"[P][R] Cough",505,"cohortNameLong : Cough; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Cough. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 254761; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Cough",,"Cough","Pending peer review","","all events of Cough. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254761","","",,,,,,505,505 -506,"[P][R] Chronic obstructive lung disease",506,"cohortNameLong : Chronic obstructive lung disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Chronic obstructive lung disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 255573; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Chronic obstructive lung disease",,"Chronic obstructive lung disease","Pending peer review","","all events of Chronic obstructive lung disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","255573","","",,,,,,506,506 -507,"[P][R] Pneumonia",507,"cohortNameLong : Pneumonia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pneumonia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 255848; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Pneumonia",,"Pneumonia","Pending peer review","","all events of Pneumonia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","255848","","",,,,,,507,507 -508,"[P][R] Allergic rhinitis",508,"cohortNameLong : Allergic rhinitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Allergic rhinitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257007; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Allergic rhinitis",,"Allergic rhinitis","Pending peer review","","all events of Allergic rhinitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007","","",,,,,,508,508 -509,"[P][R] Systemic lupus erythematosus",509,"cohortNameLong : Systemic lupus erythematosus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Systemic lupus erythematosus. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257628; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Systemic lupus erythematosus",,"Systemic lupus erythematosus","Pending peer review","","all events of Systemic lupus erythematosus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257628","","",,,,,,509,509 -510,"[P][R] Acute myocardial infarction",510,"cohortNameLong : Acute myocardial infarction; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute myocardial infarction. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 312327, 444406; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Acute myocardial infarction",,"Acute myocardial infarction","Pending peer review","","all events of Acute myocardial infarction. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312327, 444406","","",,,,,,510,510 -511,"[P][R] Dyspnea",511,"cohortNameLong : Dyspnea; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Dyspnea. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 312437; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Dyspnea",,"Dyspnea","Pending peer review","","all events of Dyspnea. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312437","","",,,,,,511,511 -512,"[P][R] Thromboangiitis obliterans",512,"cohortNameLong : Thromboangiitis obliterans; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Thromboangiitis obliterans. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 312939; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Thromboangiitis obliterans",,"Thromboangiitis obliterans","Pending peer review","","all events of Thromboangiitis obliterans. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312939","","",,,,,,512,512 -513,"[P][R] Atrial fibrillation",513,"cohortNameLong : Atrial fibrillation; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Atrial fibrillation. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313217; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Atrial fibrillation",,"Atrial fibrillation","Pending peer review","","all events of Atrial fibrillation. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217","","",,,,,,513,513 -514,"[P][R] Granulomatosis with polyangiitis",514,"cohortNameLong : Granulomatosis with polyangiitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Granulomatosis with polyangiitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313223; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Granulomatosis with polyangiitis",,"Granulomatosis with polyangiitis","Pending peer review","","all events of Granulomatosis with polyangiitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313223","","",,,,,,514,514 -515,"[P][R] Sleep apnea",515,"cohortNameLong : Sleep apnea; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Sleep apnea. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313459, 442588; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Sleep apnea",,"Sleep apnea","Pending peer review","","all events of Sleep apnea. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313459, 442588","","",,,,,,515,515 -516,"[P][R] Thrombotic microangiopathy",516,"cohortNameLong : Thrombotic microangiopathy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Thrombotic microangiopathy. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313800; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Thrombotic microangiopathy",,"Thrombotic microangiopathy","Pending peer review","","all events of Thrombotic microangiopathy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313800","","",,,,,,516,516 -517,"[P][R] Acute febrile mucocutaneous lymph node syndrome",517,"cohortNameLong : Acute febrile mucocutaneous lymph node syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute febrile mucocutaneous lymph node syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314381; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Acute febrile mucocutaneous lymph node syndrome",,"Acute febrile mucocutaneous lymph node syndrome","Pending peer review","","all events of Acute febrile mucocutaneous lymph node syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314381","","",,,,,,517,517 -518,"[P][R] Myocarditis",518,"cohortNameLong : Myocarditis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Myocarditis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314383; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Myocarditis",,"Myocarditis","Pending peer review","","all events of Myocarditis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314383","","",,,,,,518,518 -519,"[P][R] Heart failure",519,"cohortNameLong : Heart failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Heart failure. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 316139, 319835; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Heart failure",,"Heart failure","Pending peer review","","all events of Heart failure. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","316139, 319835","","",,,,,,519,519 -520,"[P][R] Hypertensive disorder",520,"cohortNameLong : Hypertensive disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hypertensive disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 312648, 316866, 4028741; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Hypertensive disorder",,"Hypertensive disorder","Pending peer review","","all events of Hypertensive disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312648, 316866, 4028741","","",,,,,,520,520 -521,"[P][R] Asthma",521,"cohortNameLong : Asthma; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Asthma. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 317009; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Asthma",,"Asthma","Pending peer review","","all events of Asthma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317009","","",,,,,,521,521 -522,"[P][R] Coronary arteriosclerosis",522,"cohortNameLong : Coronary arteriosclerosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Coronary arteriosclerosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 317576, 764123; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Coronary arteriosclerosis",,"Coronary arteriosclerosis","Pending peer review","","all events of Coronary arteriosclerosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317576, 764123","","",,,,,,522,522 -523,"[P][R] Arteriosclerotic vascular disease",523,"cohortNameLong : Arteriosclerotic vascular disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Arteriosclerotic vascular disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 318443, 764123; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Arteriosclerotic vascular disease",,"Arteriosclerotic vascular disease","Pending peer review","","all events of Arteriosclerotic vascular disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318443, 764123","","",,,,,,523,523 -524,"[P][R] Migraine",524,"cohortNameLong : Migraine; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Migraine. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 318736; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Migraine",,"Migraine","Pending peer review","","all events of Migraine. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318736","","",,,,,,524,524 -525,"[P][R] Gastroesophageal reflux disease",525,"cohortNameLong : Gastroesophageal reflux disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Gastroesophageal reflux disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 318800; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Gastroesophageal reflux disease",,"Gastroesophageal reflux disease","Pending peer review","","all events of Gastroesophageal reflux disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318800","","",,,,,,525,525 -526,"[P][R] Orthostatic hypotension",526,"cohortNameLong : Orthostatic hypotension; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Orthostatic hypotension. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 319041; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Orthostatic hypotension",,"Orthostatic hypotension","Pending peer review","","all events of Orthostatic hypotension. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319041","","",,,,,,526,526 -527,"[P][R] Acute respiratory failure",527,"cohortNameLong : Acute respiratory failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute respiratory failure. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 319049; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Acute respiratory failure",,"Acute respiratory failure","Pending peer review","","all events of Acute respiratory failure. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049","","",,,,,,527,527 -528,"[P][R] Polyarteritis nodosa",528,"cohortNameLong : Polyarteritis nodosa; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Polyarteritis nodosa. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 320749; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Polyarteritis nodosa",,"Polyarteritis nodosa","Pending peer review","","all events of Polyarteritis nodosa. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320749","","",,,,,,528,528 -529,"[P][R] Cardiac arrest",529,"cohortNameLong : Cardiac arrest; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Cardiac arrest. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 321042; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Cardiac arrest",,"Cardiac arrest","Pending peer review","","all events of Cardiac arrest. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321042","","",,,,,,529,529 -530,"[P][R] Peripheral vascular disease",530,"cohortNameLong : Peripheral vascular disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Peripheral vascular disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 321052; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Peripheral vascular disease",,"Peripheral vascular disease","Pending peer review","","all events of Peripheral vascular disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321052","","",,,,,,530,530 -531,"[P][R] Angina pectoris",531,"cohortNameLong : Angina pectoris; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Angina pectoris. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 321318; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Angina pectoris",,"Angina pectoris","Pending peer review","","all events of Angina pectoris. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321318","","",,,,,,531,531 -532,"[P][R] Heart disease",532,"cohortNameLong : Heart disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Heart disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313217, 321588, 44784217; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Heart disease",,"Heart disease","Pending peer review","","all events of Heart disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 321588, 44784217","","",,,,,,532,532 -533,"[P][R] Otitis media",533,"cohortNameLong : Otitis media; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Otitis media. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 372328; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Otitis media",,"Otitis media","Pending peer review","","all events of Otitis media. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372328","","",,,,,,533,533 -534,"[P][R] Transient cerebral ischemia",534,"cohortNameLong : Transient cerebral ischemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Transient cerebral ischemia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 373503; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Transient cerebral ischemia",,"Transient cerebral ischemia","Pending peer review","","all events of Transient cerebral ischemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","373503","","",,,,,,534,534 -535,"[P][R] Acute disseminated encephalomyelitis",535,"cohortNameLong : Acute disseminated encephalomyelitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute disseminated encephalomyelitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374021; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Acute disseminated encephalomyelitis",,"Acute disseminated encephalomyelitis","Pending peer review","","all events of Acute disseminated encephalomyelitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374021","","",,,,,,535,535 -536,"[P][R] Age related macular degeneration",536,"cohortNameLong : Age related macular degeneration; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Age related macular degeneration. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374028, 376966; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Age related macular degeneration",,"Age related macular degeneration","Pending peer review","","all events of Age related macular degeneration. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374028, 376966","","",,,,,,536,536 -537,"[P][R] Sensorineural hearing loss",537,"cohortNameLong : Sensorineural hearing loss; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Sensorineural hearing loss. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374366, 4110815; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Sensorineural hearing loss",,"Sensorineural hearing loss","Pending peer review","","all events of Sensorineural hearing loss. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374366, 4110815","","",,,,,,537,537 -538,"[P][R] Paralytic syndrome",538,"cohortNameLong : Paralytic syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Paralytic syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374377, 4134120; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Paralytic syndrome",,"Paralytic syndrome","Pending peer review","","all events of Paralytic syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374377, 4134120","","",,,,,,538,538 -539,"[P][R] Multiple sclerosis",539,"cohortNameLong : Multiple sclerosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Multiple sclerosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374919; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Multiple sclerosis",,"Multiple sclerosis","Pending peer review","","all events of Multiple sclerosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374919","","",,,,,,539,539 -540,"[P][R] Optic neuritis",540,"cohortNameLong : Optic neuritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Optic neuritis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374954; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Optic neuritis",,"Optic neuritis","Pending peer review","","all events of Optic neuritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374954","","",,,,,,540,540 -541,"[P][R] Idiopathic peripheral neuropathy",541,"cohortNameLong : Idiopathic peripheral neuropathy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Idiopathic peripheral neuropathy. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 375806; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Idiopathic peripheral neuropathy",,"Idiopathic peripheral neuropathy","Pending peer review","","all events of Idiopathic peripheral neuropathy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","375806","","",,,,,,541,541 -542,"[P][R] Cerebral hemorrhage",542,"cohortNameLong : Cerebral hemorrhage; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Cerebral hemorrhage. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 376713; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Cerebral hemorrhage",,"Cerebral hemorrhage","Pending peer review","","all events of Cerebral hemorrhage. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376713","","",,,,,,542,542 -543,"[P][R] Seizure",543,"cohortNameLong : Seizure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Seizure. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377091; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Seizure",,"Seizure","Pending peer review","","all events of Seizure. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377091","","",,,,,,543,543 -544,"[P][R] Encephalitis",544,"cohortNameLong : Encephalitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Encephalitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 378143, 380941; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Encephalitis",,"Encephalitis","Pending peer review","","all events of Encephalitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378143, 380941","","",,,,,,544,544 -545,"[P][R] Headache",545,"cohortNameLong : Headache; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Headache. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 378253; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Headache",,"Headache","Pending peer review","","all events of Headache. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378253","","",,,,,,545,545 -546,"[P][R] Retinal detachment",546,"cohortNameLong : Retinal detachment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Retinal detachment. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 378414; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Retinal detachment",,"Retinal detachment","Pending peer review","","all events of Retinal detachment. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378414","","",,,,,,546,546 -547,"[P][R] Retinal disorder",547,"cohortNameLong : Retinal disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Retinal disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 376966, 378416, 4116208; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Retinal disorder",,"Retinal disorder","Pending peer review","","all events of Retinal disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376966, 378416, 4116208","","",,,,,,547,547 -549,"[P][R] Epilepsy",549,"cohortNameLong : Epilepsy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Epilepsy. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 380378; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Epilepsy",,"Epilepsy","Pending peer review","","all events of Epilepsy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","380378","","",,,,,,549,549 -550,"[P][R] Chronic inflammatory demyelinating polyradiculoneuropathy",550,"cohortNameLong : Chronic inflammatory demyelinating polyradiculoneuropathy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Chronic inflammatory demyelinating polyradiculoneuropathy. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 381009; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Chronic inflammatory demyelinating polyradiculoneuropathy",,"Chronic inflammatory demyelinating polyradiculoneuropathy","Pending peer review","","all events of Chronic inflammatory demyelinating polyradiculoneuropathy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381009","","",,,,,,550,550 -551,"[P][R] Microcephaly",551,"cohortNameLong : Microcephaly; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Microcephaly. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 381114,606878; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-22","rao@ohdsi.org","Microcephaly",,"Microcephaly","Pending peer review","","all events of Microcephaly. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381114,606878","","",,,,,,551,551 -552,"[P][R] Parkinson's disease",552,"cohortNameLong : Parkinson's disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Parkinson's disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 381270; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Parkinson's disease",,"Parkinson's disease","Pending peer review","","all events of Parkinson's disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381270","","",,,,,,552,552 -553,"[P][R] Cerebrovascular accident",553,"cohortNameLong : Cerebrovascular accident; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Cerebrovascular accident. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 381316; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Cerebrovascular accident",,"Cerebrovascular accident","Pending peer review","","all events of Cerebrovascular accident. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381316","","",,,,,,553,553 -554,"[P][R] Cerebrovascular disease",554,"cohortNameLong : Cerebrovascular disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Cerebrovascular disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 381591, 4288310; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Cerebrovascular disease",,"Cerebrovascular disease","Pending peer review","","all events of Cerebrovascular disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381591, 4288310","","",,,,,,554,554 -555,"[P][R] Blood coagulation disorder",555,"cohortNameLong : Blood coagulation disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Blood coagulation disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432585; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Blood coagulation disorder",,"Blood coagulation disorder","Pending peer review","","all events of Blood coagulation disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432585","","",,,,,,555,555 -556,"[P][R] Amyloidosis",556,"cohortNameLong : Amyloidosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Amyloidosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432595; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Amyloidosis",,"Amyloidosis","Pending peer review","","all events of Amyloidosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432595","","",,,,,,556,556 -557,"[P][R] Angioedema",557,"cohortNameLong : Angioedema; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Angioedema. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432791; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Angioedema",,"Angioedema","Pending peer review","","all events of Angioedema. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432791","","",,,,,,557,557 -558,"[P][R] Hyperlipidemia",558,"cohortNameLong : Hyperlipidemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hyperlipidemia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432867; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Hyperlipidemia",,"Hyperlipidemia","Pending peer review","","all events of Hyperlipidemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432867","","",,,,,,558,558 -559,"[P][R] Thrombocytopenic disorder",559,"cohortNameLong : Thrombocytopenic disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Thrombocytopenic disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432870; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Thrombocytopenic disorder",,"Thrombocytopenic disorder","Pending peer review","","all events of Thrombocytopenic disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432870","","",,,,,,559,559 -560,"[P][R] Pancytopenia",560,"cohortNameLong : Pancytopenia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pancytopenia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432881; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Pancytopenia",,"Pancytopenia","Pending peer review","","all events of Pancytopenia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432881","","",,,,,,560,560 -561,"[P][R] Myasthenic syndrome due to another disorder",561,"cohortNameLong : Myasthenic syndrome due to another disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Myasthenic syndrome due to another disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432893; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Myasthenic syndrome due to another disorder",,"Myasthenic syndrome due to another disorder","Pending peer review","","all events of Myasthenic syndrome due to another disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432893","","",,,,,,561,561 -562,"[P][R] Edema",562,"cohortNameLong : Edema; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Edema. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433595; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Edema",,"Edema","Pending peer review","","all events of Edema. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433595","","",,,,,,562,562 -563,"[P][R] Obesity",563,"cohortNameLong : Obesity; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Obesity. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433736; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Obesity",,"Obesity","Pending peer review","","all events of Obesity. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433736","","",,,,,,563,563 -564,"[P][R] Hidradenitis",564,"cohortNameLong : Hidradenitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hidradenitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 434119; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Hidradenitis",,"Hidradenitis","Pending peer review","","all events of Hidradenitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434119","","",,,,,,564,564 -565,"[P][R] Tuberculosis",565,"cohortNameLong : Tuberculosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Tuberculosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 253954, 434557; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Tuberculosis",,"Tuberculosis","Pending peer review","","all events of Tuberculosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","253954, 434557","","",,,,,,565,565 -566,"[P][R] Kaposi's sarcoma (clinical)",566,"cohortNameLong : Kaposi's sarcoma (clinical); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Kaposi's sarcoma (clinical). Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 434584; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Kaposi's sarcoma (clinical)",,"Kaposi's sarcoma (clinical)","Pending peer review","","all events of Kaposi's sarcoma (clinical). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434584","","",,,,,,566,566 -567,"[P][R] B-cell lymphoma (clinical)",567,"cohortNameLong : B-cell lymphoma (clinical); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of B-cell lymphoma (clinical). Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 434592, 4300704; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","B-cell lymphoma (clinical)",,"B-cell lymphoma (clinical)","Pending peer review","","all events of B-cell lymphoma (clinical). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434592, 4300704","","",,,,,,567,567 -568,"[P][R] Hyperkalemia",568,"cohortNameLong : Hyperkalemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hyperkalemia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 434610; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Hyperkalemia",,"Hyperkalemia","Pending peer review","","all events of Hyperkalemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434610","","",,,,,,568,568 -569,"[P][R] Systemic inflammatory response syndrome",569,"cohortNameLong : Systemic inflammatory response syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Systemic inflammatory response syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 434821; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Systemic inflammatory response syndrome",,"Systemic inflammatory response syndrome","Pending peer review","","all events of Systemic inflammatory response syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434821","","",,,,,,569,569 -570,"[P][R] Leukopenia",570,"cohortNameLong : Leukopenia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Leukopenia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432881, 435224; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Leukopenia",,"Leukopenia","Pending peer review","","all events of Leukopenia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432881, 435224","","",,,,,,570,570 -571,"[P][R] Schizophrenia",571,"cohortNameLong : Schizophrenia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Schizophrenia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435783; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Schizophrenia",,"Schizophrenia","Pending peer review","","all events of Schizophrenia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435783","","",,,,,,571,571 -572,"[P][R] Psychotic disorder",572,"cohortNameLong : Psychotic disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Psychotic disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435783, 436073; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Psychotic disorder",,"Psychotic disorder","Pending peer review","","all events of Psychotic disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435783, 436073","","",,,,,,572,572 -573,"[P][R] Chronic pain",573,"cohortNameLong : Chronic pain; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Chronic pain. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436096; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Chronic pain",,"Chronic pain","Pending peer review","","all events of Chronic pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436096","","",,,,,,573,573 -574,"[P][R] Narcolepsy",574,"cohortNameLong : Narcolepsy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Narcolepsy. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436100; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Narcolepsy",,"Narcolepsy","Pending peer review","","all events of Narcolepsy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436100","","",,,,,,574,574 -575,"[P][R] Behcet's syndrome",575,"cohortNameLong : Behcet's syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Behcet's syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436642; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Behcet's syndrome",,"Behcet's syndrome","Pending peer review","","all events of Behcet's syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436642","","",,,,,,575,575 -576,"[P][R] Bipolar disorder",576,"cohortNameLong : Bipolar disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Bipolar disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436665; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Bipolar disorder",,"Bipolar disorder","Pending peer review","","all events of Bipolar disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436665","","",,,,,,576,576 -577,"[P][R] Posttraumatic stress disorder",577,"cohortNameLong : Posttraumatic stress disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Posttraumatic stress disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436676; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Posttraumatic stress disorder",,"Posttraumatic stress disorder","Pending peer review","","all events of Posttraumatic stress disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436676","","",,,,,,577,577 -578,"[P][R] Insomnia",578,"cohortNameLong : Insomnia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Insomnia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436962; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Insomnia",,"Insomnia","Pending peer review","","all events of Insomnia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436962","","",,,,,,578,578 -579,"[P][R] Ankylosing spondylitis",579,"cohortNameLong : Ankylosing spondylitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Ankylosing spondylitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 437082; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Ankylosing spondylitis",,"Ankylosing spondylitis","Pending peer review","","all events of Ankylosing spondylitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437082","","",,,,,,579,579 -580,"[P][R] Respiratory syncytial virus infection",580,"cohortNameLong : Respiratory syncytial virus infection; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Respiratory syncytial virus infection. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 254058, 437222; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Respiratory syncytial virus infection",,"Respiratory syncytial virus infection","Pending peer review","","all events of Respiratory syncytial virus infection. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254058, 437222","","",,,,,,580,580 -581,"[P][R] Multiple myeloma",581,"cohortNameLong : Multiple myeloma; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Multiple myeloma. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 437233; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Multiple myeloma",,"Multiple myeloma","Pending peer review","","all events of Multiple myeloma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437233","","",,,,,,581,581 -582,"[P][R] Bleeding",582,"cohortNameLong : Bleeding; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Bleeding. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192671, 437312; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Bleeding",,"Bleeding","Pending peer review","","all events of Bleeding. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671, 437312","","",,,,,,582,582 -583,"[P][R] Glaucoma",583,"cohortNameLong : Glaucoma; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Glaucoma. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435262, 437541; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Glaucoma",,"Glaucoma","Pending peer review","","all events of Glaucoma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435262, 437541","","",,,,,,583,583 -584,"[P][R] Fever",584,"cohortNameLong : Fever; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Fever. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 437663; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Fever",,"Fever","Pending peer review","","all events of Fever. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437663","","",,,,,,584,584 -585,"[P][R] Hypokalemia",585,"cohortNameLong : Hypokalemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hypokalemia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 437833; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Hypokalemia",,"Hypokalemia","Pending peer review","","all events of Hypokalemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437833","","",,,,,,585,585 -586,"[P][R] Opioid dependence",586,"cohortNameLong : Opioid dependence; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Opioid dependence. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 438120; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Opioid dependence",,"Opioid dependence","Pending peer review","","all events of Opioid dependence. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438120","","",,,,,,586,586 -587,"[P][R] Opioid abuse",587,"cohortNameLong : Opioid abuse; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Opioid abuse. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 438130; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Opioid abuse",,"Opioid abuse","Pending peer review","","all events of Opioid abuse. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438130","","",,,,,,587,587 -588,"[P][R] Attention deficit hyperactivity disorder",588,"cohortNameLong : Attention deficit hyperactivity disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Attention deficit hyperactivity disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 438409; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Attention deficit hyperactivity disorder",,"Attention deficit hyperactivity disorder","Pending peer review","","all events of Attention deficit hyperactivity disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438409","","",,,,,,588,588 -589,"[P][R] Pre-eclampsia",589,"cohortNameLong : Pre-eclampsia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pre-eclampsia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439393; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Pre-eclampsia",,"Pre-eclampsia","Pending peer review","","all events of Pre-eclampsia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439393","","",,,,,,589,589 -590,"[P][R] Human immunodeficiency virus infection",590,"cohortNameLong : Human immunodeficiency virus infection; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Human immunodeficiency virus infection. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439727; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Human immunodeficiency virus infection",,"Human immunodeficiency virus infection","Pending peer review","","all events of Human immunodeficiency virus infection. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439727","","",,,,,,590,590 -591,"[P][R] Autism spectrum disorder",591,"cohortNameLong : Autism spectrum disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Autism spectrum disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439776, 439780; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Autism spectrum disorder",,"Autism spectrum disorder","Pending peer review","","all events of Autism spectrum disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439776, 439780","","",,,,,,591,591 -592,"[P][R] Anemia",592,"cohortNameLong : Anemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Anemia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439777; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Anemia",,"Anemia","Pending peer review","","all events of Anemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439777","","",,,,,,592,592 -593,"[P][R] Paralysis",593,"cohortNameLong : Paralysis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Paralysis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374923, 440377; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Paralysis",,"Paralysis","Pending peer review","","all events of Paralysis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 440377","","",,,,,,593,593 -594,"[P][R] Depressive disorder",594,"cohortNameLong : Depressive disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Depressive disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440383; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Depressive disorder",,"Depressive disorder","Pending peer review","","all events of Depressive disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440383","","",,,,,,594,594 -595,"[P][R] Pulmonary embolism",595,"cohortNameLong : Pulmonary embolism; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pulmonary embolism. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440417, 43530605; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Pulmonary embolism",,"Pulmonary embolism","Pending peer review","","all events of Pulmonary embolism. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440417, 43530605","","",,,,,,595,595 -596,"[P][R] Gout",596,"cohortNameLong : Gout; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Gout. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440674; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Gout",,"Gout","Pending peer review","","all events of Gout. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440674","","",,,,,,596,596 -597,"[P][R] Takayasu's disease",597,"cohortNameLong : Takayasu's disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Takayasu's disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440740; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Takayasu's disease",,"Takayasu's disease","Pending peer review","","all events of Takayasu's disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440740","","",,,,,,597,597 -598,"[P][R] Methicillin resistant Staphylococcus aureus infection",598,"cohortNameLong : Methicillin resistant Staphylococcus aureus infection; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Methicillin resistant Staphylococcus aureus infection. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440940; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Methicillin resistant Staphylococcus aureus infection",,"Methicillin resistant Staphylococcus aureus infection","Pending peer review","","all events of Methicillin resistant Staphylococcus aureus infection. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440940","","",,,,,,598,598 -599,"[P][R] Anaphylaxis",599,"cohortNameLong : Anaphylaxis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Anaphylaxis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441202; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Anaphylaxis",,"Anaphylaxis","Pending peer review","","all events of Anaphylaxis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441202","","",,,,,,599,599 -600,"[P][R] Open-angle glaucoma",600,"cohortNameLong : Open-angle glaucoma; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Open-angle glaucoma. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435262, 441284; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Open-angle glaucoma",,"Open-angle glaucoma","Pending peer review","","all events of Open-angle glaucoma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435262, 441284","","",,,,,,600,600 -601,"[P][R] Vomiting",601,"cohortNameLong : Vomiting; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Vomiting. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 27674, 441408; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Vomiting",,"Vomiting","Pending peer review","","all events of Vomiting. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27674, 441408","","",,,,,,601,601 -602,"[P][R] Anxiety",602,"cohortNameLong : Anxiety; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Anxiety. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441542, 442077; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Anxiety",,"Anxiety","Pending peer review","","all events of Anxiety. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441542, 442077","","",,,,,,602,602 -603,"[P][R] Human papilloma virus infection",603,"cohortNameLong : Human papilloma virus infection; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Human papilloma virus infection. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 140641, 441788; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Human papilloma virus infection",,"Human papilloma virus infection","Pending peer review","","all events of Human papilloma virus infection. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140641, 441788","","",,,,,,603,603 -604,"[P][R] Cranial nerve disorder",604,"cohortNameLong : Cranial nerve disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Cranial nerve disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374923, 441848; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Cranial nerve disorder",,"Cranial nerve disorder","Pending peer review","","all events of Cranial nerve disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 441848","","",,,,,,604,604 -605,"[P][R] Muscle pain",605,"cohortNameLong : Muscle pain; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Muscle pain. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 442752; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Muscle pain",,"Muscle pain","Pending peer review","","all events of Muscle pain. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442752","","",,,,,,605,605 -606,"[P][R] Stillbirth",606,"cohortNameLong : Stillbirth; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Stillbirth. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 443213, 4014454; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Stillbirth",,"Stillbirth","Pending peer review","","all events of Stillbirth. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443213, 4014454","","",,,,,,606,606 -607,"[P][R] Malignant tumor of stomach",607,"cohortNameLong : Malignant tumor of stomach; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant tumor of stomach. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 196044, 443387; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of stomach",,"Malignant tumor of stomach","Pending peer review","","all events of Malignant tumor of stomach. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196044, 443387","","",,,,,,607,607 -608,"[P][R] Malignant neoplastic disease",608,"cohortNameLong : Malignant neoplastic disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant neoplastic disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137809, 443392; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant neoplastic disease",,"Malignant neoplastic disease","Pending peer review","","all events of Malignant neoplastic disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137809, 443392","","",,,,,,608,608 -609,"[P][R] Cerebral infarction",609,"cohortNameLong : Cerebral infarction; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Cerebral infarction. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 443454; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Cerebral infarction",,"Cerebral infarction","Pending peer review","","all events of Cerebral infarction. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443454","","",,,,,,609,609 -610,"[P][R] Eclampsia",610,"cohortNameLong : Eclampsia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Eclampsia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 443700, 4116344; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Eclampsia",,"Eclampsia","Pending peer review","","all events of Eclampsia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443700, 4116344","","",,,,,,610,610 -611,"[P][R] Diabetic ketoacidosis",611,"cohortNameLong : Diabetic ketoacidosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Diabetic ketoacidosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 443727, 4009303; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Diabetic ketoacidosis",,"Diabetic ketoacidosis","Pending peer review","","all events of Diabetic ketoacidosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443727, 4009303","","",,,,,,611,611 -612,"[P][R] Acute tubular necrosis",612,"cohortNameLong : Acute tubular necrosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute tubular necrosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 444044; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Acute tubular necrosis",,"Acute tubular necrosis","Pending peer review","","all events of Acute tubular necrosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","444044","","",,,,,,612,612 -613,"[P][R] Tachycardia",613,"cohortNameLong : Tachycardia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Tachycardia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313217, 444070; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Tachycardia",,"Tachycardia","Pending peer review","","all events of Tachycardia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 444070","","",,,,,,613,613 -614,"[P][R] Venous thrombosis",614,"cohortNameLong : Venous thrombosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Venous thrombosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 444247, 43531681; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Venous thrombosis",,"Venous thrombosis","Pending peer review","","all events of Venous thrombosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","444247, 43531681","","",,,,,,614,614 -615,"[P][R] Herpes simplex",615,"cohortNameLong : Herpes simplex; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Herpes simplex. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440021, 444429; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Herpes simplex",,"Herpes simplex","Pending peer review","","all events of Herpes simplex. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440021, 444429","","",,,,,,615,615 -616,"[P][R] Acute arthritis",616,"cohortNameLong : Acute arthritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Acute arthritis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433000, 4000634; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Acute arthritis",,"Acute arthritis","Pending peer review","","all events of Acute arthritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433000, 4000634","","",,,,,,616,616 -617,"[P][R] Monoclonal gammopathy (clinical)",617,"cohortNameLong : Monoclonal gammopathy (clinical); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Monoclonal gammopathy (clinical). Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4002359; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Monoclonal gammopathy (clinical)",,"Monoclonal gammopathy (clinical)","Pending peer review","","all events of Monoclonal gammopathy (clinical). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4002359","","",,,,,,617,617 -618,"[P][R] Pulmonary arterial hypertension",618,"cohortNameLong : Pulmonary arterial hypertension; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pulmonary arterial hypertension. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4013643, 44783618; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Pulmonary arterial hypertension",,"Pulmonary arterial hypertension","Pending peer review","","all events of Pulmonary arterial hypertension. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4013643, 44783618","","",,,,,,618,618 -619,"[P][R] Gestational diabetes mellitus",619,"cohortNameLong : Gestational diabetes mellitus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Gestational diabetes mellitus. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4024659; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Gestational diabetes mellitus",,"Gestational diabetes mellitus","Pending peer review","","all events of Gestational diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4024659","","",,,,,,619,619 -620,"[P][R] Uveitis",620,"cohortNameLong : Uveitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Uveitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 434926, 4028363; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Uveitis",,"Uveitis","Pending peer review","","all events of Uveitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434926, 4028363","","",,,,,,620,620 -621,"[P][R] Renal impairment",621,"cohortNameLong : Renal impairment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Renal impairment. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 193782, 4030518; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Renal impairment",,"Renal impairment","Pending peer review","","all events of Renal impairment. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","193782, 4030518","","",,,,,,621,621 -622,"[P][R] Non-Hodgkin's lymphoma (clinical)",622,"cohortNameLong : Non-Hodgkin's lymphoma (clinical); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Non-Hodgkin's lymphoma (clinical). Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4038838, 4300704; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Non-Hodgkin's lymphoma (clinical)",,"Non-Hodgkin's lymphoma (clinical)","Pending peer review","","all events of Non-Hodgkin's lymphoma (clinical). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4038838, 4300704","","",,,,,,622,622 -623,"[P][R] Motor neuropathy with multiple conduction block",623,"cohortNameLong : Motor neuropathy with multiple conduction block; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Motor neuropathy with multiple conduction block. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4046338; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Motor neuropathy with multiple conduction block",,"Motor neuropathy with multiple conduction block","Pending peer review","","all events of Motor neuropathy with multiple conduction block. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4046338","","",,,,,,623,623 -624,"[P][R] Primary sclerosing cholangitis",624,"cohortNameLong : Primary sclerosing cholangitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Primary sclerosing cholangitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4058821; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Primary sclerosing cholangitis",,"Primary sclerosing cholangitis","Pending peer review","","all events of Primary sclerosing cholangitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4058821","","",,,,,,624,624 -625,"[P][R] Pustular psoriasis",625,"cohortNameLong : Pustular psoriasis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pustular psoriasis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4063434, 4100184; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Pustular psoriasis",,"Pustular psoriasis","Pending peer review","","all events of Pustular psoriasis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4063434, 4100184","","",,,,,,625,625 -626,"[P][R] Cirrhosis of liver",626,"cohortNameLong : Cirrhosis of liver; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Cirrhosis of liver. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194692, 4064161; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Cirrhosis of liver",,"Cirrhosis of liver","Pending peer review","","all events of Cirrhosis of liver. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194692, 4064161","","",,,,,,626,626 -627,"[P][R] Miscarriage",627,"cohortNameLong : Miscarriage; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Miscarriage. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 76482, 4067106; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Miscarriage",,"Miscarriage","Pending peer review","","all events of Miscarriage. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","76482, 4067106","","",,,,,,627,627 -628,"[P][R] Fisher's syndrome",628,"cohortNameLong : Fisher's syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Fisher's syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4070552; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Fisher's syndrome",,"Fisher's syndrome","Pending peer review","","all events of Fisher's syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4070552","","",,,,,,628,628 -629,"[P][R] Inflammatory bowel disease",629,"cohortNameLong : Inflammatory bowel disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Inflammatory bowel disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 195585, 4074815; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Inflammatory bowel disease",,"Inflammatory bowel disease","Pending peer review","","all events of Inflammatory bowel disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","195585, 4074815","","",,,,,,629,629 -630,"[P][R] Facial palsy",630,"cohortNameLong : Facial palsy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Facial palsy. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374923, 4091559; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Facial palsy",,"Facial palsy","Pending peer review","","all events of Facial palsy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 4091559","","",,,,,,630,630 -631,"[P][R] Livebirth",631,"cohortNameLong : Livebirth; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Livebirth. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4014295, 4092289; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Livebirth",,"Livebirth","Pending peer review","","all events of Livebirth. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4014295, 4092289","","",,,,,,631,631 -632,"[P][R] Antiphospholipid syndrome",632,"cohortNameLong : Antiphospholipid syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Antiphospholipid syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4098292; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Antiphospholipid syndrome",,"Antiphospholipid syndrome","Pending peer review","","all events of Antiphospholipid syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4098292","","",,,,,,632,632 -633,"[P][R] Waldenström macroglobulinemia",633,"cohortNameLong : Waldenström macroglobulinemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Waldenström macroglobulinemia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4098597; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Waldenström macroglobulinemia",,"Waldenström macroglobulinemia","Pending peer review","","all events of Waldenström macroglobulinemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4098597","","",,,,,,633,633 -634,"[P][R] Immunoglobulin A vasculitis",634,"cohortNameLong : Immunoglobulin A vasculitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Immunoglobulin A vasculitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4101602; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Immunoglobulin A vasculitis",,"Immunoglobulin A vasculitis","Pending peer review","","all events of Immunoglobulin A vasculitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4101602","","",,,,,,634,634 -635,"[P][R] Ventricular tachycardia",635,"cohortNameLong : Ventricular tachycardia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Ventricular tachycardia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 437579, 4103295; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Ventricular tachycardia",,"Ventricular tachycardia","Pending peer review","","all events of Ventricular tachycardia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437579, 4103295","","",,,,,,635,635 -636,"[P][R] Malignant tumor of breast",636,"cohortNameLong : Malignant tumor of breast; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant tumor of breast. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137809, 4112853; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of breast",,"Malignant tumor of breast","Pending peer review","","all events of Malignant tumor of breast. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137809, 4112853","","",,,,,,636,636 -637,"[P][R] Peripheral ischemia",637,"cohortNameLong : Peripheral ischemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Peripheral ischemia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4124836, 4291464; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Peripheral ischemia",,"Peripheral ischemia","Pending peer review","","all events of Peripheral ischemia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4124836, 4291464","","",,,,,,637,637 -638,"[P][R] Neoplasm of thyroid gland",638,"cohortNameLong : Neoplasm of thyroid gland; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Neoplasm of thyroid gland. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 133424, 4131909; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Neoplasm of thyroid gland",,"Neoplasm of thyroid gland","Pending peer review","","all events of Neoplasm of thyroid gland. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133424, 4131909","","",,,,,,638,638 -639,"[P][R] Deep venous thrombosis",639,"cohortNameLong : Deep venous thrombosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Deep venous thrombosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4133004, 43531681; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Deep venous thrombosis",,"Deep venous thrombosis","Pending peer review","","all events of Deep venous thrombosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4133004, 43531681","","",,,,,,639,639 -640,"[P][R] Vasculitis",640,"cohortNameLong : Vasculitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Vasculitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 199856, 4137275; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Vasculitis",,"Vasculitis","Pending peer review","","all events of Vasculitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","199856, 4137275","","",,,,,,640,640 -641,"[P][R] Pericarditis",641,"cohortNameLong : Pericarditis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pericarditis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 320116, 4138837; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Pericarditis",,"Pericarditis","Pending peer review","","all events of Pericarditis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320116, 4138837","","",,,,,,641,641 -642,"[P][R] Immune reconstitution syndrome",642,"cohortNameLong : Immune reconstitution syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Immune reconstitution syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4139034; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Immune reconstitution syndrome",,"Immune reconstitution syndrome","Pending peer review","","all events of Immune reconstitution syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4139034","","",,,,,,642,642 -643,"[P][R] Follicular non-Hodgkin's lymphoma",643,"cohortNameLong : Follicular non-Hodgkin's lymphoma; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Follicular non-Hodgkin's lymphoma. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4147411; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Follicular non-Hodgkin's lymphoma",,"Follicular non-Hodgkin's lymphoma","Pending peer review","","all events of Follicular non-Hodgkin's lymphoma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4147411","","",,,,,,643,643 -644,"[P][R] Malignant tumor of prostate",644,"cohortNameLong : Malignant tumor of prostate; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant tumor of prostate. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 200962, 4163261; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of prostate",,"Malignant tumor of prostate","Pending peer review","","all events of Malignant tumor of prostate. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200962, 4163261","","",,,,,,644,644 -645,"[P][R] Guillain-Barré syndrome",645,"cohortNameLong : Guillain-Barré syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Guillain-Barré syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4164770; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Guillain-Barré syndrome",,"Guillain-Barré syndrome","Pending peer review","","all events of Guillain-Barré syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4164770","","",,,,,,645,645 -646,"[P][R] Bradycardia",646,"cohortNameLong : Bradycardia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Bradycardia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4169095; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Bradycardia",,"Bradycardia","Pending peer review","","all events of Bradycardia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4169095","","",,,,,,646,646 -647,"[P][R] Retinopathy due to diabetes mellitus",647,"cohortNameLong : Retinopathy due to diabetes mellitus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Retinopathy due to diabetes mellitus. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 376683, 4174977; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Retinopathy due to diabetes mellitus",,"Retinopathy due to diabetes mellitus","Pending peer review","","all events of Retinopathy due to diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376683, 4174977","","",,,,,,647,647 -648,"[P][R] Malignant tumor of colon",648,"cohortNameLong : Malignant tumor of colon; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant tumor of colon. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197500, 4180790; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of colon",,"Malignant tumor of colon","Pending peer review","","all events of Malignant tumor of colon. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197500, 4180790","","",,,,,,648,648 -649,"[P][R] Malignant tumor of esophagus",649,"cohortNameLong : Malignant tumor of esophagus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant tumor of esophagus. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 26638, 4181343; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of esophagus",,"Malignant tumor of esophagus","Pending peer review","","all events of Malignant tumor of esophagus. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","26638, 4181343","","",,,,,,649,649 -650,"[P][R] Malignant tumor of ovary",650,"cohortNameLong : Malignant tumor of ovary; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant tumor of ovary. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 200051, 4181351; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant tumor of ovary",,"Malignant tumor of ovary","Pending peer review","","all events of Malignant tumor of ovary. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200051, 4181351","","",,,,,,650,650 -651,"[P][R] Dementia",651,"cohortNameLong : Dementia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Dementia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4182210; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Dementia",,"Dementia","Pending peer review","","all events of Dementia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4182210","","",,,,,,651,651 -652,"[P][R] Vasculitis of the skin",652,"cohortNameLong : Vasculitis of the skin; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Vasculitis of the skin. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4182711; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Vasculitis of the skin",,"Vasculitis of the skin","Pending peer review","","all events of Vasculitis of the skin. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4182711","","",,,,,,652,652 -653,"[P][R] Loss of sense of smell",653,"cohortNameLong : Loss of sense of smell; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Loss of sense of smell. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4185711; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Loss of sense of smell",,"Loss of sense of smell","Pending peer review","","all events of Loss of sense of smell. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4185711","","",,,,,,653,653 -654,"[P][R] Ischemic heart disease",654,"cohortNameLong : Ischemic heart disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Ischemic heart disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 321318, 4185932; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Ischemic heart disease",,"Ischemic heart disease","Pending peer review","","all events of Ischemic heart disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321318, 4185932","","",,,,,,654,654 -655,"[P][R] Aseptic meningitis",655,"cohortNameLong : Aseptic meningitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Aseptic meningitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 434869, 4201096; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Aseptic meningitis",,"Aseptic meningitis","Pending peer review","","all events of Aseptic meningitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434869, 4201096","","",,,,,,655,655 -656,"[P][R] Fatigue",656,"cohortNameLong : Fatigue; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Fatigue. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 437113, 4223659; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Fatigue",,"Fatigue","Pending peer review","","all events of Fatigue. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437113, 4223659","","",,,,,,656,656 -657,"[P][R] Paresthesia",657,"cohortNameLong : Paresthesia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Paresthesia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4236484; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Paresthesia",,"Paresthesia","Pending peer review","","all events of Paresthesia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4236484","","",,,,,,657,657 -658,"[P][R] Hepatic failure",658,"cohortNameLong : Hepatic failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hepatic failure. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Hepatic failure",,"Hepatic failure","Pending peer review","","all events of Hepatic failure. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","",,,,,,658,658 -659,"[P][R] Malignant neoplasm of liver",659,"cohortNameLong : Malignant neoplasm of liver; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant neoplasm of liver. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 198700, 4246127; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant neoplasm of liver",,"Malignant neoplasm of liver","Pending peer review","","all events of Malignant neoplasm of liver. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198700, 4246127","","",,,,,,659,659 -660,"[P][R] Juvenile rheumatoid arthritis",660,"cohortNameLong : Juvenile rheumatoid arthritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Juvenile rheumatoid arthritis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 72714, 4253901; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Juvenile rheumatoid arthritis",,"Juvenile rheumatoid arthritis","Pending peer review","","all events of Juvenile rheumatoid arthritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","72714, 4253901","","",,,,,,660,660 -661,"[P][R] Respiratory failure",661,"cohortNameLong : Respiratory failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Respiratory failure. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 319049, 4256228; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Respiratory failure",,"Respiratory failure","Pending peer review","","all events of Respiratory failure. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049, 4256228","","",,,,,,661,661 -662,"[P][R] Diverticulitis of large intestine",662,"cohortNameLong : Diverticulitis of large intestine; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Diverticulitis of large intestine. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 77025, 4260535; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Diverticulitis of large intestine",,"Diverticulitis of large intestine","Pending peer review","","all events of Diverticulitis of large intestine. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","77025, 4260535","","",,,,,,662,662 -663,"[P][R] Influenza",663,"cohortNameLong : Influenza; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Influenza. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4183609, 4266367; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Influenza",,"Influenza","Pending peer review","","all events of Influenza. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4183609, 4266367","","",,,,,,663,663 -664,"[P][R] Malaise",664,"cohortNameLong : Malaise; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malaise. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439926, 4272240; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malaise",,"Malaise","Pending peer review","","all events of Malaise. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439926, 4272240","","",,,,,,664,664 -665,"[P][R] Suicidal thoughts",665,"cohortNameLong : Suicidal thoughts; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Suicidal thoughts. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4273391; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Suicidal thoughts",,"Suicidal thoughts","Pending peer review","","all events of Suicidal thoughts. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4273391","","",,,,,,665,665 -666,"[P][R] Type B viral hepatitis",666,"cohortNameLong : Type B viral hepatitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Type B viral hepatitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439674, 4281232; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Type B viral hepatitis",,"Type B viral hepatitis","Pending peer review","","all events of Type B viral hepatitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439674, 4281232","","",,,,,,666,666 -667,"[P][R] Guttate psoriasis",667,"cohortNameLong : Guttate psoriasis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Guttate psoriasis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4284492; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Guttate psoriasis",,"Guttate psoriasis","Pending peer review","","all events of Guttate psoriasis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4284492","","",,,,,,667,667 -668,"[P][R] SLE glomerulonephritis syndrome",668,"cohortNameLong : SLE glomerulonephritis syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of SLE glomerulonephritis syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4285717; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","SLE glomerulonephritis syndrome",,"SLE glomerulonephritis syndrome","Pending peer review","","all events of SLE glomerulonephritis syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4285717","","",,,,,,668,668 -669,"[P][R] Schizoaffective disorder",669,"cohortNameLong : Schizoaffective disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Schizoaffective disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4286201; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Schizoaffective disorder",,"Schizoaffective disorder","Pending peer review","","all events of Schizoaffective disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4286201","","",,,,,,669,669 -670,"[P][R] Temporal arteritis",670,"cohortNameLong : Temporal arteritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Temporal arteritis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4290976, 4343935; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Temporal arteritis",,"Temporal arteritis","Pending peer review","","all events of Temporal arteritis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4290976, 4343935","","",,,,,,670,670 -671,"[P][R] Pregnant",671,"cohortNameLong : Pregnant; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pregnant. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4299535; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Pregnant",,"Pregnant","Pending peer review","","all events of Pregnant. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4299535","","",,,,,,671,671 -672,"[P][R] Sense of smell impaired",672,"cohortNameLong : Sense of smell impaired; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Sense of smell impaired. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4307095; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Sense of smell impaired",,"Sense of smell impaired","Pending peer review","","all events of Sense of smell impaired. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4307095","","",,,,,,672,672 -673,"[P][R] Primary malignant neoplasm of respiratory tract",673,"cohortNameLong : Primary malignant neoplasm of respiratory tract; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Primary malignant neoplasm of respiratory tract. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4311499; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Primary malignant neoplasm of respiratory tract",,"Primary malignant neoplasm of respiratory tract","Pending peer review","","all events of Primary malignant neoplasm of respiratory tract. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4311499","","",,,,,,673,673 -674,"[P][R] Degeneration of retina",674,"cohortNameLong : Degeneration of retina; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Degeneration of retina. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 376966, 4318985; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Degeneration of retina",,"Degeneration of retina","Pending peer review","","all events of Degeneration of retina. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376966, 4318985","","",,,,,,674,674 -675,"[P][R] Pulmonary hypertension",675,"cohortNameLong : Pulmonary hypertension; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Pulmonary hypertension. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4322024, 4339214; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Pulmonary hypertension",,"Pulmonary hypertension","Pending peer review","","all events of Pulmonary hypertension. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4322024, 4339214","","",,,,,,675,675 -676,"[P][R] Necrosis of artery",676,"cohortNameLong : Necrosis of artery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Necrosis of artery. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4344489,320749,319047; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-22","rao@ohdsi.org","Necrosis of artery",,"Necrosis of artery","Pending peer review","","all events of Necrosis of artery. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4344489,320749,319047","","",,,,,,676,676 -677,"[P][R] Preterm labor with preterm delivery",677,"cohortNameLong : Preterm labor with preterm delivery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Preterm labor with preterm delivery. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 36712702, 45757176; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Preterm labor with preterm delivery",,"Preterm labor with preterm delivery","Pending peer review","","all events of Preterm labor with preterm delivery. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","36712702, 45757176","","",,,,,,677,677 -678,"[P][R] COVID-19",678,"cohortNameLong : COVID-19; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of COVID-19. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 37311061; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","COVID-19",,"COVID-19","Pending peer review","","all events of COVID-19. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37311061","","",,,,,,678,678 -679,"[P][R] Takotsubo cardiomyopathy",679,"cohortNameLong : Takotsubo cardiomyopathy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Takotsubo cardiomyopathy. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 40479589; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Takotsubo cardiomyopathy",,"Takotsubo cardiomyopathy","Pending peer review","","all events of Takotsubo cardiomyopathy. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40479589","","",,,,,,679,679 -680,"[P][R] Mantle cell lymphoma",680,"cohortNameLong : Mantle cell lymphoma; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Mantle cell lymphoma. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 40481901; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Mantle cell lymphoma",,"Mantle cell lymphoma","Pending peer review","","all events of Mantle cell lymphoma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40481901","","",,,,,,680,680 -681,"[P][R] Malignant neoplasm of anorectum",681,"cohortNameLong : Malignant neoplasm of anorectum; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Malignant neoplasm of anorectum. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 74582, 40481902; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Malignant neoplasm of anorectum",,"Malignant neoplasm of anorectum","Pending peer review","","all events of Malignant neoplasm of anorectum. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","74582, 40481902","","",,,,,,681,681 -682,"[P][R] Marginal zone lymphoma",682,"cohortNameLong : Marginal zone lymphoma; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Marginal zone lymphoma. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 40490918; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Marginal zone lymphoma",,"Marginal zone lymphoma","Pending peer review","","all events of Marginal zone lymphoma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40490918","","",,,,,,682,682 -683,"[P][R] Antineutrophil cytoplasmic antibody positive vasculitis",683,"cohortNameLong : Antineutrophil cytoplasmic antibody positive vasculitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Antineutrophil cytoplasmic antibody positive vasculitis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313223, 42535714; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Antineutrophil cytoplasmic antibody positive vasculitis",,"Antineutrophil cytoplasmic antibody positive vasculitis","Pending peer review","","all events of Antineutrophil cytoplasmic antibody positive vasculitis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313223, 42535714","","",,,,,,683,683 -684,"[P][R] Sensory disorder of smell and/or taste",684,"cohortNameLong : Sensory disorder of smell and/or taste; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Sensory disorder of smell and/or taste. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 43530714; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Sensory disorder of smell and/or taste",,"Sensory disorder of smell and/or taste","Pending peer review","","all events of Sensory disorder of smell and/or taste. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","43530714","","",,,,,,684,684 -685,"[P][R] Cardiac arrhythmia",685,"cohortNameLong : Cardiac arrhythmia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Cardiac arrhythmia. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313217, 44784217; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Cardiac arrhythmia",,"Cardiac arrhythmia","Pending peer review","","all events of Cardiac arrhythmia. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 44784217","","",,,,,,685,685 -686,"[P][R] Fracture of bone of hip region",686,"cohortNameLong : Fracture of bone of hip region; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Fracture of bone of hip region. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 434500, 45763653; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Fracture of bone of hip region",,"Fracture of bone of hip region","Pending peer review","","all events of Fracture of bone of hip region. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434500, 45763653","","",,,,,,686,686 -687,"[P][R] Chronic kidney disease",687,"cohortNameLong : Chronic kidney disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Chronic kidney disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 193782, 46271022; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Chronic kidney disease",,"Chronic kidney disease","Pending peer review","","all events of Chronic kidney disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","193782, 46271022","","",,,,,,687,687 -688,"[P][R] Death",688,"cohortNameLong : Death; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Suicide. Persons exit on cohort end date; -hashTag : #Referent, #Observation; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440925; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-20","rao@ohdsi.org","Death",,"Death","Pending peer review","","all events of Suicide. Persons exit on cohort end date","#Referent, #Observation","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440925","","",,,,,,688,688 -689,"[P][R] Newborn death",689,"cohortNameLong : Newborn death; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Newborn death. Persons exit on cohort end date; -hashTag : #Referent, #Observation; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4079843; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Newborn death",,"Newborn death","Pending peer review","","all events of Newborn death. Persons exit on cohort end date","#Referent, #Observation","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4079843","","",,,,,,689,689 -690,"[P][R] Suicide",690,"cohortNameLong : Suicide; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Death. Persons exit on cohort end date; -hashTag : #Referent, #Observation; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4306655; -ohdsiForumPost : ; -replaces : ; -","2023-06-25","2023-09-19","rao@ohdsi.org","Suicide",,"Suicide","Pending peer review","","all events of Death. Persons exit on cohort end date","#Referent, #Observation","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4306655","","",,,,,,690,690 -691,"Transverse myelitis or symptoms indexed on symptoms or diagnosis",691,"cohortNameLong : Transverse myelitis or symptoms indexed on symptoms or diagnosis; -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.9.0; -logicDescription : events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia; -hashTag : #Accepted, #Level2; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : Evan Minty; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 79908, 139803, 443904; -ohdsiForumPost : ; -replaces : ; -","2023-06-26","2023-09-19","rao@ohdsi.org","Transverse myelitis or symptoms indexed on symptoms or diagnosis",,"Transverse myelitis or symptoms indexed on symptoms or diagnosis","Accepted","3.9.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 139803, 443904","","",,,,,,691,691 -692,"Transverse myelitis indexed on diagnosis",692,"cohortNameLong : Transverse myelitis indexed on diagnosis; -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.7.0; -logicDescription : events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia; -hashTag : #Accepted, #Level2; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : Evan Minty; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 139803, 443904; -ohdsiForumPost : ; -replaces : ; -","2023-06-26","2023-09-19","rao@ohdsi.org","Transverse myelitis indexed on diagnosis",,"Transverse myelitis indexed on diagnosis","Accepted","3.7.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","139803, 443904","","",,,,,,692,692 -693,"Acquired Neutropenia or unspecified leukopenia",693,"cohortNameLong : Acquired Neutropenia or unspecified leukopenia; -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.11.0; -logicDescription : all events of neutropenia indexed on diagnosis or lab results with no congenital or genetic neutropenia; -hashTag : #PhenotypePhebruary, #2023, #Neutropenia; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : Anna Ostropolets; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435224; -ohdsiForumPost : ; -replaces : ; -","2023-06-26","2023-09-19","rao@ohdsi.org","Acquired Neutropenia or unspecified leukopenia",,"Acquired Neutropenia or unspecified leukopenia","Accepted","3.11.0","all events of neutropenia indexed on diagnosis or lab results with no congenital or genetic neutropenia","#PhenotypePhebruary, #2023, #Neutropenia","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Anna Ostropolets","","435224","","",,,,,,693,693 -694,"Appendicitis during Inpatient visit",694,"cohortNameLong : Appendicitis during Inpatient visit; -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.11.0; -logicDescription : events of appendicitis with an inpatient or ER visit with no events in 365 days clean window; -hashTag : #PhenotypePhebruary, #2023; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : Azza Shoaibi; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440448, 441604; -ohdsiForumPost : ; -replaces : ; -","2023-06-26","2023-09-19","rao@ohdsi.org","Appendicitis during Inpatient visit",,"Appendicitis during Inpatient visit","Accepted","3.11.0","events of appendicitis with an inpatient or ER visit with no events in 365 days clean window","#PhenotypePhebruary, #2023","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Azza Shoaibi","","440448, 441604","","",,,,,,694,694 -695,"[P][R] Optic nerve glioma",695,"cohortNameLong : Optic nerve glioma; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Optic nerve glioma. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4112970; -ohdsiForumPost : ; -replaces : ; -","2023-06-26","2023-09-19","rao@ohdsi.org","Optic nerve glioma",,"Optic nerve glioma","Pending peer review","","all events of Optic nerve glioma. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4112970","","",,,,,,695,695 -696,"[P][R] Neurofibromatosis type 2",696,"cohortNameLong : Neurofibromatosis type 2; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Neurofibromatosis type 2. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 380975; -ohdsiForumPost : ; -replaces : ; -","2023-06-26","2023-09-19","rao@ohdsi.org","Neurofibromatosis type 2",,"Neurofibromatosis type 2","Pending peer review","","all events of Neurofibromatosis type 2. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","380975","","",,,,,,696,696 -697,"[P][R] Neurofibromatosis type 1",697,"cohortNameLong : Neurofibromatosis type 1; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Neurofibromatosis type 1. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377252; -ohdsiForumPost : ; -replaces : ; -","2023-06-26","2023-09-19","rao@ohdsi.org","Neurofibromatosis type 1",,"Neurofibromatosis type 1","Pending peer review","","all events of Neurofibromatosis type 1. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377252","","",,,,,,697,697 -698,"[P][R] Neurofibromatosis syndrome",698,"cohortNameLong : Neurofibromatosis syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Neurofibromatosis syndrome. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 376938; -ohdsiForumPost : ; -replaces : ; -","2023-06-26","2023-09-19","rao@ohdsi.org","Neurofibromatosis syndrome",,"Neurofibromatosis syndrome","Pending peer review","","all events of Neurofibromatosis syndrome. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376938","","",,,,,,698,698 -699,"[P][R] Major Depressive Disorder",699,"cohortNameLong : Major Depressive Disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Major Depressive Disorder. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4152280, 4282096; -ohdsiForumPost : ; -replaces : ; -","2023-06-26","2023-09-19","rao@ohdsi.org","Major Depressive Disorder",,"Major Depressive Disorder","Pending peer review","","all events of Major Depressive Disorder. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4152280, 4282096","","",,,,,,699,699 -701,"[P][R] Ascites",701,"cohortNameLong : Ascites; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Ascites. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 200528; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-07-09","2023-09-19","rao@ohdsi.org","Ascites",,"Ascites","Pending peer review","","all events of Ascites. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200528","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,701,701 -702,"[P] Alanine aminotransferase (ALT) elevated",702,"cohortNameLong : Alanine aminotransferase (ALT) elevated; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Alanine aminotransferase (ALT) elevated; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4146380; -ohdsiForumPost : ; -replaces : ; -","2023-07-11","2023-09-25","rao@ohdsi.org","Alanine aminotransferase (ALT) elevated",,"Alanine aminotransferase (ALT) elevated","Pending peer review","","All events of Alanine aminotransferase (ALT) elevated","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4146380","","",,,,,,702,702 -703,"[P] Aspartate aminotransferase (AST) elevated",703,"cohortNameLong : Aspartate aminotransferase (AST) elevated; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Aspartate aminotransferase (ALT) elevated; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4263457; -ohdsiForumPost : ; -replaces : ; -","2023-07-11","2023-09-25","rao@ohdsi.org","Aspartate aminotransferase (AST) elevated",,"Aspartate aminotransferase (AST) elevated","Pending peer review","","All events of Aspartate aminotransferase (ALT) elevated","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4263457","","",,,,,,703,703 -705,"[P] Total Bilirubin elevated",705,"cohortNameLong : Total Bilirubin elevated; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Total Bilirubin elevated; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4230543; -ohdsiForumPost : ; -replaces : ; -","2023-07-11","2023-09-25","rao@ohdsi.org","Total Bilirubin elevated",,"Total Bilirubin elevated","Pending peer review","","Total Bilirubin elevated","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4230543","","",,,,,,705,705 -706,"[P] Prothrombin time (PT) elevated",706,"cohortNameLong : Prothrombin time (PT) elevated; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Prothrombin time (PT) elevated; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4055672; -ohdsiForumPost : ; -replaces : ; -","2023-07-11","2023-09-25","rao@ohdsi.org","Prothrombin time (PT) elevated",,"Prothrombin time (PT) elevated","Pending peer review","","Prothrombin time (PT) elevated","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4055672","","",,,,,,706,706 -707,"Inpatient Hospitalization (0Pe, 1Era)",707,"cohortNameLong : Inpatient Hospitalization (0Pe, 1Era); -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.4.0; -logicDescription : All events of Inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process; -hashTag : #standard, #Visits; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : 23; -","2023-07-12","2023-09-19","rao@ohdsi.org","Inpatient Hospitalization (0Pe, 1Era)",,"Inpatient Hospitalization (0Pe, 1Era)","Accepted","3.4.0","All events of Inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","23",,,,,,707,707 -708,"[P] International normalized ratio (INR) elevated",708,"cohortNameLong : International normalized ratio (INR); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : International normalized ratio (INR); -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4306239; -ohdsiForumPost : ; -replaces : ; -","2023-07-14","2023-09-25","rao@ohdsi.org","International normalized ratio (INR) elevated",,"International normalized ratio (INR)","Pending peer review","","International normalized ratio (INR)","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4306239","","",,,,,,708,708 -709,"[P][R] Chronic liver disease",709,"cohortNameLong : Chronic liver disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Chronic liver disease. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4212540; -ohdsiForumPost : ; -replaces : ; -","2023-07-14","2023-09-19","rao@ohdsi.org","Chronic liver disease",,"Chronic liver disease","Pending peer review","","all events of Chronic liver disease. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4212540","","",,,,,,709,709 -710,"[P] Cirrhosis of liver or its sequela",710,"cohortNameLong : Cirrhosis of liver or its sequela; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Cirrhosis of liver or its sequela. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4064161; -ohdsiForumPost : ; -replaces : ; -","2023-07-19","2023-09-25","rao@ohdsi.org","Cirrhosis of liver or its sequela",,"Cirrhosis of liver or its sequela","Pending peer review","","all events of Cirrhosis of liver or its sequela. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4064161","","",,,,,,710,710 -711,"[P][R] Transplanted liver present",711,"cohortNameLong : Transplanted liver present; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Transplanted liver present. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 42537742; -ohdsiForumPost : ; -replaces : ; -","2023-07-19","2023-09-19","rao@ohdsi.org","Transplanted liver present",,"Transplanted liver present","Pending peer review","","all events of Transplanted liver present. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","42537742","","",,,,,,711,711 -712,"[P] Viral hepatitis including history of",712,"cohortNameLong : Viral hepatitis including history of; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Viral hepatitis including history of; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4291005; -ohdsiForumPost : ; -replaces : ; -","2023-07-19","2023-09-25","rao@ohdsi.org","Viral hepatitis including history of",,"Viral hepatitis including history of","Pending peer review","","All events of Viral hepatitis including history of","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4291005","","",,,,,,712,712 -713,"[P] Alcoholic hepatitis or alcohol liver disorder",713,"cohortNameLong : Alcoholic hepatitis or alcohol liver disorder; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Alcoholic hepatitis or alcohol liver disorder; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4340383; -ohdsiForumPost : ; -replaces : ; -","2023-07-19","2023-09-25","rao@ohdsi.org","Alcoholic hepatitis or alcohol liver disorder",,"Alcoholic hepatitis or alcohol liver disorder","Pending peer review","","all events of Alcoholic hepatitis or alcohol liver disorder","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4340383","","",,,,,,713,713 -714,"[P][R] Endometriosis (clinical)",714,"cohortNameLong : Endometriosis (clinical); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Endometriosis (clinical). Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433527; -ohdsiForumPost : ; -replaces : ; -","2023-07-19","2023-09-19","rao@ohdsi.org","Endometriosis (clinical)",,"Endometriosis (clinical)","Pending peer review","","all events of Endometriosis (clinical). Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433527","","",,,,,,714,714 -715,"[P] Hepatic fibrosis",715,"cohortNameLong : Hepatic fibrosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hepatic Fibrosis. Persons exit on cohort end date; -hashTag : #Referent, #Condition; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4064161,4267417; -ohdsiForumPost : ; -replaces : ; -","2023-07-19","2023-09-25","rao@ohdsi.org","Hepatic fibrosis",,"Hepatic fibrosis","Pending peer review","","all events of Hepatic Fibrosis. Persons exit on cohort end date","#Referent, #Condition","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4064161,4267417","","",,,,,,715,715 -716,"[P] Acute Hepatic Injury",716,"cohortNameLong : Acute Hepatic Injury; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Acute Hepatic Injury; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194990; -ohdsiForumPost : ; -replaces : ; -","2023-07-20","2023-09-25","rao@ohdsi.org","Acute Hepatic Injury",,"Acute Hepatic Injury","Pending","","Acute Hepatic Injury","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194990","","",,,,,,716,716 -717,"[P] Portal hypertension or esophageal varices",717,"cohortNameLong : Portal vein thrombosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all event of portal hypertension or esophageal varices; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192680; -ohdsiForumPost : ; -replaces : ; -","2023-07-20","2023-09-25","rao@ohdsi.org","Portal hypertension or esophageal varices",,"Portal vein thrombosis","Pending peer review","","all event of portal hypertension or esophageal varices","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192680","","",,,,,,717,717 -719,"[P] Acute Hepatic Injury or jaundice while inpatient with no cooccurring certain liver disease",719,"cohortNameLong : ; -librarian : rao@ohdsi.org; -status : ; -addedVersion : ; -logicDescription : ; -hashTag : ; -contributors : ; -contributorOrcIds : ; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-07-24","2023-09-19","rao@ohdsi.org","Acute Hepatic Injury or jaundice while inpatient with no cooccurring certain liver disease",,"","","","","","","","","","","","","",,,,,,719,719 -720,"[P] Aplastic Anemia",720,"cohortNameLong : Aplastic Anemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of aplastic anemia; -hashTag : #DME; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137829; -ohdsiForumPost : ; -replaces : ; -","2023-07-26","2024-09-11","rao@ohdsi.org","Aplastic Anemia",,"Aplastic Anemia","Pending peer review","","all events of aplastic anemia","#DME","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137829","","",,,,,,720,720 -721,"[P] Sudden New Onset Blindness",721,"cohortNameLong : Sudden New Onset Blindness; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Sudden New Onset Blindness; -hashTag : ; -contributors : Gowtham A. Rao, Azza Shoaibi; -contributorOrcIds : '0000-0002-4949-7236','0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377556; -ohdsiForumPost : ; -replaces : ; -","2023-07-27","2023-09-19","rao@ohdsi.org","Sudden New Onset Blindness",,"Sudden New Onset Blindness","Pending peer review","","all events of Sudden New Onset Blindness","","Gowtham A. Rao, Azza Shoaibi","'0000-0002-4949-7236','0000-0002-6976-2594'","'OHDSI'","","","377556","","",,,,,,721,721 -722,"[P] Endometriosis indexed on procedure with two or more diagnosis among females 15 to 49",722,"cohortNameLong : Endometriosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : An occurrence of procedure expected to be performed for persons with endometriosis with a diagnosis of endometriosis within 30 days of the procedure. Should have two more diagnosis in the future. Should be female. Should be between 15 to 49 years. A person is expected to be in the phenotype for the rest of their life (i.e. the disease never ends); -hashTag : ; -contributors : 'Molle McKillop', 'Noémie Elhadad'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433527; -ohdsiForumPost : ; -replaces : ; -","2023-08-22","2023-09-19","rao@ohdsi.org","Endometriosis indexed on procedure with two or more diagnosis among females 15 to 49",,"Endometriosis","Pending peer review","","An occurrence of procedure expected to be performed for persons with endometriosis with a diagnosis of endometriosis within 30 days of the procedure. Should have two more diagnosis in the future. Should be female. Should be between 15 to 49 years. A person is expected to be in the phenotype for the rest of their life (i.e. the disease never ends)","","'Molle McKillop', 'Noémie Elhadad'","","'OHDSI'","","","433527","","",,,,,,722,722 -723,"[P] First Acute Hepatic Failure with no known severe liver disease",723,"cohortNameLong : Earliest event of Acute Hepatic Failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : This definition, is modeling acute hepatic failure, assuming that acute hepatic failure by definition is severe liver injury with hepatic coma in the absence of known liver disease. This definition include hepatic coma that is potentially due to viral hepatis or alcohol use.; -hashTag : #Disease, #DME; -contributors : Azza Shoaibi; -contributorOrcIds : '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2023-08-22","2024-09-11","rao@ohdsi.org","First Acute Hepatic Failure with no known severe liver disease",,"Earliest event of Acute Hepatic Failure","Pending peer review","","This definition, is modeling acute hepatic failure, assuming that acute hepatic failure by definition is severe liver injury with hepatic coma in the absence of known liver disease. This definition include hepatic coma that is potentially due to viral hepatis or alcohol use.","#Disease, #DME","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","4245975","","",,,,,,723,723 -724,"[P] First Acute Hepatic Failure with no known liver disease",724,"cohortNameLong : Earliest event of Acute Hepatic Failure, NO viral hepatitis or alcoholic hepatic failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : This definition, is modeling acute hepatic failure, assuming that acute hepatic failure by definition is severe liver injury with hepatic coma in the absence of known liver disease. This definition excludes persons with viral hepatis or alcohol use.; -hashTag : #Disease, #DME; -contributors : Azza Shoaibi; -contributorOrcIds : '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2023-08-22","2024-09-11","rao@ohdsi.org","First Acute Hepatic Failure with no known liver disease",,"Earliest event of Acute Hepatic Failure, NO viral hepatitis or alcoholic hepatic failure","Pending peer review","","This definition, is modeling acute hepatic failure, assuming that acute hepatic failure by definition is severe liver injury with hepatic coma in the absence of known liver disease. This definition excludes persons with viral hepatis or alcohol use.","#Disease, #DME","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","4245975","","",,,,,,724,724 -725,"[P] All events of Acute Kidney Injury (AKI), with a washout period of 30 days",725,"cohortNameLong : All events of Acute Kidney Injury (AKI); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd,. Applying a washout period of 30 days between observed events excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior . patients exit the cohort 7 days post index..; -hashTag : #Disease, #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197320; -ohdsiForumPost : ; -replaces : ; -","2023-08-22","2024-09-11","rao@ohdsi.org","All events of Acute Kidney Injury (AKI), with a washout period of 30 days",,"All events of Acute Kidney Injury (AKI)","Pending peer review","","All events of Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd,. Applying a washout period of 30 days between observed events excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior . patients exit the cohort 7 days post index..","#Disease, #DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","197320","","",,,,,,725,725 -726,"[P] All events of Anaphylaxis, Mini-Sentinel",726," - cohortNameLong : All events of Anaphylaxis, Mini-Sentinel; - cohortNameAtlas : [P] All events of Anaphylaxis, Mini-Sentinel; - librarian : rao@ohdsi.org; - status : Pending peer review; - addedVersion : ; - logicDescription : All events of anaphylaxis in inpatient setting, or anaphylaxis in outpatient along with symptoms or treatment for anaphylaxis ; - hashTag : #Disease, #DME, #replication; - contributors : Azza Shoaibi; - contributorOrcIds : '0000-0002-6976-2594'; - contributorOrganizations : 'OHDSI'; - peerReviewers : ; - peerReviewerOrcIds : ; - recommendedEraPersistenceDurations : 1; - recommendedEraCollapseDurations : 0; - recommendSubsetOperators : ; - recommendedReferentConceptIds : 441202; - ohdsiForumPost : ;","2023-08-22","2024-09-11","rao@ohdsi.org","All events of Anaphylaxis, Mini-Sentinel",,"All events of Anaphylaxis, Mini-Sentinel","Pending peer review","","All events of anaphylaxis in inpatient setting, or anaphylaxis in outpatient along with symptoms or treatment for anaphylaxis","#Disease, #DME, #replication","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","441202","",,,"[P] All events of Anaphylaxis, Mini-Sentinel","1","0","",726,726 -727,"[P] All events of Angioedema, with a washout period of 180 days",727,"cohortNameLong : Angioedema; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of angioedema, indexed on a diagnosis of angioedema or urticaria followed by a diagnosis of angioedema within 3 days. With no diagnosis of angioedema in the last 180 days of washout period. Events are excluded if they have recent cardiac edema, cellulitis, erysipelas, dermatitis or eczema, lymphedema or insect bites 7 days before to and including index date. Cohort exist is 1 day post cohort end date; -hashTag : #Disease, #DME; -contributors : Azza Shoaibi; -contributorOrcIds : '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 139900; -ohdsiForumPost : ; -replaces : ; -","2023-08-22","2024-09-11","rao@ohdsi.org","All events of Angioedema, with a washout period of 180 days",,"Angioedema","Pending peer review","","All events of angioedema, indexed on a diagnosis of angioedema or urticaria followed by a diagnosis of angioedema within 3 days. With no diagnosis of angioedema in the last 180 days of washout period. Events are excluded if they have recent cardiac edema, cellulitis, erysipelas, dermatitis or eczema, lymphedema or insect bites 7 days before to and including index date. Cohort exist is 1 day post cohort end date","#Disease, #DME","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","139900","","",,,,,,727,727 -728,"[P] Autoimmune hemolytic anemia events not including evans syndrome",728,"cohortNameLong : Autoimmune hemolytic anemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Autoimmune hemolytic anemia events not including evans syndrome; -hashTag : #Disease, #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441269; -ohdsiForumPost : ; -replaces : ; -","2023-08-23","2024-09-11","rao@ohdsi.org","Autoimmune hemolytic anemia events not including evans syndrome",,"Autoimmune hemolytic anemia","Pending peer review","","All events of Autoimmune hemolytic anemia events not including evans syndrome","#Disease, #DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","441269","","",,,,,,728,728 -729,"[P] Autoimmune hepatitis, with a washout period of 365 days",729,"cohortNameLong : All events of Autoimmune hepatitis, with a washout period of 365 days; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of autoimmune hepatitis, indexed on diagnosis of autoimmune hepatitis, excluding event occurring in prior 365days washout period. Also excluded are events that have chronic liver diseases that may have similar presentation such as viral hepatitis, drug induced liver injury, alcoholic liver disease, and no systemic lupus erythematosus in past 365 and including index. Cohort exist is 1 day post end date.; -hashTag : #DME; -contributors : Azza Shoaibi; -contributorOrcIds : '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 200762; -ohdsiForumPost : ; -replaces : ; -","2023-08-23","2024-09-11","rao@ohdsi.org","Autoimmune hepatitis, with a washout period of 365 days",,"All events of Autoimmune hepatitis, with a washout period of 365 days","Pending peer review","","all events of autoimmune hepatitis, indexed on diagnosis of autoimmune hepatitis, excluding event occurring in prior 365days washout period. Also excluded are events that have chronic liver diseases that may have similar presentation such as viral hepatitis, drug induced liver injury, alcoholic liver disease, and no systemic lupus erythematosus in past 365 and including index. Cohort exist is 1 day post end date.","#DME","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","200762","","",,,,,,729,729 -730,"[P] Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis",730,"cohortNameLong : All events Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of acute pancreatitis, indexed on an inpatient or emergency or an out patient visit (restricted to overlapping with an Emergency room procedures) with a diagnosis of Acute pancreatitis. With 1. no such events in prior washout window of 365 days 2. and no history of chronic pancreatitis any time prior or hereditary pancreatitis any time pre or post index. Cohort exit is 7 days post index.; -hashTag : ; -contributors : Azza Shoaibi; -contributorOrcIds : '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4192640, 199074; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848; -replaces : ; -","2023-08-23","2024-09-11","rao@ohdsi.org","Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis",,"All events Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis","Pending peer review","","all events of acute pancreatitis, indexed on an inpatient or emergency or an out patient visit (restricted to overlapping with an Emergency room procedures) with a diagnosis of Acute pancreatitis. With 1. no such events in prior washout window of 365 days 2. and no history of chronic pancreatitis any time prior or hereditary pancreatitis any time pre or post index. Cohort exit is 7 days post index.","","Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","4192640, 199074","https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848","",,,,,,730,730 -731,"[P] Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions",731,"cohortNameLong : All events of Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of sudden Hearing Loss, indexed on diagnosis of sudden hearing loss or a diagnosis or observation of any hearing loss that co-occurred with treatments or investigations within 1 day before to 21 days after index. Events much had 1. No hearing loss diagnosis or observation events in prior washout window of 365 days 2. No congenital anomaly of hearing any time 2. No history of middle or inner ear related diseases any time prior to 7 days before index. 3. Has not had audiometry 365 days before to 30 days prior index. exist cohort 30 days post end date.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374053, 377889; -ohdsiForumPost : ; -replaces : ; -","2023-08-23","2024-09-11","rao@ohdsi.org","Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions",,"All events of Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions","Pending peer review","","all events of sudden Hearing Loss, indexed on diagnosis of sudden hearing loss or a diagnosis or observation of any hearing loss that co-occurred with treatments or investigations within 1 day before to 21 days after index. Events much had 1. No hearing loss diagnosis or observation events in prior washout window of 365 days 2. No congenital anomaly of hearing any time 2. No history of middle or inner ear related diseases any time prior to 7 days before index. 3. Has not had audiometry 365 days before to 30 days prior index. exist cohort 30 days post end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","374053, 377889","","",,,,,,731,731 -732,"[P] Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS) with clean window",732,"cohortNameLong : All events of Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Severe Cutaneous Adverse Reaction SCAR, indexed on the diagnosis for Drug Rash With Eosinophilia, or Systemic Symptoms (DRESS) or Erythema Multiforme or Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis. Excluding events in prior 365 days washout period. cohort exist 3 days post end date.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 141651, 45765791; -ohdsiForumPost : ; -replaces : ; -","2023-08-23","2024-09-11","rao@ohdsi.org","Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS) with clean window",,"All events of Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS)","Pending peer review","","All events of Severe Cutaneous Adverse Reaction SCAR, indexed on the diagnosis for Drug Rash With Eosinophilia, or Systemic Symptoms (DRESS) or Erythema Multiforme or Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis. Excluding events in prior 365 days washout period. cohort exist 3 days post end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","141651, 45765791","","",,,,,,732,732 -733,"[P] Drug Rash with Eosinophilia and Systemic Symptoms (DRESS) with clean window",733,"cohortNameLong : All events Drug Rash with Eosinophilia and Systemic Symptoms (DRESS); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), index on diagnosis of (DRESS), excluding DRESS events in the last 365 day washout period. Cohort exist is 1 day after end date.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 45765791; -ohdsiForumPost : ; -replaces : ; -","2023-08-23","2024-09-11","rao@ohdsi.org","Drug Rash with Eosinophilia and Systemic Symptoms (DRESS) with clean window",,"All events Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), index on diagnosis of (DRESS), excluding DRESS events in the last 365 day washout period. Cohort exist is 1 day after end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","45765791","","",,,,,,733,733 -734,"[P] Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)",734,"cohortNameLong : All events Drug Rash with Eosinophilia and Systemic Symptoms (DRESS); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), index on diagnosis of (DRESS); -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 45765791; -ohdsiForumPost : ; -replaces : ; -","2023-08-23","2023-10-03","rao@ohdsi.org","Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)",,"All events Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), index on diagnosis of (DRESS)","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","45765791","","",,,,,,734,734 -735,"[P] Acute Liver Injury indexed on diagnosis or symptoms with no chronic hepatic failure",735,"cohortNameLong : All events of Acute Liver Injury; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, excluding events of Acute Liver Injury in prior 365 washout period. Excluding events with chronic hepatic failure on the same index date. patients exist cohort 90 days post end date.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194990; -ohdsiForumPost : ; -replaces : ; -","2023-08-23","2024-09-11","rao@ohdsi.org","Acute Liver Injury indexed on diagnosis or symptoms with no chronic hepatic failure",,"All events of Acute Liver Injury","Pending","","All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, excluding events of Acute Liver Injury in prior 365 washout period. Excluding events with chronic hepatic failure on the same index date. patients exist cohort 90 days post end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","194990","","",,,,,,735,735 -736,"[P] Acute Liver Injury NO viral, alcoholic, chronic hepatic failure",736,"cohortNameLong : All events of Acute Liver Injury, NO viral hepatitis or alcoholic hepatic failure; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, excluding events of Acute Liver Injury in prior 365 washout period. Excluding events with chronic hepatic failure on the same index date. patients exist cohort 90 days post end date.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194990; -ohdsiForumPost : ; -replaces : ; -","2023-08-23","2024-09-11","rao@ohdsi.org","Acute Liver Injury NO viral, alcoholic, chronic hepatic failure",,"All events of Acute Liver Injury, NO viral hepatitis or alcoholic hepatic failure","Pending","","All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, excluding events of Acute Liver Injury in prior 365 washout period. Excluding events with chronic hepatic failure on the same index date. patients exist cohort 90 days post end date.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","194990","","",,,,,,736,736 -737,"[P] Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era",737,"cohortNameLong : Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of febrile neutropenia, indexed on the diagnosis of febrile neutropenia or a fever (diagnosis or measurement) cooccurring with neutropenia (diagnosis or measurement) within 1 day , or a diagnosis of clinically significant infection cooccurring with neutropenia (diagnosis or measurement) within 1 day. Restricted to events overlapping with in an inpatient or emergency room visit and excluding events with a normal neutrophil count (ANC) on index. Cohort exit is 3 days after end date. Recurrent events will be combined into event eras if they are within 90 days of each other.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257011, 437663, 4170143, 4250734; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-febrile-neutropenia-or-neutropenic-fever/17876; -replaces : ; -","2023-08-23","2024-09-11","rao@ohdsi.org","Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era",,"Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era","Pending peer review","","All events of febrile neutropenia, indexed on the diagnosis of febrile neutropenia or a fever (diagnosis or measurement) cooccurring with neutropenia (diagnosis or measurement) within 1 day , or a diagnosis of clinically significant infection cooccurring with neutropenia (diagnosis or measurement) within 1 day. Restricted to events overlapping with in an inpatient or emergency room visit and excluding events with a normal neutrophil count (ANC) on index. Cohort exit is 3 days after end date. Recurrent events will be combined into event eras if they are within 90 days of each other.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","257011, 437663, 4170143, 4250734","https//forums.ohdsi.org/t/phenotype-submission-febrile-neutropenia-or-neutropenic-fever/17876","",,,,,,737,737 -738,"[P] Autoimmune hemolytic anemia",738,"cohortNameLong : Autoimmune hemolytic anemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Autoimmune hemolytic anemia events not including evans syndrome; -hashTag : #Disease, #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441269; -ohdsiForumPost : ; -replaces : ; -","2023-08-23","2023-10-03","rao@ohdsi.org","Autoimmune hemolytic anemia",,"Autoimmune hemolytic anemia","Pending peer review","","All events of Autoimmune hemolytic anemia events not including evans syndrome","#Disease, #DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","441269","","",,,,,,738,738 -739,"[P] All events of Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days",739,"cohortNameLong : Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Immune Thrombocytopenia (ITP), excluding such events in prior 365 days as washout period, also excluded are 1. events with a diagnosis of congenital or genetic thrombocytopenia all time prior to 7 days post index, 2. Events with a platelet count of >100 or a diagnosis of thrombocytosis on day of index 3. Events with co-occurring neutropenia, pancytopenia, bone marrow involvement, anemia 7 days within index. Persons exit after 180 days or when a normal platelet count measure is observed.; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433749, 4103532; -ohdsiForumPost : ; -replaces : ; -","2023-08-23","2024-09-11","rao@ohdsi.org","All events of Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days",,"Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days","Pending peer review","","all events of Immune Thrombocytopenia (ITP), excluding such events in prior 365 days as washout period, also excluded are 1. events with a diagnosis of congenital or genetic thrombocytopenia all time prior to 7 days post index, 2. Events with a platelet count of >100 or a diagnosis of thrombocytosis on day of index 3. Events with co-occurring neutropenia, pancytopenia, bone marrow involvement, anemia 7 days within index. Persons exit after 180 days or when a normal platelet count measure is observed.","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433749, 4103532","","",,,,,,739,739 -740,"[W] Earliest event of Pulmonary arterial hypertension (PAH)",740,"cohortNameLong : Pulmonary arterial hypertension (PAH); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest occurrence of Pulmonary Arterial Hypertension (PAH) indexed on occurrence of PAH condition requiring right heart catheterization or echocardiogram 30 days before or 30 days after diagnosis/index. Cohort exit is the end of continuous observation.; -hashTag :; -contributors : 'Joel Swerdel'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4013643; -ohdsiForumPost : ; -replaces : ; -notes : duplicate of 747;","2023-08-23","2024-09-11","rao@ohdsi.org","Earliest event of Pulmonary arterial hypertension (PAH)",,"Pulmonary arterial hypertension (PAH)","Pending peer review","","Earliest occurrence of Pulmonary Arterial Hypertension (PAH) indexed on occurrence of PAH condition requiring right heart catheterization or echocardiogram 30 days before or 30 days after diagnosis/index. Cohort exit is the end of continuous observation.","","'Joel Swerdel'","","'OHDSI'","","","4013643","","","duplicate of 747",,,,,740,740 -741,"[P] Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)",741,"cohortNameLong : Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest events of Immune Thrombotic microangiopathy or microangiopathic hemolytic anemia indexed on the diagnosis or its treatment or investigation. Events with congenital or genetic thrombocytopenia all time prior to 7 days post index are excluded. Also excluded are patients with Platelet count > 150. cohort exit is 7 days post end date or an occurrence of a normal platelet measure .; -hashTag : #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313800, 4119134; -ohdsiForumPost : ; -replaces : ; -","2023-08-23","2024-09-11","rao@ohdsi.org","Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)",,"Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","Pending peer review","","Earliest events of Immune Thrombotic microangiopathy or microangiopathic hemolytic anemia indexed on the diagnosis or its treatment or investigation. Events with congenital or genetic thrombocytopenia all time prior to 7 days post index are excluded. Also excluded are patients with Platelet count > 150. cohort exit is 7 days post end date or an occurrence of a normal platelet measure .","#DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","313800, 4119134","","",,,,,,741,741 -742,"[P] Parasomnia or Sleep dysfunction with arousal disturbance",742,"cohortNameLong : Parasomnia or Sleep dysfunction with arousal disturbance; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of Parasomnia or Sleep dysfunction with arousal disturbance with events collapse 1 day after; -hashTag : ; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 254761; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-08","2023-09-21","rao@ohdsi.org","Parasomnia or Sleep dysfunction with arousal disturbance",,"Parasomnia or Sleep dysfunction with arousal disturbance","Pending peer review","","All events of Parasomnia or Sleep dysfunction with arousal disturbance with events collapse 1 day after","","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","254761","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,742,742 -743,"[P] Diabetic ketoacidosis IP-ER (SNOMED concept)",743,"cohortNameLong : Diabetic ketoacidosis identified during the inpatient or emergency room SNOMED concept; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All condition occurrences of DKA during an ER or IP visit, with 30-day event persistence (SNOMED code only); -hashTag : ; -contributors : 'James Weaver', 'Chris Knoll'; -contributorOrcIds : '0000-0003-0755-5191',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 196523; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-08","2023-09-20","rao@ohdsi.org","Diabetic ketoacidosis IP-ER (SNOMED concept)",,"Diabetic ketoacidosis identified during the inpatient or emergency room SNOMED concept","Pending peer review","","All condition occurrences of DKA during an ER or IP visit, with 30-day event persistence (SNOMED code only)","","'James Weaver', 'Chris Knoll'","'0000-0003-0755-5191',''","'OHDSI'","","","196523","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,743,743 -744,"[P] Pulmonary Hypertension",744,"cohortNameLong : Pulmonary Hypertension; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Pulmonary Hypertension; -hashTag : ; -contributors : 'Joel N. Swerdel'; -contributorOrcIds : '0000-0001-9491-2737'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 312437, 4041664; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-14","2023-09-20","rao@ohdsi.org","Pulmonary Hypertension",,"Pulmonary Hypertension","Pending peer review","","First occurrence of Pulmonary Hypertension","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","312437, 4041664","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,744,744 -745,"[W] Inflammatory Bowel Disease",745,"cohortNameLong : Inflammatory Bowel Disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Inflammatory Bowel Disease; -hashTag : ; -contributors : 'Joel N. Swerdel'; -contributorOrcIds : '0000-0001-9491-2737'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4074815, 81893, 201606; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-inflammatory-bowel-disease/19834; -replaces : ; -notes : duplicate of 775;","2023-09-14","2023-10-13","rao@ohdsi.org","Inflammatory Bowel Disease",,"Inflammatory Bowel Disease","Pending peer review","","First occurrence of Inflammatory Bowel Disease","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","4074815, 81893, 201606",,"","duplicate of 775",,,,,745,745 -746,"[P] Chronic Thromboembolic Pulmonary Hypertension",746,"cohortNameLong : Chronic Thromboembolic Pulmonary Hypertension; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Chronic Thromboembolic Pulmonary Hypertension; -hashTag : ; -contributors : 'Joel N. Swerdel'; -contributorOrcIds : '0000-0001-9491-2737'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 378253; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-14","2023-09-20","rao@ohdsi.org","Chronic Thromboembolic Pulmonary Hypertension",,"Chronic Thromboembolic Pulmonary Hypertension","Pending peer review","","First occurrence of Chronic Thromboembolic Pulmonary Hypertension","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","378253","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,746,746 -747,"[P] Pulmonary Arterial Hypertension",747,"cohortNameLong : Pulmonary Arterial Hypertension; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Pulmonary Arterial Hypertension; -hashTag : ; -contributors : 'Joel N. Swerdel'; -contributorOrcIds : '0000-0001-9491-2737'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 43530714; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-14","2024-09-11","rao@ohdsi.org","Pulmonary Arterial Hypertension",,"Pulmonary Arterial Hypertension","Pending peer review","","First occurrence of Pulmonary Arterial Hypertension","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","43530714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,747,747 -748,"[P] Psoriatic arthritis",748,"cohortNameLong : Psoriatic arthritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Psoriatic arthritis; -hashTag : ; -contributors : 'Joel N. Swerdel'; -contributorOrcIds : '0000-0001-9491-2737'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 25297, 4226263; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-14","2023-09-20","rao@ohdsi.org","Psoriatic arthritis",,"Psoriatic arthritis","Pending peer review","","First occurrence of Psoriatic arthritis","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","25297, 4226263","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,748,748 -749,"[P] Plaque Psoriasis",749,"cohortNameLong : Plaque Psoriasis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Plaque Psoriasis; -hashTag : ; -contributors : 'Joel N. Swerdel'; -contributorOrcIds : '0000-0001-9491-2737'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 27674, 4101344; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-15","2023-09-20","rao@ohdsi.org","Plaque Psoriasis",,"Plaque Psoriasis","Pending peer review","","First occurrence of Plaque Psoriasis","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","27674, 4101344","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,749,749 -750,"[P] Pulmonary hypertension associated with left heart disease (WHO Group 2)",750,"cohortNameLong : Pulmonary hypertension associated with left heart disease (WHO Group 2); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Pulmonary hypertension associated with left heart disease (WHO Group 2); -hashTag : ; -contributors : 'Joel N. Swerdel'; -contributorOrcIds : '0000-0001-9491-2737'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4322024; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-pulmonary-hypertension-associated-with-left-heart-disease-who-group-2/19832; -replaces : ; -","2023-09-15","2023-10-05","rao@ohdsi.org","Pulmonary hypertension associated with left heart disease (WHO Group 2)",,"Pulmonary hypertension associated with left heart disease (WHO Group 2)","Pending peer review","","First occurrence of Pulmonary hypertension associated with left heart disease (WHO Group 2)","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","4322024",,"",,,,,,750,750 -752,"[P] Firearm Accidents (FA)",752,"cohortNameLong : Firearm Accidents (FA); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Firearm accident with an emergency room or inpatient visit on index; -hashTag : ; -contributors : 'Jill Hardin'; -contributorOrcIds : '0000-0003-2682-2187'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-firearm-accidents-fa/19839; -replaces : ; -notes: updates to earliest event on Jill Hardin's request;","2023-09-15","2023-10-05","rao@ohdsi.org","Firearm Accidents (FA)",,"Firearm Accidents (FA)","Pending peer review","","Firearm accident with an emergency room or inpatient visit on index","","'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","",,"","updates to earliest event on Jill Hardin's request",,,,,752,752 -753,"[P] Motor Vehicle Accidents (MVA)",753,"cohortNameLong : Motor Vehicle Accidents (MVA); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All events of motor vehicle accidents with an emergency room or inpatient visit on index; -hashTag : ; -contributors : 'Jill Hardin'; -contributorOrcIds : '0000-0003-2682-2187'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 442752, 4150129; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-15","2023-09-20","rao@ohdsi.org","Motor Vehicle Accidents (MVA)",,"Motor Vehicle Accidents (MVA)","Pending peer review","","All events of motor vehicle accidents with an emergency room or inpatient visit on index","","'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","442752, 4150129","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,753,753 -754,"[P] Down Syndrome",754,"cohortNameLong : Down Syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Condition occurrence of Down Syndrome, starting between 0 days before and 0 days after cohort entry start date and ending between 0 days before and 0 days after cohort entry start date. Having at least 1 additional condition occurrence of ‘Down syndrome’, starting between 1 days after and 365 days after cohort entry start date having no condition eras of ‘Condition_Era Pregnancy Codes’, starting between 0 days before and 0 days after ‘Down syndrome’ start date and ending between 0 days after and 0 days after ‘Down syndrome’ start date; -hashTag : ; -contributors : 'Jill Hardin'; -contributorOrcIds : '0000-0003-2682-2187'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 37016200; -ohdsiForumPost : ; -replaces : ; - -notes: removed pregnancy logic as it is not generalizable. Discussed with Jill Hardin;","2023-09-15","2023-10-05","rao@ohdsi.org","Down Syndrome",,"Down Syndrome","Pending peer review","","Condition occurrence of Down Syndrome, starting between 0 days before and 0 days after cohort entry start date and ending between 0 days before and 0 days after cohort entry start date. Having at least 1 additional condition occurrence of ‘Down syndrome’, starting between 1 days after and 365 days after cohort entry start date having no condition eras of ‘Condition_Era Pregnancy Codes’, starting between 0 days before and 0 days after ‘Down syndrome’ start date and ending between 0 days after and 0 days after ‘Down syndrome’ start date","","'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","37016200","","","removed pregnancy logic as it is not generalizable. Discussed with Jill Hardin",,,,,754,754 -755,"[P] Non-infectious uveitis and iridocyclitis",755,"cohortNameLong : Non-infectious uveitis and iridocyclitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest diagnosis of non-infectious uveitis or iridocyclitis, indexed on the first ever event. This event must either be followed by a second event in the 31 to 365 days in the future or the event must occur at the time of an ophthalmology visit.; -hashTag : ; -contributors : 'James Weaver', 'Eria Voss Stanoch'; -contributorOrcIds : '0000-0003-0755-5191', '0000-0002-0651-0613'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-15","2023-10-06","rao@ohdsi.org","Non-infectious uveitis and iridocyclitis",,"Non-infectious uveitis and iridocyclitis","Pending peer review","","Earliest diagnosis of non-infectious uveitis or iridocyclitis, indexed on the first ever event. This event must either be followed by a second event in the 31 to 365 days in the future or the event must occur at the time of an ophthalmology visit.","","'James Weaver', 'Eria Voss Stanoch'","'0000-0003-0755-5191', '0000-0002-0651-0613'","","","","","","",,,,,,755,755 -756,"[P] Cystic Fibrosis",756,"cohortNameLong : Cystic Fibrosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : 1 code of cystic fibrosis and a second code within 1 to 365 days post index; -hashTag : ; -contributors : 'Jill Hardin'; -contributorOrcIds : '0000-0003-2682-2187'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441267; -ohdsiForumPost : ; -replaces : ; -","2023-09-15","2023-10-05","rao@ohdsi.org","Cystic Fibrosis",,"Cystic Fibrosis","Pending peer review","","1 code of cystic fibrosis and a second code within 1 to 365 days post index","","'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","441267","","",,,,,,756,756 -757,"[P] Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap",757,"cohortNameLong : Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 703578; -ohdsiForumPost : ; -replaces : ; -","2023-09-15","2023-09-20","rao@ohdsi.org","Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap",,"Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap","Pending peer review","","Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","703578","","",,,,,,757,757 -759,"[P] Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap",759,"cohortNameLong : Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 255848, 4318404; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Concomitant TNF - alpha Inhibitors and IL12 23 Inhibitors - GE 30D overlap",,"Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap","Pending peer review","","Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","255848, 4318404","","",,,,,,759,759 -760,"[P] Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap",760,"cohortNameLong : Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 256451, 260139; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Concomitant IL 23 Inhibitors and IL12 23 Inhibitors - GE 30D overlap",,"Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap","Pending peer review","","Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","256451, 260139","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,760,760 -761,"[P] Pulmonary arterial hypertension with Prior Left Heart or Vice Versa",761,"cohortNameLong : Pulmonary arterial hypertension with Prior Left Heart or Vice Versa; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Index date of either PAH or left heart disease whichever comes last; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 319049; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Pulmonary arterial hypertension with Prior Left Heart or Vice Versa",,"Pulmonary arterial hypertension with Prior Left Heart or Vice Versa","Pending peer review","","Index date of either PAH or left heart disease whichever comes last","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","319049","","",,,,,,761,761 -762,"[P] Endothelin receptor antagonists",762,"cohortNameLong : Endothelin receptor antagonists; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First exposure of Endothelin receptor antagonists; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; - -notes : joel reporte he made an error in cohort. used condition domain for drug;","2023-09-16","2023-10-09","rao@ohdsi.org","Endothelin receptor antagonists",,"Endothelin receptor antagonists","Pending peer review","","First exposure of Endothelin receptor antagonists","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","","","","joel reporte he made an error in cohort. used condition domain for drug",,,,,762,762 -763,"[P] Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators",763,"cohortNameLong : Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First exposure of Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators",,"Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators","Pending peer review","","First exposure of Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","","","",,,,,,763,763 -764,"[P] Prostacyclin analogues and prostacyclin receptor agonists",764,"cohortNameLong : Prostacyclin analogues and prostacyclin receptor agonists; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First exposure of Prostacyclin analogues and prostacyclin receptor agonists; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Prostacyclin analogues and prostacyclin receptor agonists",,"Prostacyclin analogues and prostacyclin receptor agonists","Pending peer review","","First exposure of Prostacyclin analogues and prostacyclin receptor agonists","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","","","",,,,,,764,764 -765,"[P] Earliest event of Left Heart Failure",765,"cohortNameLong : Left Heart Failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Left Heart Failure; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Earliest event of Left Heart Failure",,"Left Heart Failure","Pending peer review","","First occurrence of Left Heart Failure","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","","","",,,,,,765,765 -766,"[P] Earliest event of Right Heart Failure",766,"cohortNameLong : Right Heart Failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Right Heart Failure; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 255573, 317009; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Earliest event of Right Heart Failure",,"Right Heart Failure","Pending peer review","","First occurrence of Right Heart Failure","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","255573, 317009","","",,,,,,766,766 -767,"[P] Earliest event of Sarcoidosis",767,"cohortNameLong : Sarcoidosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Sarcoidosis; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 317009; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Earliest event of Sarcoidosis",,"Sarcoidosis","Pending peer review","","First occurrence of Sarcoidosis","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","317009","","",,,,,,767,767 -768,"[P] Earliest event of Sickle Cell Anemia",768,"cohortNameLong : Sickle Cell Anemia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Sickle Cell Anemia; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4213628; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-10-19","rao@ohdsi.org","Earliest event of Sickle Cell Anemia",,"Sickle Cell Anemia","Pending peer review","","First occurrence of Sickle Cell Anemia","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","4213628","","",,,,,,768,768 -769,"[P] Scleroderma, first occurrence",769,"cohortNameLong : Scleroderma; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Scleroderma; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 76685, 80809, 81893, 81931, 134442, 134618, 135215, 140168, 194992, 199856, 201254, 201606, 254443, 257628, 374919, 432295, 438688, 443394, 4137275, 4232076; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Scleroderma, first occurrence",,"Scleroderma","Pending peer review","","First occurrence of Scleroderma","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","76685, 80809, 81893, 81931, 134442, 134618, 135215, 140168, 194992, 199856, 201254, 201606, 254443, 257628, 374919, 432295, 438688, 443394, 4137275, 4232076","","",,,,,,769,769 -770,"[P] Essential Hypertension, first occurrence",770,"cohortNameLong : Essential Hypertension; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Essential Hypertension; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 253954, 434557; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Essential Hypertension, first occurrence",,"Essential Hypertension","Pending peer review","","First occurrence of Essential Hypertension","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","253954, 434557","","",,,,,,770,770 -771,"[W] Pulmonary Hypertension (Group 2 Left heart disease, encompassing)",771,"cohortNameLong : Pulmonary hypertension associated with left heart disease (WHO Group 2); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Pulmonary hypertension associated with left heart disease (WHO Group 2); -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137809, 443392; -ohdsiForumPost : ; -replaces : ; - -notes : duplicate of 750;","2023-09-16","2023-10-09","rao@ohdsi.org","Pulmonary Hypertension (Group 2 Left heart disease, encompassing)",,"Pulmonary hypertension associated with left heart disease (WHO Group 2)","Pending peer review","","First occurrence of Pulmonary hypertension associated with left heart disease (WHO Group 2)","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","137809, 443392","","","duplicate of 750",,,,,771,771 -772,"[W] Pulmonary Hypertension (Group 3 Chronic lung disease, encompassing)",772,"cohortNameLong : Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3); -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433736; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; - -notes : replaced by 751. removed prefix and santized.;","2023-09-16","2023-10-09","rao@ohdsi.org","Pulmonary Hypertension (Group 3 Chronic lung disease, encompassing)",,"Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3)","Pending peer review","","First occurrence of Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3)","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","433736","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","","replaced by 751. removed prefix and santized.",,,,,772,772 -773,"[P] Congenital Heart Disease",773,"cohortNameLong : Congenital Heart Disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Congenital Heart Disease; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4182210; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Congenital Heart Disease",,"Congenital Heart Disease","Pending peer review","","First occurrence of Congenital Heart Disease","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","4182210","","",,,,,,773,773 -774,"[P] Portal Hypertension, first occurrence",774,"cohortNameLong : Portal Hypertension; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Portal Hypertension; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 312648, 4028741; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Portal Hypertension, first occurrence",,"Portal Hypertension","Pending peer review","","First occurrence of Portal Hypertension","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","312648, 4028741","","",,,,,,774,774 -775,"[P] First Inflammatory Bowel Disease",775,"cohortNameLong : Inflammatory Bowel Disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Inflammatory Bowel Disease; -hashTag : ; -contributors : 'Joel N. Swerdel'; -contributorOrcIds : '0000-0001-9491-2737'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4074815, 81893, 201606; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-inflammatory-bowel-disease/19834; -replaces : ; -","2023-09-16","2023-10-03","rao@ohdsi.org","First Inflammatory Bowel Disease",,"Inflammatory Bowel Disease","Pending peer review","","First occurrence of Inflammatory Bowel Disease","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","4074815, 81893, 201606",,"",,,,,,775,775 -776,"[P] Antisynthetase syndrome",776,"cohortNameLong : Antisynthetase syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Antisynthetase syndrome; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439727; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Antisynthetase syndrome",,"Antisynthetase syndrome","Pending peer review","","First occurrence of Antisynthetase syndrome","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","439727","","",,,,,,776,776 -777,"[P] Mixed connective tissue disease",777,"cohortNameLong : Mixed connective tissue disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Mixed connective tissue disease; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197494, 198964; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Mixed connective tissue disease",,"Mixed connective tissue disease","Pending peer review","","Mixed connective tissue disease","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","197494, 198964","","",,,,,,777,777 -778,"[P] Undifferentiated connective tissue disease",778,"cohortNameLong : Undifferentiated connective tissue disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Undifferentiated connective tissue disease; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313217, 44784217; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Undifferentiated connective tissue disease",,"Undifferentiated connective tissue disease","Pending peer review","","First occurrence of Undifferentiated connective tissue disease","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","313217, 44784217","","",,,,,,778,778 -779,"[P] Overlap syndrome",779,"cohortNameLong : Overlap syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Overlap syndrome; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 193782; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Overlap syndrome",,"Overlap syndrome","Pending peer review","","First occurrence of Overlap syndrome","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","193782","","",,,,,,779,779 -780,"[P] Raynaud’s disease or Raynaud's phenomenon",780,"cohortNameLong : Raynaud’s disease or Raynaud’s phenomenon; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Raynaud’s disease or Raynaud’s phenomenon; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201820, 201826; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Raynaud’s disease or Raynaud's phenomenon",,"Raynaud’s disease or Raynaud’s phenomenon","Pending peer review","","First occurrence of Raynaud’s disease or Raynaud’s phenomenon","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","201820, 201826","","",,,,,,780,780 -781,"[P] Antiphospholipid syndrome",781,"cohortNameLong : Antiphospholipid syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Antiphospholipid syndrome; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192359, 193782; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Antiphospholipid syndrome",,"Antiphospholipid syndrome","Pending peer review","","First occurrence of Antiphospholipid syndrome","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","192359, 193782","","",,,,,,781,781 -782,"[P] CTEPH Prevalent (with Echo or RHC) with 2nd dx code 31-365 days after first dx",782,"cohortNameLong : Chronic Thromboembolic Pulmonary Hypertension; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Chronic Thromboembolic Pulmonary Hypertension; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 193782; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","CTEPH Prevalent (with Echo or RHC) with 2nd dx code 31-365 days after first dx",,"Chronic Thromboembolic Pulmonary Hypertension","Pending peer review","","First occurrence of Chronic Thromboembolic Pulmonary Hypertension","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","193782","","",,,,,,782,782 -783,"[P] Pulmonary endarterectomy",783,"cohortNameLong : Pulmonary endarterectomy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All occurrences of Pulmonary endarterectomy; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 253954, 434557; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Pulmonary endarterectomy",,"Pulmonary endarterectomy","Pending peer review","","All occurrences of Pulmonary endarterectomy","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","253954, 434557","","",,,,,,783,783 -784,"[P] Balloon Pulmonary Angioplasty",784,"cohortNameLong : Balloon Pulmonary Angioplasty; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : All occurrences of Balloon Pulmonary Angioplasty; -hashTag : #epi1073; -contributors : 'Joel Swerdel','Eva-maria Didden'; -contributorOrcIds : '0000-0001-9491-2737','0000-0001-7401-8877'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4138754; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-10-04","rao@ohdsi.org","Balloon Pulmonary Angioplasty",,"Balloon Pulmonary Angioplasty","Pending peer review","","All occurrences of Balloon Pulmonary Angioplasty","#epi1073","'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","4138754","","",,,,,,784,784 -785,"[P] Skin Burns",785,"cohortNameLong : Skin Burns; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : 1 code of Skin Burns and a drug or procedure treatment within 1 to 180 days post index; -hashTag : ; -contributors : 'Jill Hardin'; -contributorOrcIds : '0000-0003-2682-2187'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Skin Burns",,"Skin Burns","Pending peer review","","1 code of Skin Burns and a drug or procedure treatment within 1 to 180 days post index","","'Jill Hardin'","'0000-0003-2682-2187'","","","","439676, 37311061","","",,,,,,785,785 -788,"[P] Breast cancer",788,"cohortNameLong : Breast cancer; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : ; -contributors : 'Asieh Golozar'; -contributorOrcIds : '0000-0002-4243-155X'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-10-05","rao@ohdsi.org","Breast cancer",,"Breast cancer","Pending peer review","","","","'Asieh Golozar'","'0000-0002-4243-155X'","","","","439676, 37311061","","",,,,,,788,788 -789,"[P] Glioblastoma multiforme (GBM)",789,"cohortNameLong : Glioblastoma multiforme (GBM); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : ; -contributors : 'Asieh Golozar', 'Vlad Korsik'; -contributorOrcIds : '0000-0002-4243-155X'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Glioblastoma multiforme (GBM)",,"Glioblastoma multiforme (GBM)","Pending peer review","","","","'Asieh Golozar', 'Vlad Korsik'","'0000-0002-4243-155X'","","","","","","",,,,,,789,789 -790,"[P] Colorectal Cancer",790,"cohortNameLong : Colorectal Cancer; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : ; -contributors : 'Asieh Golozar', 'Peter Prinsen'; -contributorOrcIds : '0000-0002-4243-155X'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Colorectal Cancer",,"Colorectal Cancer","Pending peer review","","","","'Asieh Golozar', 'Peter Prinsen'","'0000-0002-4243-155X'","","","","","","",,,,,,790,790 -791,"[P] Multiple Myeloma",791,"cohortNameLong : Multiple Myeloma; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : ; -contributors : 'Asieh Golozar'; -contributorOrcIds : '0000-0002-4243-155X'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-09-20","rao@ohdsi.org","Multiple Myeloma",,"Multiple Myeloma","Pending peer review","","","","'Asieh Golozar'","'0000-0002-4243-155X'","","","","","","",,,,,,791,791 -792,"[P] Metastatic Hormone-Sensitive Prostate Cancer Synchronous",792,"cohortNameLong : Metastatic Hormone-Sensitive Prostate Cancer Synchronous; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Pioneer2; -contributors : 'Asieh Golozar'; -contributorOrcIds : '0000-0002-4243-155X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377091, 4196708; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-16","2023-10-05","rao@ohdsi.org","Metastatic Hormone-Sensitive Prostate Cancer Synchronous",,"Metastatic Hormone-Sensitive Prostate Cancer Synchronous","Pending peer review","","","#Pioneer2","'Asieh Golozar'","'0000-0002-4243-155X'","'OHDSI'","","","377091, 4196708","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,792,792 -793,"[P] Metastatic Hormone-Sensitive Prostate Cancer Metachronus",793,"cohortNameLong : Metastatic Hormone-Sensitive Prostate Cancer Metachronus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Pioneer2; -contributors : 'Asieh Golozar'; -contributorOrcIds : '0000-0002-4243-155X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2023-09-16","2023-10-05","rao@ohdsi.org","Metastatic Hormone-Sensitive Prostate Cancer Metachronus",,"Metastatic Hormone-Sensitive Prostate Cancer Metachronus","Pending peer review","","","#Pioneer2","'Asieh Golozar'","'0000-0002-4243-155X'","'OHDSI'","","","439676, 37311061","","",,,,,,793,793 -794,"[P] Hemorrhage of digestive system",794,"cohortNameLong : Hemorrhage of digestive system; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of Hemorrhage of digestive system. Persons exit on cohort end date plus 14 days; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ;","2023-09-17","2023-10-16","rao@ohdsi.org","Hemorrhage of digestive system",,"Hemorrhage of digestive system","Pending peer review","","all events of Hemorrhage of digestive system. Persons exit on cohort end date plus 14 days","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,794,794 -795,"[P] Antineoplastic drugs against colorectal cancer",795,"cohortNameLong : Antineoplastic drugs against colorectal cancer; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First exposure of drugs Antineoplastic drugs against colorectal cancer.; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2023-09-20","rao@ohdsi.org","Antineoplastic drugs against colorectal cancer",,"Antineoplastic drugs against colorectal cancer","Pending peer review","","First exposure of drugs Antineoplastic drugs against colorectal cancer.","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","439676, 37311061","","",,,,,,795,795 -796,"[P] Potential curative surgery for colorectal cancer",796,"cohortNameLong : Potential curative surgery for colorectal cancer; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event potential curative surgery for colorectal cancer.; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2023-09-20","rao@ohdsi.org","Potential curative surgery for colorectal cancer",,"Potential curative surgery for colorectal cancer","Pending peer review","","First event potential curative surgery for colorectal cancer.","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","",,,,,,796,796 -797,"[P] Radiotherapy against colorectal cancer",797,"cohortNameLong : Radiotherapy against colorectal cancer; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First exposure of radiotherapy, excluding procedures with that are probably not related to colorectal cancer.; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 317302, 320425; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2023-09-20","rao@ohdsi.org","Radiotherapy against colorectal cancer",,"Radiotherapy against colorectal cancer","Pending peer review","","First exposure of radiotherapy, excluding procedures with that are probably not related to colorectal cancer.","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","317302, 320425","","",,,,,,797,797 -798,"[P] Primary adenocarcinoma of the colon or rectum",798,"cohortNameLong : Primary adenocarcinoma of the colon or rectum; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of primary adenocarcinoma of the colon or rectum; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377091, 4196708; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum",,"Primary adenocarcinoma of the colon or rectum","Pending peer review","","First event of primary adenocarcinoma of the colon or rectum","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","377091, 4196708","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,798,798 -802,"[P] Acute Respiratory Failure 2",802,"cohortNameLong : Acute Respiratory Failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of acute respiratory failure; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : Evan Minty; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 79908, 139803, 443904; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Acute Respiratory Failure 2",,"Acute Respiratory Failure","Pending peer review","","First event of acute respiratory failure","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","Evan Minty","","79908, 139803, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,802,802 -803,"[P] Fascial dehiscence and evisceration",803,"cohortNameLong : Fascial dehiscence and evisceration; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First fascial dehiscence or evisceration; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 254761, 312437, 437663, 439926, 442752, 4041664, 4178904, 4272240, 43530714; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Fascial dehiscence and evisceration",,"Fascial dehiscence and evisceration","Pending peer review","","First fascial dehiscence or evisceration","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","254761, 312437, 437663, 439926, 442752, 4041664, 4178904, 4272240, 43530714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,803,803 -804,"[P] Anastomotic leak or dehiscence",804,"cohortNameLong : Anastomotic leak or dehiscence; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of anastomotic leak or dehiscence of large or small intestine; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 199074; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Anastomotic leak or dehiscence",,"Anastomotic leak or dehiscence","Pending peer review","","First event of anastomotic leak or dehiscence of large or small intestine","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","199074","","",,,,,,804,804 -805,"[P] Intestinal obstruction (broad)",805,"cohortNameLong : Intestinal obstruction; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event Intestinal obstruction; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197320; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Intestinal obstruction (broad)",,"Intestinal obstruction","Pending peer review","","First event Intestinal obstruction","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","197320","","",,,,,,805,805 -806,"[P] Intraabdominal abscess",806,"cohortNameLong : Intraabdominal abscess; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event Intraabdominal abscess; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Intraabdominal abscess",,"Intraabdominal abscess","Pending peer review","","First event Intraabdominal abscess","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","4245975","","",,,,,,806,806 -807,"[P] Perioperative aspiration",807,"cohortNameLong : Perioperative aspiration; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of Perioperative aspiration; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 316139, 319835; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Perioperative aspiration",,"Perioperative aspiration","Pending peer review","","First event of Perioperative aspiration","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","316139, 319835","","",,,,,,807,807 -808,"[P] Postoperative hemorrhage",808,"cohortNameLong : Postoperative hemorrhage; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event postoperative hemorrhage; -hashTag : ; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4002836; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Postoperative hemorrhage",,"Postoperative hemorrhage","Pending peer review","","First event postoperative hemorrhage","","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","4002836","","",,,,,,808,808 -809,"[P] Surgical wound infection (narrow)",809,"cohortNameLong : Surgical wound infection (narrow); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event surgical wound infection; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 443454; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Surgical wound infection (narrow)",,"Surgical wound infection (narrow)","Pending peer review","","First event surgical wound infection","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","443454","","",,,,,,809,809 -810,"[P] Distant metastasis following colorectal cancer (wide)",810,"cohortNameLong : Distant metastasis following colorectal cancer (wide); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event distant metastasis following colorectal cancer; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314666, 4329847; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Distant metastasis following colorectal cancer (wide)",,"Distant metastasis following colorectal cancer (wide)","Pending peer review","","First event distant metastasis following colorectal cancer","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","314666, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,810,810 -811,"[P] Local recurrence after colorectal cancer",811,"cohortNameLong : Local recurrence after colorectal cancer; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event local recurrence after colorectal cancer; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4183609, 4266367; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Local recurrence after colorectal cancer",,"Local recurrence after colorectal cancer","Pending peer review","","First event local recurrence after colorectal cancer","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","4183609, 4266367","","",,,,,,811,811 -812,"[P] Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment",812,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of primary adenocarcinoma of the colon or rectum with MSI-H or dMMR, no curative surgery or oncological treatment any time after; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 376713, 439847; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment",,"Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment","Pending peer review","","First event of primary adenocarcinoma of the colon or rectum with MSI-H or dMMR, no curative surgery or oncological treatment any time after","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","376713, 439847","","",,,,,,812,812 -813,"[P] Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery",813,"cohortNameLong : Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of Primary adenocarcinoma of the colon or rectum treated with curative surgery within 90 days of the operation; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 443454; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery",,"Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum treated with curative surgery within 90 days of the operation","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","443454","","",,,,,,813,813 -814,"[P] Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment",814,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of Primary adenocarcinoma of the colon or rectum treated with no curative surgery but oncological treatment within 90 days of the operation; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 373503; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment",,"Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum treated with no curative surgery but oncological treatment within 90 days of the operation","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","373503","","",,,,,,814,814 -817,"[P] Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment2",817,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Primary adenocarcinoma of the colon or rectum, no curative intended surgery, and oncological treatment at any time after; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192671; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment2",,"Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment","Pending peer review","","Primary adenocarcinoma of the colon or rectum, no curative intended surgery, and oncological treatment at any time after","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","192671","","",,,,,,817,817 -818,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR",818,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of primary adenocarcinoma of the colon or rectum, with a molecular subtype of MSI-L, MSI-indeterminate, MSS or pMMR; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313217, 44784217; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR",,"Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR","Pending peer review","","First event of primary adenocarcinoma of the colon or rectum, with a molecular subtype of MSI-L, MSI-indeterminate, MSS or pMMR","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","313217, 44784217","","",,,,,,818,818 -819,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery",819,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery within 90 days of diagnosis; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 438624, 4027133; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery",,"Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery within 90 days of diagnosis","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","438624, 4027133","","",,,,,,819,819 -820,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery",820,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with oncological therapy, but no curative intended surgery; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery",,"Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with oncological therapy, but no curative intended surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","",,,,,,820,820 -821,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment",821,"cohortNameLong : Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of Primary adenocarcinoma of the colon or rectum with a MSI-L, MSI-indeterminate, MSS or pMMR subtype, and no surgery or oncological treatment anytime in the future.; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment",,"Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum with a MSI-L, MSI-indeterminate, MSS or pMMR subtype, and no surgery or oncological treatment anytime in the future.","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","",,,,,,821,821 -822,"[P] Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment",822,"cohortNameLong : Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of Primary adenocarcinoma of the colon or rectum with the MSI-H or dMMR molecular subtype, receiving potential curative surgery; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 40481547; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment",,"Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum with the MSI-H or dMMR molecular subtype, receiving potential curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","40481547","","",,,,,,822,822 -823,"[P] Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery",823,"cohortNameLong : Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event primary adenocarcinoma of the colon or rectum, with MSI-H or dMMR molecular subtype, treated with oncological treatment no curative surgery; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery",,"Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery","Pending peer review","","First event primary adenocarcinoma of the colon or rectum, with MSI-H or dMMR molecular subtype, treated with oncological treatment no curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","439676, 37311061","","",,,,,,823,823 -824,"[P] Primary adenocarcinoma of colon or rectum, MSI-H or dMMR",824,"cohortNameLong : Primary adenocarcinoma of colon or rectum, MSI-H or dMMR; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event Primary adenocarcinoma of the colon or rectum, with MSI-H or dMMR molecular subtype; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR",,"Primary adenocarcinoma of colon or rectum, MSI-H or dMMR","Pending peer review","","First event Primary adenocarcinoma of the colon or rectum, with MSI-H or dMMR molecular subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","",,,,,,824,824 -825,"[P] Primary adenocarcinoma of colon",825,"cohortNameLong : Primary adenocarcinoma of colon; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of primary adenocarcinoma of colon; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon",,"Primary adenocarcinoma of colon","Pending peer review","","First event of primary adenocarcinoma of colon","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","",,,,,,825,825 -826,"[P] Primary adenocarcinoma of colon, no surgery or oncological treatment",826,"cohortNameLong : Primary adenocarcinoma of colon, no surgery or oncological treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of primary adenocarcinoma of the colon, no curative surgery and no oncological treatment anytime after; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 373995; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon, no surgery or oncological treatment",,"Primary adenocarcinoma of colon, no surgery or oncological treatment","Pending peer review","","First event of primary adenocarcinoma of the colon, no curative surgery and no oncological treatment anytime after","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","373995","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,826,826 -827,"[P] Primary adenocarcinoma of colon surgical treatment",827,"cohortNameLong : Primary adenocarcinoma of colon surgical treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of curative surgery for primary adenocarcinoma; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 378419; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon surgical treatment",,"Primary adenocarcinoma of colon surgical treatment","Pending peer review","","First event of curative surgery for primary adenocarcinoma","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","378419","","",,,,,,827,827 -828,"[P] Primary adenocarcinoma of colon oncological treatment, no surgery",828,"cohortNameLong : Primary adenocarcinoma of colon oncological treatment, no surgery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of oncological treatment after primary adenocarcinoma, with no curative surgery; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 138525, 194133; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p5-systemic-lupus-erythematosus-sle/18223; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon oncological treatment, no surgery",,"Primary adenocarcinoma of colon oncological treatment, no surgery","Pending peer review","","First event of oncological treatment after primary adenocarcinoma, with no curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","138525, 194133","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p5-systemic-lupus-erythematosus-sle/18223","",,,,,,828,828 -829,"[P] Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR",829,"cohortNameLong : Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of primary adenocarcinoma of colon, with MSI-L or pMMR molecular subtype; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 444362; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR",,"Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR","Pending peer review","","First event of primary adenocarcinoma of colon, with MSI-L or pMMR molecular subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","444362","","",,,,,,829,829 -830,"[P] Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated",830,"cohortNameLong : Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of potential curative surgery after a primary adenocarcinoma with MSI-L, MSS, pMMR molecular subtype; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 438409, 4047120; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-13-attention-deficit-hyperactivity-disorder/15901; -replaces : ; -","2023-09-18","2023-09-20","rao@ohdsi.org","Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated",,"Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated","Pending peer review","","First event of potential curative surgery after a primary adenocarcinoma with MSI-L, MSS, pMMR molecular subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","438409, 4047120","https//forums.ohdsi.org/t/phenotype-phebruary-day-13-attention-deficit-hyperactivity-disorder/15901","",,,,,,830,830 -831,"[P] Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery",831,"cohortNameLong : Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of oncological treatment of primary adenocarcinoma of colon with MSS, MSI-L or pMMR subtype; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314666, 4296653, 4329847; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery",,"Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","Pending peer review","","First event of oncological treatment of primary adenocarcinoma of colon with MSS, MSI-L or pMMR subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","314666, 4296653, 4329847","https//forums.ohdsi.org/t/phenotype-phebruary-day-15-acute-myocardial-infarction-stemi-nstemi-ua-chronic-angina/15900","",,,,,,831,831 -832,"[P] Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment",832,"cohortNameLong : Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of adenocarcinoma of colon with molecular subtype pMMR/MSI-L/MSS for patients not receiving surgery or oncological treatment; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 198263; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment",,"Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","Pending peer review","","First event of adenocarcinoma of colon with molecular subtype pMMR/MSI-L/MSS for patients not receiving surgery or oncological treatment","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","198263","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,832,832 -833,"[P] Primary adenocarcinoma of colon MSI-H or dMMR",833,"cohortNameLong : Primary adenocarcinoma of colon MSI-H or dMMR; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of a primary adenocarcinoma of colon with MSI-H / pMMR molecular profile; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 442597, 4152351; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon MSI-H or dMMR",,"Primary adenocarcinoma of colon MSI-H or dMMR","Pending peer review","","First event of a primary adenocarcinoma of colon with MSI-H / pMMR molecular profile","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","442597, 4152351","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,833,833 -834,"[P] Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment",834,"cohortNameLong : Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of potentially curative surgery for adenocarcinoma of colon following diagnosis of MSI-H dMMR subtype; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439926, 4272240; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment",,"Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment","Pending peer review","","First event of potentially curative surgery for adenocarcinoma of colon following diagnosis of MSI-H dMMR subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","439926, 4272240","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,834,834 -835,"[P] Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery",835,"cohortNameLong : Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of oncological treatment for colorectal cancer following diagnosis of primary adenocarcinoma of colon with MSI-H or dMMR profile, no curative surgery; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4096682; -ohdsiForumPost : Pending; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery",,"Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery","Pending peer review","","First event of oncological treatment for colorectal cancer following diagnosis of primary adenocarcinoma of colon with MSI-H or dMMR profile, no curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","4096682","Pending","",,,,,,835,835 -836,"[P] Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment",836,"cohortNameLong : Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of primary adenocarcinoma of colon with MSI-H or dMMR profile, no curative surgery or oncological treatment at anytime past diagnosis; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137977, 435656; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment",,"Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment","Pending peer review","","First event of primary adenocarcinoma of colon with MSI-H or dMMR profile, no curative surgery or oncological treatment at anytime past diagnosis","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","137977, 435656","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,836,836 -837,"[P] Primary adenocarcinoma of rectum",837,"cohortNameLong : Primary adenocarcinoma of rectum; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of a primary adenocarcinoma of rectum; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436222; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum",,"Primary adenocarcinoma of rectum","Pending peer review","","First event of a primary adenocarcinoma of rectum","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","436222","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,837,837 -838,"[P] Primary adenocarcinoma of rectum MSI-H or dMMR",838,"cohortNameLong : Primary adenocarcinoma of rectum MSI-H or dMMR; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of a primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 196360, 197508; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum MSI-H or dMMR",,"Primary adenocarcinoma of rectum MSI-H or dMMR","Pending peer review","","First event of a primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","196360, 197508","","",,,,,,838,838 -839,"[P] Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment",839,"cohortNameLong : Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of a primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype, without any curative surgery or oncological treatment in the future; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 80809; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment",,"Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment","Pending peer review","","First event of a primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype, without any curative surgery or oncological treatment in the future","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","80809","","",,,,,,839,839 -840,"[P] Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery",840,"cohortNameLong : Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of oncological treatment for patient with primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype, without any curative surgery; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 318443, 764123; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery",,"Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery","Pending peer review","","First event of oncological treatment for patient with primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype, without any curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","318443, 764123","","",,,,,,840,840 -841,"[P] Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment",841,"cohortNameLong : Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of potentially curative surgery for patients diagnosed with primary adenocarcinoma of rectum with MSI-H / dMMR subtype; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201606; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment",,"Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment","Pending peer review","","First event of potentially curative surgery for patients diagnosed with primary adenocarcinoma of rectum with MSI-H / dMMR subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","201606","","",,,,,,841,841 -842,"[P] Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR",842,"cohortNameLong : Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of primary adenocarcinoma of rectum, with MSI-L, MSI-indeterminate, MSS or pMMR subtype; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440383; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR",,"Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR","Pending peer review","","First event of primary adenocarcinoma of rectum, with MSI-L, MSI-indeterminate, MSS or pMMR subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","440383","","",,,,,,842,842 -843,"[P] Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery",843,"cohortNameLong : Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of oncology in patients diagnosed with primary adenocarcinoma of rectum with MSI-L, MSI-indeterminate, MSS or pMMR profile, with no subsequent potentially curative surgery; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 140168; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery",,"Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","Pending peer review","","First event of oncology in patients diagnosed with primary adenocarcinoma of rectum with MSI-L, MSI-indeterminate, MSS or pMMR profile, with no subsequent potentially curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","140168","","",,,,,,843,843 -844,"[P] Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment",844,"cohortNameLong : Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of primary adenocarcinoma of tectum with MSI-L / MSS / pMMR profile, no surgery or oncological treatment; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 81893; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment",,"Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment","Pending peer review","","First event of primary adenocarcinoma of tectum with MSI-L / MSS / pMMR profile, no surgery or oncological treatment","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","81893","","",,,,,,844,844 -845,"[P] Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery",845,"cohortNameLong : Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of potentially curative surgery for primary adenocarcinoma of rectum with MSI-L / pMMR subtype; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 26942, 138723, 4144746; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acquired-pure-red-cell-aplasia/17854; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery",,"Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery","Pending peer review","","First event of potentially curative surgery for primary adenocarcinoma of rectum with MSI-L / pMMR subtype","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","26942, 138723, 4144746","https//forums.ohdsi.org/t/phenotype-submission-acquired-pure-red-cell-aplasia/17854","",,,,,,845,845 -846,"[P] Primary adenocarcinoma of rectum oncological treatment, no surgery",846,"cohortNameLong : Primary adenocarcinoma of rectum oncological treatment, no surgery; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of oncological for patients with primary adenocarcinoma in rectum, with no subsequent potentially curative surgery; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257011, 437663, 4170143, 4250734; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-febrile-neutropenia-or-neutropenic-fever/17876; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum oncological treatment, no surgery",,"Primary adenocarcinoma of rectum oncological treatment, no surgery","Pending peer review","","First event of oncological for patients with primary adenocarcinoma in rectum, with no subsequent potentially curative surgery","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","257011, 437663, 4170143, 4250734","https//forums.ohdsi.org/t/phenotype-submission-febrile-neutropenia-or-neutropenic-fever/17876","",,,,,,846,846 -847,"[P] Primary adenocarcinoma of rectum surgical treatment",847,"cohortNameLong : Primary adenocarcinoma of rectum surgical treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of potentially curative surgery following diagnosis of primary adenocarcinoma of rectum; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435503, 439777, 441269, 4250490; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum surgical treatment",,"Primary adenocarcinoma of rectum surgical treatment","Pending peer review","","First event of potentially curative surgery following diagnosis of primary adenocarcinoma of rectum","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","435503, 439777, 441269, 4250490","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,847,847 -848,"[P] Primary adenocarcinoma of rectum, no surgery or oncological treatment",848,"cohortNameLong : Primary adenocarcinoma of rectum, no surgery or oncological treatment; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event of primary adenocarcinoma of rectum, no future potentially curative surgery or oncological treatment; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435503, 439777, 441269, 4250490; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Primary adenocarcinoma of rectum, no surgery or oncological treatment",,"Primary adenocarcinoma of rectum, no surgery or oncological treatment","Pending peer review","","First event of primary adenocarcinoma of rectum, no future potentially curative surgery or oncological treatment","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","435503, 439777, 441269, 4250490","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,848,848 -850,"[W] Intestinal obstruction (broad 2)",850,"cohortNameLong : Intestinal obstruction; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event Intestinal obstruction; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432881; -ohdsiForumPost : ; -replaces : ; -notes : duplicated 805;","2023-09-18","2023-10-16","rao@ohdsi.org","Intestinal obstruction (broad 2)",,"Intestinal obstruction","Pending peer review","","First event Intestinal obstruction","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","432881","","","duplicated 805",,,,,850,850 -851,"[P] Intraabdominal obstruction (broad)",851,"cohortNameLong : Intraabdominal obstruction; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event Intraabdominal obstruction; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : Anna Ostropolets; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435224; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409; -replaces : ; -","2023-09-18","2023-09-20","rao@ohdsi.org","Intraabdominal obstruction (broad)",,"Intraabdominal obstruction","Pending peer review","","First event Intraabdominal obstruction","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","Anna Ostropolets","","435224","https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409","",,,,,,851,851 -852,"[P] Surgical wound infection (broad)",852,"cohortNameLong : Surgical wound infection (broad); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event surgical wound infection; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435224; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Surgical wound infection (broad)",,"Surgical wound infection (broad)","Pending peer review","","First event surgical wound infection","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","435224","https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409","",,,,,,852,852 -854,"[P] Distant metastasis following colorectal cancer (medium)",854,"cohortNameLong : Distant metastasis following colorectal cancer (medium); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event distant metastasis following colorectal cancer; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433749, 4103532; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Distant metastasis following colorectal cancer (medium)",,"Distant metastasis following colorectal cancer (medium)","Pending peer review","","First event distant metastasis following colorectal cancer","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","433749, 4103532","","",,,,,,854,854 -855,"[P] Distant metastasis following colorectal cancer (narrow)",855,"cohortNameLong : Distant metastasis following colorectal cancer (narrow); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First event distant metastasis following colorectal cancer; -hashTag : #ColorectalCancer, #Cancer; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433749, 4103532; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2024-01-05","rao@ohdsi.org","Distant metastasis following colorectal cancer (narrow)",,"Distant metastasis following colorectal cancer (narrow)","Pending peer review","","First event distant metastasis following colorectal cancer","#ColorectalCancer, #Cancer","Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","433749, 4103532","","",,,,,,855,855 -856,"[P] Earliest event of Migraine, including history of migraine",856,"cohortNameLong : Earliest event of Migraine, including history of migraine; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest occurrence of Migraine indexed on occurrence of Migraine condition (or observation of history of migraine-in the one of the cohorts versions) or symptoms (Headache , Aura) or a use of antimigraine drug (or the 1st time). Patients entering the cohort with an antimigraine drugs or migraine symptoms are required to have a diagnosis or observation of Migraine or history of migraine within 60 days. Cohort exit is the end of continuous observation.; -hashTag : #ColorectalCancer, #Cancer; -contributors : Azza Shoaibi', 'Jill Hardin'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313800, 4119134; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2023-09-20","rao@ohdsi.org","Earliest event of Migraine, including history of migraine",,"Earliest event of Migraine, including history of migraine","Pending peer review","","Earliest occurrence of Migraine indexed on occurrence of Migraine condition (or observation of history of migraine-in the one of the cohorts versions) or symptoms (Headache , Aura) or a use of antimigraine drug (or the 1st time). Patients entering the cohort with an antimigraine drugs or migraine symptoms are required to have a diagnosis or observation of Migraine or history of migraine within 60 days. Cohort exit is the end of continuous observation.","#ColorectalCancer, #Cancer","Azza Shoaibi', 'Jill Hardin'","0000-0002-6976-2594'","'OHDSI'","","","313800, 4119134","","",,,,,,856,856 -857,"[P] Earliest event of Migraine",857,"cohortNameLong : Earliest event of Migraine; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest occurrence of Migraine indexed on occurrence of Migraine condition (or observation of history of migraine-in the one of the cohorts versions) or symptoms (Headache , Aura) or a use of antimigraine drug (or the 1st time). Patients entering the cohort with an antimigraine drugs or migraine symptoms are required to have a diagnosis or observation of Migraine or history of migraine within 60 days. Cohort exit is the end of continuous observation.; -hashTag : #JNJ, #Indication; -contributors : Azza Shoaibi', 'Jill Hardin'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137967, 4345578; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2023-10-04","rao@ohdsi.org","Earliest event of Migraine",,"Earliest event of Migraine","Pending peer review","","Earliest occurrence of Migraine indexed on occurrence of Migraine condition (or observation of history of migraine-in the one of the cohorts versions) or symptoms (Headache , Aura) or a use of antimigraine drug (or the 1st time). Patients entering the cohort with an antimigraine drugs or migraine symptoms are required to have a diagnosis or observation of Migraine or history of migraine within 60 days. Cohort exit is the end of continuous observation.","#JNJ, #Indication","Azza Shoaibi', 'Jill Hardin'","0000-0002-6976-2594'","'OHDSI'","","","137967, 4345578","","",,,,,,857,857 -858,"[P] Earliest event of Rheumatoid Arthritis",858,"cohortNameLong : Earliest event of Rheumatoid Arthritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest occurrence of Rheumatoid Arthritis indexed on diagnosis (condition or observation) date, for the first time in history cohort exit is the end of continuous observation; -hashTag : #JNJ, #Indication; -contributors : Joel Swerdel'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 321042; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2023-10-04","rao@ohdsi.org","Earliest event of Rheumatoid Arthritis",,"Earliest event of Rheumatoid Arthritis","Pending peer review","","Earliest occurrence of Rheumatoid Arthritis indexed on diagnosis (condition or observation) date, for the first time in history cohort exit is the end of continuous observation","#JNJ, #Indication","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","321042","","",,,,,,858,858 -859,"[P] Earliest event of Crohns disease",859,"cohortNameLong : Earliest event of Crohns disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest occurrence of Crohns disease indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation; -hashTag : #Crohn; -contributors : Joel Swerdel'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201606; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2023-10-04","rao@ohdsi.org","Earliest event of Crohns disease",,"Earliest event of Crohns disease","Pending peer review","","Earliest occurrence of Crohns disease indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#Crohn","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","201606","","",,,,,,859,859 -860,"[P] Earliest event of Ulcerative colitis",860,"cohortNameLong : Earliest event of Ulcerative colitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest occurrence of Ulcerative Colitis indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation; -hashTag : #UlcerativeColitis; -contributors : Joel Swerdel'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441202; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-anaphylaxis/17835; -replaces : ; -","2023-09-18","2023-09-22","rao@ohdsi.org","Earliest event of Ulcerative colitis",,"Earliest event of Ulcerative colitis","Pending peer review","","Earliest occurrence of Ulcerative Colitis indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#UlcerativeColitis","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","441202","https//forums.ohdsi.org/t/phenotype-submission-anaphylaxis/17835","",,,,,,860,860 -861,"[W] Earliest event of Urinary tract infections (UTI)",861,"cohortNameLong : Earliest event of Urinary tract infections (UTI); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest event of diagnosis of urinary tract infections, cohort exist is end of observation period.; -hashTag : #ColorectalCancer, #Cancer; -contributors : Stephen Fortin; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 141651; -ohdsiForumPost : ; -replaces : ; -notes: Cohort appears to model biologically implausible situation;","2023-09-18","2023-11-29","rao@ohdsi.org","Earliest event of Urinary tract infections (UTI)",,"Earliest event of Urinary tract infections (UTI)","Pending peer review","","Earliest event of diagnosis of urinary tract infections, cohort exist is end of observation period.","#ColorectalCancer, #Cancer","Stephen Fortin","0000-0002-6976-2594'","'OHDSI'","","","141651","","","Cohort appears to model biologically implausible situation",,,,,861,861 -862,"[P] Earliest event of Alzheimer's disease derived from Imfeld, 2",862,"cohortNameLong : Earliest event of Alzheimer's disease derived from Imfeld, 2; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #ColorectalCancer, #Cancer; -contributors : Azza Shoaibi'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 42872891; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2023-09-20","rao@ohdsi.org","Earliest event of Alzheimer's disease derived from Imfeld, 2",,"Earliest event of Alzheimer's disease derived from Imfeld, 2","Pending peer review","","","#ColorectalCancer, #Cancer","Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","42872891","","",,,,,,862,862 -863,"[P] Cognitive impairment, incident",863,"cohortNameLong : Cognitive impairment, incident; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest occurrence of Crohns disease indexed on diagnosis date, for the first time in history , with 365 days prior observation time. cohort exit is the end of continuous observation; -hashTag : ; -contributors : Azza Shoaibi', 'Dave Kern'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4297400, 439795; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-cognitive-impairment/19940; -replaces : ; -","2023-09-18","2023-10-04","rao@ohdsi.org","Cognitive impairment, incident",,"Cognitive impairment, incident","Pending peer review","","Earliest occurrence of Crohns disease indexed on diagnosis date, for the first time in history , with 365 days prior observation time. cohort exit is the end of continuous observation","","Azza Shoaibi', 'Dave Kern'","0000-0002-6976-2594'","'OHDSI'","","","4297400, 439795",,"",,,,,,863,863 -864,"[P] Earliest event of Dementia",864,"cohortNameLong : Earliest event of Dementia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Occurrences of dementia indexed on diagnosis or observation date with no required prior continuous enrollment subset to earliest observation where the patient was 18 years or older cohort exit is the end of continuous observation.; -hashTag : #Dementia; -contributors : Azza Shoaibi'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4182210; -ohdsiForumPost : ; -replaces : ; -","2023-09-18","2023-10-03","rao@ohdsi.org","Earliest event of Dementia",,"Earliest event of Dementia","Pending peer review","","Occurrences of dementia indexed on diagnosis or observation date with no required prior continuous enrollment subset to earliest observation where the patient was 18 years or older cohort exit is the end of continuous observation.","#Dementia","Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","4182210","","",,,,,,864,864 -865,"[P] Non-Emergent Major Non Cardiac Surgery among adults",865,"cohortNameLong : Major Non Cardiac Surgery, adults, inpt stay, no ED; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty'; -contributorOrcIds : 0000-0003-4631-9992'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4301351; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-non-emergent-major-non-cardiac-surgery/19944; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Non-Emergent Major Non Cardiac Surgery among adults",,"Major Non Cardiac Surgery, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","4301351",,"",,,,,,865,865 -866,"[P] Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED",866,"cohortNameLong : Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4301351; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-abdominal-aortic-aneurysm-repair-non-emergent/19948; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED",,"Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,866,866 -867,"[P] Lower Extremity Bypass, adults, inpt stay, no ED",867,"cohortNameLong : Lower Extremity Bypass, adults, inpt stay, no ED; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4301351; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-lower-extremity-bypass/19957; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Lower Extremity Bypass, adults, inpt stay, no ED",,"Lower Extremity Bypass, adults, inpt stay, no ED","Pending peer review","","","#surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,867,867 -868,"[P] Carotid Endarterectomy, adults, inpt stay, no ED",868,"cohortNameLong : Carotid Endarterectomy, adults, inpt stay, no ED; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty, Brian Bucher; -contributorOrcIds : 0000-0003-4631-9992, 0000-0001-8376-9752; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4301351; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-carotid-endarterectomy-non-emergent/19949; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Carotid Endarterectomy, adults, inpt stay, no ED",,"Carotid Endarterectomy, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty, Brian Bucher","0000-0003-4631-9992, 0000-0001-8376-9752","'OHDSI'","","","4301351",,"",,,,,,868,868 -869,"[P] Lung Resection, adults, inpt stay, no ED",869,"cohortNameLong : Lung Resection, adults, inpt stay, no ED; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4301351; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-lung-resection/19950; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Lung Resection, adults, inpt stay, no ED",,"Lung Resection, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,869,869 -870,"[P] Esophagectomy, adults, inpt stay, no ED",870,"cohortNameLong : Esophagectomy, adults, inpt stay, no ED; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 132702; -ohdsiForumPost : ; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Esophagectomy, adults, inpt stay, no ED",,"Esophagectomy, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","132702","","",,,,,,870,870 -871,"[P] Pancreatectomy, adults, inpt stay, no ED",871,"cohortNameLong : Pancreatectomy, adults, inpt stay, no ED; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4301351; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-pancreatectomy/19951; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Pancreatectomy, adults, inpt stay, no ED",,"Pancreatectomy, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,871,871 -872,"[P] Colectomy, adults, inpt stay, no ED",872,"cohortNameLong : Colectomy, adults, inpt stay, no ED; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4301351; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-colectomy/19952; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Colectomy, adults, inpt stay, no ED",,"Colectomy, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,872,872 -873,"[P] Cystectomy, adults, inpt stay, no ED",873,"cohortNameLong : Cystectomy, adults, inpt stay, no ED; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4301351; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-cystectomy/19953; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Cystectomy, adults, inpt stay, no ED",,"Cystectomy, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,873,873 -874,"[P] Nephrectomy, adults, inpt stay, no ED",874,"cohortNameLong : Nephrectomy, adults, inpt stay, no ED; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty, Brian Bucher; -contributorOrcIds : 0000-0003-4631-9992, 0000-0001-8376-9752; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4301351; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-nephrectomy/19954; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Nephrectomy, adults, inpt stay, no ED",,"Nephrectomy, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty, Brian Bucher","0000-0003-4631-9992, 0000-0001-8376-9752","'OHDSI'","","","4301351",,"",,,,,,874,874 -875,"[P] Coronary Artery Bypass Graft, adults, inpt stay, no ED",875,"cohortNameLong : Coronary Artery Bypass Graft, adults, inpt stay, no ED; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4301351; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Coronary Artery Bypass Graft, adults, inpt stay, no ED",,"Coronary Artery Bypass Graft, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,875,875 -876,"[P] Cardiac Valve Surgery, adults, inpt stay, no ED",876,"cohortNameLong : Cardiac Valve Surgery, adults, inpt stay, no ED; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4301351; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-aortic-or-mitral-valve-repair-or-replacement/19956; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Cardiac Valve Surgery, adults, inpt stay, no ED",,"Cardiac Valve Surgery, adults, inpt stay, no ED","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"",,,,,,876,876 -877,"[P] Non-Emergent MNCS (age 18 or greater), post op Afib (parox)",877,"cohortNameLong : Non-Emergent MNCS (age 18 or greater), post op Afib (parox); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #NonEmergent; -contributors : Evan Minty'; -contributorOrcIds : 0000-0003-4631-9992'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374954; -ohdsiForumPost : ; -replaces : ; -","2023-09-19","2023-10-05","rao@ohdsi.org","Non-Emergent MNCS (age 18 or greater), post op Afib (parox)",,"Non-Emergent MNCS (age 18 or greater), post op Afib (parox)","Pending peer review","","","#Surgery, #NonEmergent","Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","374954","","",,,,,,877,877 -878,"[P] Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib",878,"cohortNameLong : Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty'; -contributorOrcIds : 0000-0003-4631-9992'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436100; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-narcolepsy/17784; -replaces : ; -","2023-09-19","2024-01-05","rao@ohdsi.org","Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib",,"Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib","Pending peer review","","","#Surgery","Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","436100","https//forums.ohdsi.org/t/phenotype-submission-narcolepsy/17784","",,,,,,878,878 -881,"[P] Acute myocardial infarction",881,"cohortNameLong : Acute myocardial infarction events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Acute myocardial infarction condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabetes; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 139900; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Acute myocardial infarction",,"Acute myocardial infarction events","Pending","","Acute myocardial infarction condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabetes","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","139900","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,881,881 -882,"[P] Decreased libido",882,"cohortNameLong : Persons with decreased libido; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of decreased libido; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377575; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-21","rao@ohdsi.org","Decreased libido",,"Persons with decreased libido","Pending","","The first condition record of decreased libido","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","377575","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,882,882 -884,"[P] Diarrhea including enteritis",884,"cohortNameLong : Diarrhea events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Diarrhea condition record of any type successive records with > 30 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 196523; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ;","2023-09-20","2023-10-09","rao@ohdsi.org","Diarrhea including enteritis",,"Diarrhea events","Pending","","Diarrhea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","196523",,"",,,,,,884,884 -888,"[P] Gastrointestinal bleeding",888,"cohortNameLong : Gastrointestinal bleeding events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Gastrointestinal hemorrhage condition record during an inpatient or ER visit successive records with > 30 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 196715; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Gastrointestinal bleeding",,"Gastrointestinal bleeding events","Pending","","Gastrointestinal hemorrhage condition record during an inpatient or ER visit successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","196715","","",,,,,,888,888 -889,"[P] Hyponatremia",889,"cohortNameLong : Hyponatremia events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Hyponatremia condition record of any type successive records with > 90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 199837; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Hyponatremia",,"Hyponatremia events","Pending","","Hyponatremia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","199837","","",,,,,,889,889 -890,"[P] Hypotension",890,"cohortNameLong : Hypotension events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Hypotension condition record of any type successive records with > 90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4133004, 43531681; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Hypotension",,"Hypotension events","Pending","","Hypotension condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4133004, 43531681","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,890,890 -891,"[P] Nausea",891,"cohortNameLong : Nausea events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Nausea condition record of any type successive records with > 30 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436093; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Nausea",,"Nausea events","Pending","","Nausea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","436093","","",,,,,,891,891 -892,"[P] Stroke",892,"cohortNameLong : Stroke (ischemic or hemorrhagic) events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Stroke (ischemic or hemorrhagic) condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 443454; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Stroke",,"Stroke (ischemic or hemorrhagic) events","Pending","","Stroke (ischemic or hemorrhagic) condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","443454","","",,,,,,892,892 -893,"[P] Vertigo",893,"cohortNameLong : Persons with vertigo; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of vertigo; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4192640, 199074; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Vertigo",,"Persons with vertigo","Pending","","The first condition record of vertigo","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4192640, 199074","https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848","",,,,,,893,893 -894,"[P] Abdominal pain",894,"cohortNameLong : Abdominal pain events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Abdominal pain condition record of any type successive records with > 90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4192640, 199074, 4340961; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Abdominal pain",,"Abdominal pain events","Pending","","Abdominal pain condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4192640, 199074, 4340961","https//forums.ohdsi.org/t/phenotype-submission-acute-pancreatitis-and-drug-induced-acute-pancreatitis/17848","",,,,,,894,894 -895,"[P] Abnormal weight gain",895,"cohortNameLong : Abnormal weight gain events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Abnormal weight gain record of any type successive records with > 90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #legendDiabetes, #Symptoms; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377091, 380378, 4029498; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-drug-resistant-epilepsy/17569; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Abnormal weight gain",,"Abnormal weight gain events","Pending","","Abnormal weight gain record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #legendDiabetes, #Symptoms","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","377091, 380378, 4029498","https//forums.ohdsi.org/t/phenotype-submission-drug-resistant-epilepsy/17569","",,,,,,895,895 -896,"[P] Abnormal weight loss",896,"cohortNameLong : Abnormal weight loss events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Abnormal weight loss observation record of any type successive records with > 90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #legendDiabetes; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435928; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-28","rao@ohdsi.org","Abnormal weight loss",,"Abnormal weight loss events","Pending","","Abnormal weight loss observation record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #legendDiabetes","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","435928","","",,,,,,896,896 -898,"[P] Acute renal failure",898,"cohortNameLong : Acute renal failure events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Acute renal failure condition record during an inpatient or ER visit successive records with >30 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabete; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374923, 4091559; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-facial-palsy-lmn-including-bells-palsy-thats-not-umn/17788; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Acute renal failure",,"Acute renal failure events","Pending","","Acute renal failure condition record during an inpatient or ER visit successive records with >30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabete","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","374923, 4091559","https//forums.ohdsi.org/t/phenotype-submission-facial-palsy-lmn-including-bells-palsy-thats-not-umn/17788","",,,,,,898,898 -900,"[P] Anaphylactoid reaction",900,"cohortNameLong : Anaphylactoid reaction events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Anaphylactoid reaction condition record during an inpatient or ER visit successive records with >7 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441202; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-24-anaphylaxis/16033; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Anaphylactoid reaction",,"Anaphylactoid reaction events","Pending","","Anaphylactoid reaction condition record during an inpatient or ER visit successive records with >7 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","441202","https//forums.ohdsi.org/t/phenotype-phebruary-day-24-anaphylaxis/16033","",,,,,,900,900 -901,"[P] Anemia",901,"cohortNameLong : Persons with anemia; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of anemia; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441202; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebrurary-2023-p2-anaphylaxis/18193; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Anemia",,"Persons with anemia","Pending","","The first condition record of anemia","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","441202","https//forums.ohdsi.org/t/phenotype-phebrurary-2023-p2-anaphylaxis/18193","",,,,,,901,901 -917,"[P] Anxiety",917,"cohortNameLong : Persons with anxiety; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of anxiety, which is followed by another anxiety condition record or a drug used to treat anxiety; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Anxiety",,"Persons with anxiety","Pending","","The first condition record of anxiety, which is followed by another anxiety condition record or a drug used to treat anxiety","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","",,,,,,917,917 -918,"[P] Bradycardia",918,"cohortNameLong : Persons with bradycardia; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of bradycardia, which is followed by another bradycardia condition record; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Bradycardia",,"Persons with bradycardia","Pending","","The first condition record of bradycardia, which is followed by another bradycardia condition record","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","",,,,,,918,918 -919,"[P] Cardiac arrhythmia",919,"cohortNameLong : Person with cardiac arrhythmia; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of cardiac arrhythmia, which is followed by another cardiac arrhythmia condition record, at least two drug records for a drug used to treat arrhythmias, or a procedure to treat arrhythmias; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197320; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Cardiac arrhythmia",,"Person with cardiac arrhythmia","Pending","","The first condition record of cardiac arrhythmia, which is followed by another cardiac arrhythmia condition record, at least two drug records for a drug used to treat arrhythmias, or a procedure to treat arrhythmias","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197320","","",,,,,,919,919 -920,"[P] Cardiovascular disease",920,"cohortNameLong : Total cardiovascular disease events (ischemic stroke, hemorrhagic stroke, heart failure, acute myocardial infarction or sudden cardiac death); -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : A condition record of ischemic stroke, hemorrhagic stroke, heart failure, acute myocardial infarction or sudden cardiac death during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197320; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Cardiovascular disease",,"Total cardiovascular disease events (ischemic stroke, hemorrhagic stroke, heart failure, acute myocardial infarction or sudden cardiac death)","Pending","","A condition record of ischemic stroke, hemorrhagic stroke, heart failure, acute myocardial infarction or sudden cardiac death during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197320","","",,,,,,920,920 -921,"[P] Cardiovascular-related mortality",921,"cohortNameLong : Cardiovascular-related mortality; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Death record with at least 1 cardiovascular-related condition record (myocardial infarction, ischemic stroke, intracranial hemorrhage, sudden cardiac death, hospitalization for heart failure) in 30 days prior to death; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197320; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-29-acute-kidney-injury/16067; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Cardiovascular-related mortality",,"Cardiovascular-related mortality","Pending","","Death record with at least 1 cardiovascular-related condition record (myocardial infarction, ischemic stroke, intracranial hemorrhage, sudden cardiac death, hospitalization for heart failure) in 30 days prior to death","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197320","https//forums.ohdsi.org/t/phenotype-phebruary-day-29-acute-kidney-injury/16067","",,,,,,921,921 -922,"[P] Chest pain or angina",922,"cohortNameLong : Persons with chest pain or angina; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of chest pain or angina; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435503, 439777, 441269; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Chest pain or angina",,"Persons with chest pain or angina","Pending","","The first condition record of chest pain or angina","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","435503, 439777, 441269","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,922,922 -923,"[P] Kidney disease",923,"cohortNameLong : Persons with chronic kidney disease; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of chronic kidney disease, which is followed by either another chronic kidney disease condition record or a dialysis procedure or observation; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435503, 439777, 441269; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Kidney disease",,"Persons with chronic kidney disease","Pending","","The first condition record of chronic kidney disease, which is followed by either another chronic kidney disease condition record or a dialysis procedure or observation","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","435503, 439777, 441269","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,923,923 -924,"[P] Coronary heart disease",924,"cohortNameLong : Coronary heart disease events (acute myocardial infarction or sudden cardiac death); -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : A condition record of acute myocardial infarction or sudden cardiac death during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 437579, 4103295; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Coronary heart disease",,"Coronary heart disease events (acute myocardial infarction or sudden cardiac death)","Pending","","A condition record of acute myocardial infarction or sudden cardiac death during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","437579, 4103295","","",,,,,,924,924 -925,"[P] Cough",925,"cohortNameLong : Cough events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Cough condition record of any type successive records with > 90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #respiratory, #lung; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 321042, 437579, 4103295; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-28","rao@ohdsi.org","Cough",,"Cough events","Pending","","Cough condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #respiratory, #lung","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","321042, 437579, 4103295","","",,,,,,925,925 -927,"[P] Dementia2",927,"cohortNameLong : Persons with dementia; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of dementia; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4182210; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-10-03","rao@ohdsi.org","Dementia2",,"Persons with dementia","Pending","","The first condition record of dementia","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4182210","","",,,,,,927,927 -928,"[P] Depression2",928,"cohortNameLong : Persons with depression; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of depression, which is followed by another depression condition record, at least two drugs used to treat depression without another indication, or two psychotherapy procedures; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377556; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Depression2",,"Persons with depression","Pending","","The first condition record of depression, which is followed by another depression condition record, at least two drugs used to treat depression without another indication, or two psychotherapy procedures","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","377556","","",,,,,,928,928 -929,"[P] Edema events",929,"cohortNameLong : Edema events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Edema condition record of any type successive records with > 180 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 374053, 377889; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-10-03","rao@ohdsi.org","Edema events",,"Edema events","Pending","","Edema condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","374053, 377889","","",,,,,,929,929 -930,"[P] End stage renal disease2",930,"cohortNameLong : Persons with end stage renal disease; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of end stage renal disease, which is followed by either another end stage renal disease condition record or a dialysis procedure or observation within 90 days; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 138525, 194133; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","End stage renal disease2",,"Persons with end stage renal disease","Pending","","The first condition record of end stage renal disease, which is followed by either another end stage renal disease condition record or a dialysis procedure or observation within 90 days","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","138525, 194133","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,930,930 -931,"[P] Fall2",931,"cohortNameLong : Fall events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Fall condition record of any type successive records with > 180 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 134736, 194133; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Fall2",,"Fall events","Pending","","Fall condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","134736, 194133","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,931,931 -932,"[P] Gout2",932,"cohortNameLong : Persons with gout; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of gout; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 200219; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Gout2",,"Persons with gout","Pending","","The first condition record of gout","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","200219","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,932,932 -933,"[P] Headache2",933,"cohortNameLong : Headache events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Headache condition record of any type successive records with > 30 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197381, 4306292; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Headache2",,"Headache events","Pending","","Headache condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197381, 4306292","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,933,933 -934,"[P] Heart failure2",934,"cohortNameLong : Persons with heart failure; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of heart failure, which is followed by at least 1 heart failure condition record in the following year; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 78232, 80180; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Heart failure2",,"Persons with heart failure","Pending","","The first condition record of heart failure, which is followed by at least 1 heart failure condition record in the following year","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","78232, 80180","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,934,934 -935,"[P] Hemorrhagic stroke2",935,"cohortNameLong : Hemorrhagic stroke (intracerebral bleeding) events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Intracranial, cerebral or subarachnoid hemorrhage condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194997; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Hemorrhagic stroke2",,"Hemorrhagic stroke (intracerebral bleeding) events","Pending","","Intracranial, cerebral or subarachnoid hemorrhage condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","194997","","",,,,,,935,935 -936,"[P] Hepatic failure2",936,"cohortNameLong : Persons with hepatic failure; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of hepatic failure, necrosis, or coma; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 320116, 4138837; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Hepatic failure2",,"Persons with hepatic failure","Pending","","The first condition record of hepatic failure, necrosis, or coma","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","320116, 4138837","","",,,,,,936,936 -938,"[P] Hospitalization with heart failure",938,"cohortNameLong : Hospitalization with heart failure events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Inpatient or ER visits with heart failure condition record all qualifying inpatient visits occurring > 7 days apart are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : Evan Minty; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 79908, 138965, 139803, 380995, 443904; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Hospitalization with heart failure",,"Hospitalization with heart failure events","Pending","","Inpatient or ER visits with heart failure condition record all qualifying inpatient visits occurring > 7 days apart are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","Evan Minty","","79908, 138965, 139803, 380995, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,938,938 -939,"[P] Hospitalization with preinfarction syndrome",939,"cohortNameLong : Hospitalization with preinfarction syndrome events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Inpatient or ER visits with preinfarction syndrome condition record all qualifying inpatient visits occurring > 7 days apart are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201820, 201826; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-day-1-type-2-diabetes-mellitus/15764; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Hospitalization with preinfarction syndrome",,"Hospitalization with preinfarction syndrome events","Pending","","Inpatient or ER visits with preinfarction syndrome condition record all qualifying inpatient visits occurring > 7 days apart are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","201820, 201826","https//forums.ohdsi.org/t/phenotype-phebruary-day-1-type-2-diabetes-mellitus/15764","",,,,,,939,939 -940,"[P] Hyperkalemia",940,"cohortNameLong : Hyperkalemia events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Condition record for hyperkalemia or potassium measurements > 5.6 mmol/L successive records with >90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabetes; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313217, 44784217; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Hyperkalemia",,"Hyperkalemia events","Pending","","Condition record for hyperkalemia or potassium measurements > 5.6 mmol/L successive records with >90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabetes","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","313217, 44784217","","",,,,,,940,940 -941,"[P] Hypokalemia",941,"cohortNameLong : Hypokalemia events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Hypokalemia condition record of any type successive records with > 90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 138384, 140673; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Hypokalemia",,"Hypokalemia events","Pending","","Hypokalemia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","138384, 140673","","",,,,,,941,941 -942,"[P] Hypomagnesemia",942,"cohortNameLong : Hypomagnesemia events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Hypomagnesemia condition record of any type successive records with > 90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 78474, 80767, 137809; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Hypomagnesemia",,"Hypomagnesemia events","Pending","","Hypomagnesemia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","78474, 80767, 137809","","",,,,,,942,942 -943,"[P] Impotence",943,"cohortNameLong : Persons with impotence; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of impotence; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Impotence",,"Persons with impotence","Pending","","The first condition record of impotence","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","",,,,,,943,943 -944,"[P] Ischemic stroke",944,"cohortNameLong : Ischemic stroke events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Ischemic stroke condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194990; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Ischemic stroke",,"Ischemic stroke events","Pending","","Ischemic stroke condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","194990","","",,,,,,944,944 -945,"[P] Malignant neoplasm",945,"cohortNameLong : Persons with a malignant neoplasm other than non-melanoma skin cancer; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of a malignant neoplasm, with at least 2 conditions records for one of 17 leading cancer (breast, prostate, lung, colorectal, bladder, ovary, uterus, thyroid, kidney, brain, pancreas, liver, multiple myeloma, leukemia, melanoma, myelodysplastic syndrome); -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194990; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Malignant neoplasm",,"Persons with a malignant neoplasm other than non-melanoma skin cancer","Pending","","The first condition record of a malignant neoplasm, with at least 2 conditions records for one of 17 leading cancer (breast, prostate, lung, colorectal, bladder, ovary, uterus, thyroid, kidney, brain, pancreas, liver, multiple myeloma, leukemia, melanoma, myelodysplastic syndrome)","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","194990","","",,,,,,945,945 -946,"[P] Measured renal dysfunction",946,"cohortNameLong : Persons with measured renal dysfunction; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first creatinine measurement with value > 3 mg/dL; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4245975; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Measured renal dysfunction",,"Persons with measured renal dysfunction","Pending","","The first creatinine measurement with value > 3 mg/dL","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","",,,,,,946,946 -947,"[P] Neutropenia or agranulocytosis",947,"cohortNameLong : Persons with neutropenia or agranulocytosis; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of neutropenia or agranulocytosis; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : Evan Minty; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 79908, 139803, 443904; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Neutropenia or agranulocytosis",,"Persons with neutropenia or agranulocytosis","Pending","","The first condition record of neutropenia or agranulocytosis","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","Evan Minty","","79908, 139803, 443904","https//forums.ohdsi.org/t/phenotype-submission-transverse-myelitis/17769","",,,,,,947,947 -948,"[P] Rash",948,"cohortNameLong : Rash events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Rash condition record of any type successive records with > 90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 79864, 437038; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Rash",,"Rash events","Pending","","Rash condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","79864, 437038","","",,,,,,948,948 -950,"[P] Rhabdomyolysis2",950,"cohortNameLong : Rhabdomyolysis events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Rhabdomyolysis condition record or muscle disorder condition record with creatine measurement 5*ULN during an inpatient or ER visit successive records with >90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192671; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Rhabdomyolysis2",,"Rhabdomyolysis events","Pending","","Rhabdomyolysis condition record or muscle disorder condition record with creatine measurement 5*ULN during an inpatient or ER visit successive records with >90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","192671","","",,,,,,950,950 -953,"[P] Sudden cardiac death in inpatient",953,"cohortNameLong : Sudden cardiac death events in inpatient; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Sudden cardiac death condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197607, 4302555; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Sudden cardiac death in inpatient",,"Sudden cardiac death events in inpatient","Pending","","Sudden cardiac death condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197607, 4302555","","",,,,,,953,953 -954,"[P] Syncope",954,"cohortNameLong : Syncope events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Syncope condition record of any type successive records with > 180 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377252; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Syncope",,"Syncope events","Pending","","Syncope condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","377252","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,954,954 -955,"[P] Thrombocytopenia",955,"cohortNameLong : Persons with thrombocytopenia; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of thrombocytopenia; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 376938; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Thrombocytopenia",,"Persons with thrombocytopenia","Pending","","The first condition record of thrombocytopenia","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","376938","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,955,955 -956,"[P] Transient ischemic attack",956,"cohortNameLong : Transient ischemic attack events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Transient ischemic attack condition record during an inpatient or ER visit successive records with > 30 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4112970; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Transient ischemic attack",,"Transient ischemic attack events","Pending","","Transient ischemic attack condition record during an inpatient or ER visit successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","4112970","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,956,956 -957,"[P] Type 2 diabetes mellitus",957,"cohortNameLong : Persons with type 2 diabetes mellitus; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of Type 2 Diabetes Mellitus, which is followed by another Type 2 Diabetes Mellitus condition record, at least 2 drugs used to treat Type 2 diabetes, or at least 2 HbA1c measurements with value > 6.5%; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4216000, 4246137; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Type 2 diabetes mellitus",,"Persons with type 2 diabetes mellitus","Pending","","The first condition record of Type 2 Diabetes Mellitus, which is followed by another Type 2 Diabetes Mellitus condition record, at least 2 drugs used to treat Type 2 diabetes, or at least 2 HbA1c measurements with value > 6.5%","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","4216000, 4246137","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,957,957 -963,"[P] Vomiting",963,"cohortNameLong : Vomiting events; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Vomiting condition record of any type successive records with > 30 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 25297, 4226263; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Vomiting",,"Vomiting events","Pending","","Vomiting condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","25297, 4226263","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,963,963 -964,"[P] Chronic kidney disease",964,"cohortNameLong : Persons with chronic kidney disease with 2+ diagnoses across 30d or 2+ dialysis; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Persons with chronic kidney disease with 2+ diagnoses across 30d or 2+ dialysis; -hashTag : #usedInStudy, #LEGEND, #Hypertension, #legendHypertension; -contributors : 'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'; -contributorOrcIds : 0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 314754; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Chronic kidney disease",,"Persons with chronic kidney disease with 2+ diagnoses across 30d or 2+ dialysis","Pending","","Persons with chronic kidney disease with 2+ diagnoses across 30d or 2+ dialysis","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension","'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","314754","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,964,964 -965,"[P] 3-point MACE",965,"cohortNameLong : ; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Condition record of acute myocardial infarction, hemorrhagic or ischemic stroke or sudden cardiac death during an inpatient or ER visit; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 253506, 255848; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","3-point MACE",,"","Pending","","Condition record of acute myocardial infarction, hemorrhagic or ischemic stroke or sudden cardiac death during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","253506, 255848","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,965,965 -967,"[P] 4-point MACE",967,"cohortNameLong : ; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : 3-Point MACE $+$ inpatient or ER visit (hospitalization) with heart failure condition record; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4023572; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","4-point MACE",,"","Pending","","3-Point MACE $+$ inpatient or ER visit (hospitalization) with heart failure condition record","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4023572","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,967,967 -976,"[P] Glycemic control",976,"cohortNameLong : ; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : First hemoglobin A1c measurement with value $\le$ 7\%; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 317009; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Glycemic control",,"","Pending","","First hemoglobin A1c measurement with value $\le$ 7\%","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","317009","","",,,,,,976,976 -979,"[P] Hospitalization with heart failure indexed on hospitalization",979,"cohortNameLong : ; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Inpatient or ER visit with heart failure condition record; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441542, 442077; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Hospitalization with heart failure indexed on hospitalization",,"","Pending","","Inpatient or ER visit with heart failure condition record","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","","","","441542, 442077","","",,,,,,979,979 -980,"[P] Revascularization",980,"cohortNameLong : Coronary Vessel Revascularization; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Procedure record of percutaneous coronary intervention or coronary artery bypass grafting during an inpatient or ER visit; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4283892,4336464; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-20","2023-10-04","rao@ohdsi.org","Revascularization",,"Coronary Vessel Revascularization","Pending","","Procedure record of percutaneous coronary intervention or coronary artery bypass grafting during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4283892,4336464",,"",,,,,,980,980 -982,"[P] Stroke (ischemic or hemorrhagic) in inpatient",982,"cohortNameLong : Stroke (ischemic or hemorrhagic) in inpatient; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Condition record of hemorrhagic or ischemic stroke during an inpatient or ER visit; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 134438, 45766714; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Stroke (ischemic or hemorrhagic) in inpatient",,"Stroke (ischemic or hemorrhagic) in inpatient","Pending","","Condition record of hemorrhagic or ischemic stroke during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","134438, 45766714","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,982,982 -986,"[P] Acute pancreatitis2",986,"cohortNameLong : ; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Condition record of acute pancreatitis during an inpatient or ER visit; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Acute pancreatitis2",,"","Pending","","Condition record of acute pancreatitis during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","","","",,,,,,986,986 -989,"[P] Bladder cancer",989,"cohortNameLong : Bladder Cancer; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Malignant tumor of urinary bladder condition record of any type limited to earliest event per person; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-10-05","rao@ohdsi.org","Bladder cancer",,"Bladder Cancer","Pending","","Malignant tumor of urinary bladder condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","","","",,,,,,989,989 -990,"[P] Bone fracture",990,"cohortNameLong : Bone Fracture; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Bone fracture condition record of any type successive records with > 90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 75053; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666/; -replaces : ; -","2023-09-20","2023-10-04","rao@ohdsi.org","Bone fracture",,"Bone Fracture","Pending","","Bone fracture condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","75053",,"",,,,,,990,990 -991,"[P] Breast cancer Malignant tumor of breast",991,"cohortNameLong : Breast cancer Malignant tumor of breast; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Malignant tumor of breast condition record of any type limited to earliest event per person; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197925, 4245614; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Breast cancer Malignant tumor of breast",,"Breast cancer Malignant tumor of breast","Pending","","Malignant tumor of breast condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","197925, 4245614","","",,,,,,991,991 -992,"[P] Diabetic ketoacidosis with inpatient or ER visit",992,"cohortNameLong : ; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Diabetic ketoacidosis condition record during an inpatient or ER visit; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 261687; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Diabetic ketoacidosis with inpatient or ER visit",,"","Pending","","Diabetic ketoacidosis condition record during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","261687","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,992,992 -993,"[W] Diarrhea including enteritis",993,"cohortNameLong : ; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Diarrhea condition record of any type successive records with > 30 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4209223, 4285898, 42537251; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; - -notes : duplicate 884; -","2023-09-20","2023-10-09","rao@ohdsi.org","Diarrhea including enteritis",,"","Pending","","Diarrhea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4209223, 4285898, 42537251","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","","duplicate 884",,,,,993,993 -994,"[P] Genitourinary infection",994,"cohortNameLong : Genitourinary infection; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Condition record of any type of genital or urinary tract infection during an outpatient or ER vists; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 24660, 4083666; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-25","rao@ohdsi.org","Genitourinary infection",,"Genitourinary infection","Pending","","Condition record of any type of genital or urinary tract infection during an outpatient or ER vists","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","24660, 4083666","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,994,994 -996,"[P] Hypoglycemia",996,"cohortNameLong : Hypoglycemia; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Hypoglycemia condition record of any type successive records with > 90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257007, 4320791; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Hypoglycemia",,"Hypoglycemia","Pending","","Hypoglycemia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","257007, 4320791","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,996,996 -997,"[W] Hypotension or low blood pressure",997,"cohortNameLong : Hypotension; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Hypotension condition record of any type successive records with > 90 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 24969, 260134; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; - -notes : duplicates 890;","2023-09-20","2023-10-09","rao@ohdsi.org","Hypotension or low blood pressure",,"Hypotension","Pending","","Hypotension condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","24969, 260134","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","","duplicates 890",,,,,997,997 -998,"[P] Joint pain3",998,"cohortNameLong : ; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Joint pain condition record of any type successive records with > 90 days gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4096682; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Joint pain3",,"","Pending","","Joint pain condition record of any type successive records with > 90 days gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4096682","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,998,998 -999,"[P] Lower extremity amputation3",999,"cohortNameLong : Lower extremity amputation; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Procedure record of below knee lower extremity amputation during inpatient or outpatient visit; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 261600, 4078925; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Lower extremity amputation3",,"Lower extremity amputation","Pending","","Procedure record of below knee lower extremity amputation during inpatient or outpatient visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","261600, 4078925","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,999,999 -1000,"[P] Nausea3",1000,"cohortNameLong : ; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Nausea condition record of any type successive records with > 30 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 319049, 4256228; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Nausea3",,"","Pending","","Nausea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","319049, 4256228","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1000,1000 -1001,"[W] Peripheral edema",1001,"cohortNameLong : Peripheral edema; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Edema condition record of any type successive records with > 180 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 319049, 4256228; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; - -notes: unclear about the origins and also how does it differ from 929;","2023-09-20","2023-10-16","rao@ohdsi.org","Peripheral edema",,"Peripheral edema","Pending","","Edema condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","319049, 4256228","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","","unclear about the origins and also how does it differ from 929",,,,,1001,1001 -1002,"[P] Photosensitivity",1002,"cohortNameLong : Photosensitivity; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Condition record of drug-induced photosensitivity during any type of visit; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 254061; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Photosensitivity",,"Photosensitivity","Pending","","Condition record of drug-induced photosensitivity during any type of visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","254061","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1002,1002 -1003,"[P] Renal cancer",1003,"cohortNameLong : Renal Cancer; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Primary malignant neoplasm of kidney condition record of any type limited to earliest event per person; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 73754; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Renal cancer",,"Renal Cancer","Pending","","Primary malignant neoplasm of kidney condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","73754","https//forums.ohdsi.org/t/phenotype-phebruary-2023-p11-neurofibromatosis-type-1-with-optical-pathway-glioma/18236","",,,,,,1003,1003 -1004,"[P] Thyroid tumor",1004,"cohortNameLong : Thyroid tumor; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Neoplasm of thyroid gland condition record of any type limited to earliest event per person; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4131909; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-20","2023-10-05","rao@ohdsi.org","Thyroid tumor",,"Thyroid tumor","Pending","","Neoplasm of thyroid gland condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","","","","4131909",,"",,,,,,1004,1004 -1005,"[P] Venous thromboembolism",1005,"cohortNameLong : Venous thromboembolism; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Venous thromboembolism condition record of any type successive records with > 180 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 72404, 72711; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Venous thromboembolism",,"Venous thromboembolism","Pending","","Venous thromboembolism condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","72404, 72711","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1005,1005 -1006,"[P] Vomiting symptoms",1006,"cohortNameLong : Vomiting; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Vomiting condition record of any type successive records with > 30 day gap are considered independent episodes; -hashTag : #usedInStudy, #LEGEND, #Diabetes, #legendDiabetes, #Symptoms; -contributors : Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'; -contributorOrcIds : 0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435524, 442588; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-24","rao@ohdsi.org","Vomiting symptoms",,"Vomiting","Pending","","Vomiting condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes, #Symptoms","Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","435524, 442588","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1006,1006 -1007,"[P] Earliest event of Epilepsy",1007,"cohortNameLong : Earliest event of Epilepsy; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of Epilepsy indexed on diagnosis date cohort exit is the end of continuous observation.; -hashTag : #JnJ, #Indication; -contributors : Azza Shoaibi'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197684, 4021780; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Epilepsy",,"Earliest event of Epilepsy","Pending","","Earliest occurrence of Epilepsy indexed on diagnosis date cohort exit is the end of continuous observation.","#JnJ, #Indication","Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","197684, 4021780","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1007,1007 -1009,"[P] Earliest event of Treatment resistant depression (TRD)",1009,"cohortNameLong : Earliest event of Treatment resistant depression (TRD); -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Depression disorder patients indexed on prescription date of a first-line anti-depressant preceded by at least two prior first-line anti-depressants) or indexed on an antipsychotic preceded by a first-line anti-depressant or indexed on use of esketamine preceded by a first-line anti-depressant subset to the earliest entry with a depressive disorder diagnosis in the prior year and no history of mania, dementia, or psychosis requiring continuous enrollment for the year preceding the index date and the year preceding the depression diagnosis cohort exit is the end of continuous observation.; -hashTag : #JnJ, #Indication; -contributors : Azza Shoaibi'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 25297, 28060, 4226263; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-10-04","rao@ohdsi.org","Earliest event of Treatment resistant depression (TRD)",,"Earliest event of Treatment resistant depression (TRD)","Pending","","Depression disorder patients indexed on prescription date of a first-line anti-depressant preceded by at least two prior first-line anti-depressants) or indexed on an antipsychotic preceded by a first-line anti-depressant or indexed on use of esketamine preceded by a first-line anti-depressant subset to the earliest entry with a depressive disorder diagnosis in the prior year and no history of mania, dementia, or psychosis requiring continuous enrollment for the year preceding the index date and the year preceding the depression diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication","Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","25297, 28060, 4226263","","",,,,,,1009,1009 -1010,"[P] Earliest event of Chronic Graft Versus Host Disease (GVHD)",1010,"cohortNameLong : Earliest event of Chronic Graft Versus Host Disease (GVHD); -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of Chronic graft-versus-host disease indexed on diagnosis date of Chronic graft-versus-host disease or acute on Chronic graft-versus-host disease (for the first time in history) or unspecified raft-versus-host disease with a Hematopoietic Stem Cell Transplantation (HSCT) anytime prior to 180 days prior to index, cohort exit is the end of continuous observation; -hashTag : #JnJ, #Indication; -contributors : Jill Hardin; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257007, 4320791; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Chronic Graft Versus Host Disease (GVHD)",,"Earliest event of Chronic Graft Versus Host Disease (GVHD)","Pending","","Earliest occurrence of Chronic graft-versus-host disease indexed on diagnosis date of Chronic graft-versus-host disease or acute on Chronic graft-versus-host disease (for the first time in history) or unspecified raft-versus-host disease with a Hematopoietic Stem Cell Transplantation (HSCT) anytime prior to 180 days prior to index, cohort exit is the end of continuous observation","#JnJ, #Indication","Jill Hardin","","'OHDSI'","","","257007, 4320791","","",,,,,,1010,1010 -1011,"[P] Earliest event of Marginal zone lymphoma",1011,"cohortNameLong : Earliest event of Marginal zone lymphoma; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of Marginal zone lymphoma, indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation; -hashTag : #JnJ, #Indication; -contributors : Jill Hardin; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 260123, 4283893; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Marginal zone lymphoma",,"Earliest event of Marginal zone lymphoma","Pending","","Earliest occurrence of Marginal zone lymphoma, indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication","Jill Hardin","","'OHDSI'","","","260123, 4283893","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1011,1011 -1012,"[P] Earliest event of Waldenstrom macroglobulinemia",1012,"cohortNameLong : Earliest event of Waldenstrom macroglobulinemia; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of Waldenstrom macroglobulinemia indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation; -hashTag : #JnJ, #Indication; -contributors : 'Jill Hardin'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435502; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-waldenstrom-macroglobulinemia/20003; -replaces : ; -","2023-09-20","2023-10-04","rao@ohdsi.org","Earliest event of Waldenstrom macroglobulinemia",,"Earliest event of Waldenstrom macroglobulinemia","Pending","","Earliest occurrence of Waldenstrom macroglobulinemia indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication","'Jill Hardin'","","'OHDSI'","","","435502",,"",,,,,,1012,1012 -1013,"[P] Earliest event of Ankylosing Spondylitis",1013,"cohortNameLong : Earliest event of Ankylosing Spondylitis; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of Ankylosing Spondylitis indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation; -hashTag : #JnJ, #Indication; -contributors : Joel Swerdel'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 257007, 43021227; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Ankylosing Spondylitis",,"Earliest event of Ankylosing Spondylitis","Pending","","Earliest occurrence of Ankylosing Spondylitis indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication","Joel Swerdel'","","'OHDSI'","","","257007, 43021227","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1013,1013 -1016,"[P] Earliest event of Polyarticular juvenile idiopathic arthritis (JIA)",1016,"cohortNameLong : Earliest event of Polyarticular juvenile idiopathic arthritis (JIA); -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : First occurrence of Polyarticular juvenile idiopathic arthritis (JIA)) indexed on diagnosis date, for the first time in history. Requiring that events occurred on or after January of 2016 and limited to patients with age less or equal to 16 years old. cohort exit is the end of continuous observation.; -hashTag : #JnJ, #Indication; -contributors : Joel Swerdel'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 372328; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-10-05","rao@ohdsi.org","Earliest event of Polyarticular juvenile idiopathic arthritis (JIA)",,"Earliest event of Polyarticular juvenile idiopathic arthritis (JIA)","Pending","","First occurrence of Polyarticular juvenile idiopathic arthritis (JIA)) indexed on diagnosis date, for the first time in history. Requiring that events occurred on or after January of 2016 and limited to patients with age less or equal to 16 years old. cohort exit is the end of continuous observation.","#JnJ, #Indication","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","372328","","",,,,,,1016,1016 -1017,"[P] Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old",1017,"cohortNameLong : Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of Neonatal Thrombocytopenia indexed on diagnosis date, for the first time in history limited to patients less than 1 years old, cohort exit is the end of continuous observation; -hashTag : #JnJ, #Indication; -contributors : Nathan Hal', 'Azza Shoaibi'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439777; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old",,"Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old","Pending","","Earliest occurrence of Neonatal Thrombocytopenia indexed on diagnosis date, for the first time in history limited to patients less than 1 years old, cohort exit is the end of continuous observation","#JnJ, #Indication","Nathan Hal', 'Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","439777","https//forums.ohdsi.org/t/phenotype-submission-hemolytic-anemia/17856","",,,,,,1017,1017 -1018,"[P] Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA)",1018,"cohortNameLong : Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA); -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of Warm Autoimmune Hemolytic Anemia (wAIHA) indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation; -hashTag : #JnJ, #Indication; -contributors : 'Jill Hardin'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 437264, 440069; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-10-05","rao@ohdsi.org","Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA)",,"Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA)","Pending","","Earliest occurrence of Warm Autoimmune Hemolytic Anemia (wAIHA) indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication","'Jill Hardin'","","'OHDSI'","","","437264, 440069","","",,,,,,1018,1018 -1019,"[P] All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode",1019,"cohortNameLong : All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : All events of Hemolytic Disease Fetus and Newborn (HDFN) indexed on diagnosis date, requiring a pregnancy episode that started any time prior index and pregnancy ends between 14 days pre to all time post index patients exit the cohort 270 days post index or on events signaling pregnancy end. Reoccurrence events are collapsed if the next event starts within 90 days of end of prior event.; -hashTag : #JnJ, #Indication; -contributors : Joel Swerdel'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 444367, 4145627; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode",,"All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode","Pending","","All events of Hemolytic Disease Fetus and Newborn (HDFN) indexed on diagnosis date, requiring a pregnancy episode that started any time prior index and pregnancy ends between 14 days pre to all time post index patients exit the cohort 270 days post index or on events signaling pregnancy end. Reoccurrence events are collapsed if the next event starts within 90 days of end of prior event.","#JnJ, #Indication","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","444367, 4145627","","",,,,,,1019,1019 -1020,"[P] Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder",1020,"cohortNameLong : Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of major depressive disorder indexed on diagnosis date requiring no occurrence anytime prior including day 0 of Bipolar disorder, Schizoaffective, Schizophrenia not including paraphrenia, Dementia or Psychotic disorder cohort exit is the end of continuous observation.; -hashTag : #JnJ, #Indication; -contributors : Dave Kern, Joel Swerdel; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441259, 4177600; -ohdsiForumPost : Pending; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder",,"Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder","Pending","","Earliest occurrence of major depressive disorder indexed on diagnosis date requiring no occurrence anytime prior including day 0 of Bipolar disorder, Schizoaffective, Schizophrenia not including paraphrenia, Dementia or Psychotic disorder cohort exit is the end of continuous observation.","#JnJ, #Indication","Dave Kern, Joel Swerdel","","'OHDSI'","","","441259, 4177600","Pending","",,,,,,1020,1020 -1021,"[P] Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18",1021,"cohortNameLong : Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of myasthenia gravis (excluding congenital, juvenile, neonatal or genetic) indexed on diagnosis date requiring either a second diagnosis of myasthenia gravis within 365 days after the first diagnosis (index date) or a drug exposure to Pyridostigmine on or 60 days after the first diagnosis or that the first diagnosis occur in an inpatient setting cohort exit is the end of continuous observation. Limit to persons with age greater than or equal to 18 on entry.; -hashTag : #JnJ, #Indication; -contributors : Mitch Conover'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4155911; -ohdsiForumPost : Pending; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18",,"Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18","Pending","","Earliest occurrence of myasthenia gravis (excluding congenital, juvenile, neonatal or genetic) indexed on diagnosis date requiring either a second diagnosis of myasthenia gravis within 365 days after the first diagnosis (index date) or a drug exposure to Pyridostigmine on or 60 days after the first diagnosis or that the first diagnosis occur in an inpatient setting cohort exit is the end of continuous observation. Limit to persons with age greater than or equal to 18 on entry.","#JnJ, #Indication","Mitch Conover'","","'OHDSI'","","","4155911","Pending","",,,,,,1021,1021 -1022,"[P] Earliest event of Depressive and Sleep Disorder",1022,"cohortNameLong : Earliest event of Depressive and Sleep Disorder; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by a sleep disorder diagnosis in the prior year 2) a sleep disorder diagnosis that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.; -hashTag : #JnJ, #Indication; -contributors : Joel Swerdel','Azza Shoaibi'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441259, 4307580; -ohdsiForumPost : Pending; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Depressive and Sleep Disorder",,"Earliest event of Depressive and Sleep Disorder","Pending","","Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by a sleep disorder diagnosis in the prior year 2) a sleep disorder diagnosis that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.","#JnJ, #Indication","Joel Swerdel','Azza Shoaibi'","","'OHDSI'","","","441259, 4307580","Pending","",,,,,,1022,1022 -1023,"[P] Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent",1023,"cohortNameLong : Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by a suicidal ideation diagnosis or suicide observation in the prior year, or 2) a suicide ideation diagnosis that is preceded by a depressive disorder diagnosis in the prior year, or 3) a suicide attempt observation that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.; -hashTag : #JnJ, #Indication; -contributors : Joel Swerdel','Azza Shoaibi' ,'Pranav Bhimani'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 438252, 4118793; -ohdsiForumPost : Pending; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent",,"Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent","Pending","","Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by a suicidal ideation diagnosis or suicide observation in the prior year, or 2) a suicide ideation diagnosis that is preceded by a depressive disorder diagnosis in the prior year, or 3) a suicide attempt observation that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.","#JnJ, #Indication","Joel Swerdel','Azza Shoaibi' ,'Pranav Bhimani'","","'OHDSI'","","","438252, 4118793","Pending","",,,,,,1023,1023 -1024,"[P] Earliest Event of Depressive Disorder with Anhedonia",1024,"cohortNameLong : Earliest Event of Depressive Disorder with Anhedonia; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by an Anhedonia diagnosis in the prior year or 2) an anhedonia diagnosis that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.; -hashTag : #JnJ, #Indication; -contributors : Joel Swerdel', 'Pranav Bhimani'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137977, 435656; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest Event of Depressive Disorder with Anhedonia",,"Earliest Event of Depressive Disorder with Anhedonia","Pending","","Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by an Anhedonia diagnosis in the prior year or 2) an anhedonia diagnosis that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.","#JnJ, #Indication","Joel Swerdel', 'Pranav Bhimani'","","'OHDSI'","","","137977, 435656","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1024,1024 -1025,"[P] First event of Attention-deficit hyperactivity (ADHD) disorder or procedure",1025,"cohortNameLong : First event of Attention-deficit hyperactivity (ADHD) disorder or procedure; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : First occurrence of Attention-deficit hyperactivity disorder (ADHD) condition or related procedures, indexed on the earliest occurrence of ADHD condition, procedure or treatment (limited to drug exposure followed by a related condition or procedure), with 365d prior observation, exit at end of observation; -hashTag : #JnJ, #Indication; -contributors : Jamie Weaves', 'Mitch Connover'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 40480225,4047120; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-attention-deficit-hyperactivity-adhd-disorder/20015; -replaces : ; -","2023-09-20","2023-10-04","rao@ohdsi.org","First event of Attention-deficit hyperactivity (ADHD) disorder or procedure",,"First event of Attention-deficit hyperactivity (ADHD) disorder or procedure","Pending","","First occurrence of Attention-deficit hyperactivity disorder (ADHD) condition or related procedures, indexed on the earliest occurrence of ADHD condition, procedure or treatment (limited to drug exposure followed by a related condition or procedure), with 365d prior observation, exit at end of observation","#JnJ, #Indication","Jamie Weaves', 'Mitch Connover'","","'OHDSI'","","","40480225,4047120",,"",,,,,,1025,1025 -1026,"[P] Earliest Event of Multiple Sclerosis",1026,"cohortNameLong : Earliest Event of Multiple Sclerosis; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest occurrence of multiple sclerosis indexed on diagnosis date for the first time in persons history cohort exit is the end of continuous observation.; -hashTag : #JnJ, #Indication; -contributors : Joel Swerdel'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 135618, 4169287; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest Event of Multiple Sclerosis",,"Earliest Event of Multiple Sclerosis","Pending","","Earliest occurrence of multiple sclerosis indexed on diagnosis date for the first time in persons history cohort exit is the end of continuous observation.","#JnJ, #Indication","Joel Swerdel'","","'OHDSI'","","","135618, 4169287","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","",,,,,,1026,1026 -1027,"[P] Earliest event of Chronic Leukocytic Leukemia",1027,"cohortNameLong : Earliest event of Chronic Leukocytic Leukemia; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest event of Chronic Leukocytic Leukemia (not including Hairy cell, prolymphocytic leukemia, T cell, reticuloendotheliosis) for the first time in persons history, exit cohort at the end of continuous observation period.; -hashTag : #JnJ, #Indication; -contributors : Jill Hardin'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 133834, 133835, 45766714; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Chronic Leukocytic Leukemia",,"Earliest event of Chronic Leukocytic Leukemia","Pending","","Earliest event of Chronic Leukocytic Leukemia (not including Hairy cell, prolymphocytic leukemia, T cell, reticuloendotheliosis) for the first time in persons history, exit cohort at the end of continuous observation period.","#JnJ, #Indication","Jill Hardin'","","'OHDSI'","","","133834, 133835, 45766714","","",,,,,,1027,1027 -1028,"[P] Earliest event of Urothelial carcinoma",1028,"cohortNameLong : Earliest event of Urothelial carcinoma; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest event of Urothelial Carcinoma indexed on diagnosis Indexed on Primary or malignant urothelial bladder cancer diagnosis cohort exit is the end of continuous observation.; -hashTag : #JnJ, #Indication; -contributors : Jill Hardin'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 134438; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Urothelial carcinoma",,"Earliest event of Urothelial carcinoma","Pending","","Earliest event of Urothelial Carcinoma indexed on diagnosis Indexed on Primary or malignant urothelial bladder cancer diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication","Jill Hardin'","","'OHDSI'","","","134438","","",,,,,,1028,1028 -1029,"[P] Earliest event of Mantle Cell Lymphoma",1029,"cohortNameLong : Earliest event of Mantle Cell Lymphoma; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest event of Urothelial Carcinoma indexed on diagnosis Indexed on Primary or malignant urothelial bladder cancer diagnosis cohort exit is the end of continuous observation.; -hashTag : #JnJ, #Indication; -contributors : Jill Hardin'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4242574; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Mantle Cell Lymphoma",,"Earliest event of Mantle Cell Lymphoma","Pending","","Earliest event of Urothelial Carcinoma indexed on diagnosis Indexed on Primary or malignant urothelial bladder cancer diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication","Jill Hardin'","","'OHDSI'","","","4242574","","",,,,,,1029,1029 -1030,"[P] Earliest event of Prostate cancer, among adult males",1030,"cohortNameLong : Earliest event of Prostate cancer, among adult males; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest event of Prostate cancer restricting age greater than or equal to 18 and males indexed on prostate cancer diagnosis cohort exit is the end of continuous observation.; -hashTag : #JnJ, #Indication; -contributors : Rupa Makadia; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 137053; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Prostate cancer, among adult males",,"Earliest event of Prostate cancer, among adult males","Pending","","Earliest event of Prostate cancer restricting age greater than or equal to 18 and males indexed on prostate cancer diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication","Rupa Makadia","","'OHDSI'","","","137053","","",,,,,,1030,1030 -1031,"[P] Earliest event of Coronary artery disease (CAD)",1031,"cohortNameLong : Earliest event of Coronary artery disease (CAD); -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest event of Coronary Artery Disease for the first time in the persons history Indexed on coronary artery disease diagnosis (condition or observation) cohort exit is the end of continuous observation.; -hashTag : #JnJ, #Indication; -contributors : Joel Swerdel'; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4203600, 4239682, 4331304; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Coronary artery disease (CAD)",,"Earliest event of Coronary artery disease (CAD)","Pending","","Earliest event of Coronary Artery Disease for the first time in the persons history Indexed on coronary artery disease diagnosis (condition or observation) cohort exit is the end of continuous observation.","#JnJ, #Indication","Joel Swerdel'","","'OHDSI'","","","4203600, 4239682, 4331304","","",,,,,,1031,1031 -1032,"[P] Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM",1032,"cohortNameLong : Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest event of Type 2 Diabetes Mellitus (DM), indexed on diagnosis or Blood glucose lowering drugs excluding insulin or high Hemoglobin A1c (limited to treatments or measurement that are followed with Type 2 DM diagnosis within 365 days) excluding persons with Type 1 DM or secondary diabetes mellitus in the all time prior including index date; -hashTag : #JnJ, #Indication; -contributors : Patrick Ryan,; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4027396; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM",,"Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM","Pending","","Earliest event of Type 2 Diabetes Mellitus (DM), indexed on diagnosis or Blood glucose lowering drugs excluding insulin or high Hemoglobin A1c (limited to treatments or measurement that are followed with Type 2 DM diagnosis within 365 days) excluding persons with Type 1 DM or secondary diabetes mellitus in the all time prior including index date","#JnJ, #Indication","Patrick Ryan,","","'OHDSI'","","","4027396","","",,,,,,1032,1032 -1033,"[P] Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis",1033,"cohortNameLong : Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : Earliest event of Human Immunodeficiency Virus I (HIV), with HIV drugs or laboratory results any time after index date or second diagnosis post index; cohort exit is the end of continuous observation; -hashTag : #JnJ, #Indication; -contributors : Rupa Makadia, Jamie Calusardo; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4027396, 4117779; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-10-04","rao@ohdsi.org","Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis",,"Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis","Pending","","Earliest event of Human Immunodeficiency Virus I (HIV), with HIV drugs or laboratory results any time after index date or second diagnosis post index cohort exit is the end of continuous observation","#JnJ, #Indication","Rupa Makadia, Jamie Calusardo","","'OHDSI'","","","4027396, 4117779","","",,,,,,1033,1033 -1034,"[P] All events of Respiratory syncytial virus infection, with 30 days washout",1034,"cohortNameLong : All events of Respiratory syncytial virus infection, with 30 days washout; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : All events of Respiratory syncytial virus infection, with no such events in prior 30 days (washout). Persons exit the cohort at the start date + 30 day.; -hashTag : #JnJ, #Indication; -contributors : Nathan Hall, Rupa Makadia; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377889; -ohdsiForumPost : ; -replaces : ; -","2023-09-20","2023-09-20","rao@ohdsi.org","All events of Respiratory syncytial virus infection, with 30 days washout",,"All events of Respiratory syncytial virus infection, with 30 days washout","Pending","","All events of Respiratory syncytial virus infection, with no such events in prior 30 days (washout). Persons exit the cohort at the start date + 30 day.","#JnJ, #Indication","Nathan Hall, Rupa Makadia","","'OHDSI'","","","377889","","",,,,,,1034,1034 -1035,"[P] New users of Thiazide diuretics",1035,"cohortNameLong : New users of Thiazide diuretics; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Thiazide diuretics; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Thiazide diuretics",,"New users of Thiazide diuretics","Pending peer review","","New users of Thiazide diuretics","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1035,1035 -1036,"[P] New users of Beta blockers",1036,"cohortNameLong : New users of Beta blockers; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Beta blockers; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Beta blockers",,"New users of Beta blockers","Pending peer review","","New users of Beta blockers","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1036,1036 -1037,"[P] New users of SGLT2 inhibitor",1037,"cohortNameLong : New users of SGLT2 inhibitor; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of SGLT2 inhibitor; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of SGLT2 inhibitor",,"New users of SGLT2 inhibitor","Pending peer review","","New users of SGLT2 inhibitor","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1037,1037 -1038,"[P] New users of GLP-1 receptor antagonists",1038,"cohortNameLong : New users of GLP-1 receptor antagonists; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of GLP-1 receptor antagonists; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of GLP-1 receptor antagonists",,"New users of GLP-1 receptor antagonists","Pending peer review","","New users of GLP-1 receptor antagonists","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1038,1038 -1039,"[P] New users of DPP-4 inhibitors",1039,"cohortNameLong : New users of DPP-4 inhibitors; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of DPP-4 inhibitors; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of DPP-4 inhibitors",,"New users of DPP-4 inhibitors","Pending peer review","","New users of DPP-4 inhibitors","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1039,1039 -1040,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors",1040,"cohortNameLong : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors",,"New users of Tumor Necrosis Factor alpha (TNFa) inhibitors","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1040,1040 -1041,"[P] New users of JAK inhibitors",1041,"cohortNameLong : New users of JAK inhibitors; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of JAK inhibitors; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of JAK inhibitors",,"New users of JAK inhibitors","Pending peer review","","New users of JAK inhibitors","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1041,1041 -1042,"[P] New users of IL-23 inhibitors",1042,"cohortNameLong : New users of IL-23 inhibitors; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of IL-23 inhibitors; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-10-03","rao@ohdsi.org","New users of IL-23 inhibitors",,"New users of IL-23 inhibitors","Pending peer review","","New users of IL-23 inhibitors","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1042,1042 -1043,"[P] New users of Fluoroquinolone systemic",1043,"cohortNameLong : New users of Fluoroquinolone systemic; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Fluoroquinolone systemic; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Fluoroquinolone systemic",,"New users of Fluoroquinolone systemic","Pending peer review","","New users of Fluoroquinolone systemic","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1043,1043 -1044,"[P] New users of Cephalosporin systemetic",1044,"cohortNameLong : New users of Cephalosporin systemetic; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Cephalosporin systemetic; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Cephalosporin systemetic",,"New users of Cephalosporin systemetic","Pending peer review","","New users of Cephalosporin systemetic","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1044,1044 -1045,"[P] New users of Trimethoprim systemetic",1045,"cohortNameLong : New users of Trimethoprim systemetic; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Trimethoprim systemetic; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Trimethoprim systemetic",,"New users of Trimethoprim systemetic","Pending peer review","","New users of Trimethoprim systemetic","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1045,1045 -1046,"[P] New users of Thiazide diuretics nested in essential hypertension",1046,"cohortNameLong : New users of Thiazide diuretics nested in essential hypertension; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Thiazide diuretics nested in essential hypertension; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Thiazide diuretics nested in essential hypertension",,"New users of Thiazide diuretics nested in essential hypertension","Pending peer review","","New users of Thiazide diuretics nested in essential hypertension","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1046,1046 -1047,"[P] New users of dihydropyridine calcium channel blockers nested in essential hypertension",1047,"cohortNameLong : New users of dihydropyridine calcium channel blockers nested in essential hypertension; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of dihydropyridine calcium channel blockers nested in essential hypertension; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of dihydropyridine calcium channel blockers nested in essential hypertension",,"New users of dihydropyridine calcium channel blockers nested in essential hypertension","Pending peer review","","New users of dihydropyridine calcium channel blockers nested in essential hypertension","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1047,1047 -1048,"[P] New users of dihydropyridine calcium channel blockers",1048,"cohortNameLong : New users of dihydropyridine calcium channel blockers; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of dihydropyridine calcium channel blockers; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of dihydropyridine calcium channel blockers",,"New users of dihydropyridine calcium channel blockers","Pending peer review","","New users of dihydropyridine calcium channel blockers","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1048,1048 -1049,"[P] New users of Beta blockers nested in essential hypertension",1049,"cohortNameLong : New users of Beta blockers nested in essential hypertension; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Beta blockers nested in essential hypertension; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Beta blockers nested in essential hypertension",,"New users of Beta blockers nested in essential hypertension","Pending peer review","","New users of Beta blockers nested in essential hypertension","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1049,1049 -1050,"[P] New users of Beta blockers nested in Left Heart Failure",1050,"cohortNameLong : New users of Beta blockers nested in Left Heart Failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Beta blockers nested in Left Heart Failure; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Beta blockers nested in Left Heart Failure",,"New users of Beta blockers nested in Left Heart Failure","Pending peer review","","New users of Beta blockers nested in Left Heart Failure","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1050,1050 -1051,"[P] New users of SGLT2 inhibitor nested in Left Heart Failure",1051,"cohortNameLong : New users of SGLT2 inhibitor nested in Left Heart Failure; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of SGLT2 inhibitor nested in Left Heart Failure; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of SGLT2 inhibitor nested in Left Heart Failure",,"New users of SGLT2 inhibitor nested in Left Heart Failure","Pending peer review","","New users of SGLT2 inhibitor nested in Left Heart Failure","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1051,1051 -1052,"[P] New users of Beta blockers nested in Acute Myocardial Infarction",1052,"cohortNameLong : New users of Beta blockers nested in Acute Myocardial Infarction; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Beta blockers nested in Acute Myocardial Infarction; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Beta blockers nested in Acute Myocardial Infarction",,"New users of Beta blockers nested in Acute Myocardial Infarction","Pending peer review","","New users of Beta blockers nested in Acute Myocardial Infarction","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1052,1052 -1053,"[P] New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus",1053,"cohortNameLong : New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus",,"New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus","Pending peer review","","New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1053,1053 -1054,"[P] New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus",1054,"cohortNameLong : New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus",,"New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus","Pending peer review","","New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1054,1054 -1055,"[P] New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus",1055,"cohortNameLong : New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus",,"New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus","Pending peer review","","New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1055,1055 -1056,"[P] New users of GLP-1 receptor antagonists nested in obesity",1056,"cohortNameLong : New users of GLP-1 receptor antagonists nested in obesity; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of GLP-1 receptor antagonists nested in obesity; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of GLP-1 receptor antagonists nested in obesity",,"New users of GLP-1 receptor antagonists nested in obesity","Pending peer review","","New users of GLP-1 receptor antagonists nested in obesity","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1056,1056 -1057,"[P] New users of IL-23 inhibitors nested in Plaque psoriasis",1057,"cohortNameLong : New users of IL-23 inhibitors nested in Plaque psoriasis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of IL-23 inhibitors nested in Plaque psoriasis; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-10-03","rao@ohdsi.org","New users of IL-23 inhibitors nested in Plaque psoriasis",,"New users of IL-23 inhibitors nested in Plaque psoriasis","Pending peer review","","New users of IL-23 inhibitors nested in Plaque psoriasis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1057,1057 -1058,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis",1058,"cohortNameLong : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis",,"New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1058,1058 -1059,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis",1059,"cohortNameLong : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis",,"New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1059,1059 -1060,"[P] New users of Fluoroquinolone systemic nested in Urinary Tract Infection",1060,"cohortNameLong : New users of Fluoroquinolone systemic nested in Urinary Tract Infection; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Fluoroquinolone systemic nested in Urinary Tract Infection; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Fluoroquinolone systemic nested in Urinary Tract Infection",,"New users of Fluoroquinolone systemic nested in Urinary Tract Infection","Pending peer review","","New users of Fluoroquinolone systemic nested in Urinary Tract Infection","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1060,1060 -1061,"[P] New users of Cephalosporin systemetic nested in Urinary Tract Infection",1061,"cohortNameLong : New users of Cephalosporin systemetic nested in Urinary Tract Infection; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Cephalosporin systemetic nested in Urinary Tract Infection; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Cephalosporin systemetic nested in Urinary Tract Infection",,"New users of Cephalosporin systemetic nested in Urinary Tract Infection","Pending peer review","","New users of Cephalosporin systemetic nested in Urinary Tract Infection","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1061,1061 -1062,"[P] New users of Trimethoprim systemetic nested in Urinary Tract Infection",1062,"cohortNameLong : New users of Trimethoprim systemetic nested in Urinary Tract Infection; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Trimethoprim systemetic nested in Urinary Tract Infection; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Trimethoprim systemetic nested in Urinary Tract Infection",,"New users of Trimethoprim systemetic nested in Urinary Tract Infection","Pending peer review","","New users of Trimethoprim systemetic nested in Urinary Tract Infection","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1062,1062 -1063,"[P] New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia",1063,"cohortNameLong : New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia",,"New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia","Pending peer review","","New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1063,1063 -1064,"[P] New users of Cephalosporin systemetic nested in Acute Typical Pneumonia",1064,"cohortNameLong : New users of Cephalosporin systemetic nested in Acute Typical Pneumonia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Cephalosporin systemetic nested in Acute Typical Pneumonia; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Cephalosporin systemetic nested in Acute Typical Pneumonia",,"New users of Cephalosporin systemetic nested in Acute Typical Pneumonia","Pending peer review","","New users of Cephalosporin systemetic nested in Acute Typical Pneumonia","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1064,1064 -1065,"[P] New users of Trimethoprim systemetic nested in Acute Typical Pneumonia",1065,"cohortNameLong : New users of Trimethoprim systemetic nested in Acute Typical Pneumonia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Trimethoprim systemetic nested in Acute Typical Pneumonia; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Trimethoprim systemetic nested in Acute Typical Pneumonia",,"New users of Trimethoprim systemetic nested in Acute Typical Pneumonia","Pending peer review","","New users of Trimethoprim systemetic nested in Acute Typical Pneumonia","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1065,1065 -1066,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis",1066,"cohortNameLong : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis",,"New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1066,1066 -1067,"[P] New users of JAK inhibitors nested in Ulcerative colitis",1067,"cohortNameLong : New users of JAK inhibitors nested in Ulcerative colitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of JAK inhibitors nested in Ulcerative colitis; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of JAK inhibitors nested in Ulcerative colitis",,"New users of JAK inhibitors nested in Ulcerative colitis","Pending peer review","","New users of JAK inhibitors nested in Ulcerative colitis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1067,1067 -1068,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis",1068,"cohortNameLong : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis",,"New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1068,1068 -1069,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease",1069,"cohortNameLong : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease",,"New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1069,1069 -1070,"[P] New users of JAK inhibitors nested in Rheumatoid arthritis",1070,"cohortNameLong : New users of JAK inhibitors nested in Rheumatoid arthritis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : New users of JAK inhibitors nested in Rheumatoid arthritis; -hashTag : #HowOften, #Target, #Study, #Symposium; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-09-21","rao@ohdsi.org","New users of JAK inhibitors nested in Rheumatoid arthritis",,"New users of JAK inhibitors nested in Rheumatoid arthritis","Pending peer review","","New users of JAK inhibitors nested in Rheumatoid arthritis","#HowOften, #Target, #Study, #Symposium","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1070,1070 -1071,"[P] persons at risk at start of year 2012-2022 with 365d prior observation",1071,"cohortNameLong : persons at risk at start of year 2012-2022 with 365d prior observation; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : persons at risk at start of year 2012-2022 with 365d prior observation; -hashTag : #Target, #Study, #Symposium, #baseCohort; -contributors : 'Patrick Ryan'; -contributorOrcIds : ; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-21","2023-10-02","rao@ohdsi.org","persons at risk at start of year 2012-2022 with 365d prior observation",,"persons at risk at start of year 2012-2022 with 365d prior observation","Pending peer review","","persons at risk at start of year 2012-2022 with 365d prior observation","#Target, #Study, #Symposium, #baseCohort","'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1071,1071 -1072,"[P] CMV Anterior Uveitis",1072,"cohortNameLong : Cytomegalovirus CMV Anterior Uveitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Inclusion: Evidence of anterior uveitis (a. anterior chamber cells, b. if anterior vitreous cells are present, anterior chamber inflammation should be present, c. no evidence of retinitis AND (Evidence of cytomegalovirus infection in the eye, a. Positive PCR* for cytomegalovirus on aqueous specimen). Exclusions: (Positive serology for syphilis using a treponemal test Evidence of sarcoidosis (either bilateral hilar adenopathy on chest imaging or tissue biopsy demonstrating non-caseating granulomata), Aqueous specimen PCR positive for herpes simplex virus or varicella zoster virus); -hashTag : #Opthalmology, #OhdsiWorkGroup; -contributors : 'Edward Lee','Kiana Tavakoli','Rupesh Agrawal','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; -contributorOrcIds : '','0000-0002-9612-5697','','','','','','','',''; -contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore', 'Minneapolis VA Health Care System, University of Minnesota','UC Davis','UCSF','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436100; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-cmv-anterior-uveitis/19764/7; -replaces : ;","2023-09-21","2023-10-18","rao@ohdsi.org","CMV Anterior Uveitis",,"Cytomegalovirus CMV Anterior Uveitis","Pending peer review","",,"#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli','Rupesh Agrawal','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0002-9612-5697','','','','','','','',''","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore', 'Minneapolis VA Health Care System, University of Minnesota','UC Davis','UCSF','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1072,1072 -1073,"[P] Serious Infection, opportunistic infections and other infections of interest event",1073,"cohortNameLong : Serious Infection, opportunistic infections and other infections of interest event; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Incidence of Serious Infection, opportunistic infections and other infections of interest event.; -hashTag : #Infection; -contributors : Joel Swerdel'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 81893; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-serious-infection-opportunistic-infections-and-other-infections-of-interest-event/20048; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","Serious Infection, opportunistic infections and other infections of interest event",,"Serious Infection, opportunistic infections and other infections of interest event","Pending peer review","","Incidence of Serious Infection, opportunistic infections and other infections of interest event.","#Infection","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","81893",,"",,,,,,1073,1073 -1074,"[P] Serious Infection",1074,"cohortNameLong : Serious Infection; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Incidence of Serious Infection.; -hashTag : #Infection; -contributors : Joel Swerdel'; -contributorOrcIds : 0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 81893; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-serious-infections/20047; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","Serious Infection",,"Serious Infection","Pending peer review","","Incidence of Serious Infection.","#Infection","Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","81893",,"",,,,,,1074,1074 -1075,"[P] FDA AESI Narcolepsy",1075,"cohortNameLong : Narcolepsy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Narcolepsy; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Narcolepsy",,"Narcolepsy","Pending peer review","","Narcolepsy","#AESI, ,#FDA, #Study, #Symposium, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1075,1075 -1076,"[P] FDA AESI Anaphylaxis",1076,"cohortNameLong : Anaphylaxis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Anaphylaxis; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Anaphylaxis",,"Anaphylaxis","Pending peer review","","Anaphylaxis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1076,1076 -1077,"[P] FDA AESI Anaphylaxis v2",1077,"cohortNameLong : Anaphylaxis v2; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Anaphylaxis v2; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-phebruary-day-24-anaphylaxis/16033; -replaces : ; -","2023-09-22","2023-10-09","rao@ohdsi.org","FDA AESI Anaphylaxis v2",,"Anaphylaxis v2","Pending peer review","","Anaphylaxis v2","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1077,1077 -1078,"[P] FDA AESI Bells Palsy",1078,"cohortNameLong : Bells Palsy; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Bells Palsy; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Bells Palsy",,"Bells Palsy","Pending peer review","","Bells Palsy","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1078,1078 -1079,"[P] FDA AESI Encephalomyelitis",1079,"cohortNameLong : Encephalomyelitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Encephalomyelitis; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Encephalomyelitis",,"Encephalomyelitis","Pending peer review","","Encephalomyelitis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1079,1079 -1080,"[P] FDA AESI Guillain Barre Syndrome",1080,"cohortNameLong : Guillain Barre Syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Guillain Barre Syndrome; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Guillain Barre Syndrome",,"Guillain Barre Syndrome","Pending peer review","","Guillain Barre Syndrome","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1080,1080 -1081,"[P] FDA AESI Acute Myocardial Infarction or its complications",1081,"cohortNameLong : Acute Myocardial Infarction including its complications; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Acute Myocardial Infarction; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-25","rao@ohdsi.org","FDA AESI Acute Myocardial Infarction or its complications",,"Acute Myocardial Infarction including its complications","Pending peer review","","Acute Myocardial Infarction","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1081,1081 -1082,"[P] FDA AESI Myocarditis Pericarditis",1082,"cohortNameLong : Myocarditis Pericarditis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Myocarditis Pericarditis; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Myocarditis Pericarditis",,"Myocarditis Pericarditis","Pending peer review","","Myocarditis Pericarditis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1082,1082 -1083,"[P] FDA AESI Immune Thrombocytopenia (ITP)",1083,"cohortNameLong : Immune Thrombocytopenia (ITP); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Immune Thrombocytopenia (ITP); -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Immune Thrombocytopenia (ITP)",,"Immune Thrombocytopenia (ITP)","Pending peer review","","Immune Thrombocytopenia (ITP)","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1083,1083 -1084,"[P] FDA AESI Disseminated Intravascular Coagulation",1084,"cohortNameLong : Disseminated Intravascular Coagulation; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Disseminated Intravascular Coagulation; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Disseminated Intravascular Coagulation",,"Disseminated Intravascular Coagulation","Pending peer review","","Disseminated Intravascular Coagulation","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1084,1084 -1085,"[P] FDA AESI Appendicitis",1085,"cohortNameLong : Appendicitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Appendicitis; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Appendicitis",,"Appendicitis","Pending peer review","","Appendicitis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1085,1085 -1086,"[P] FDA AESI Transverse Myelitis",1086,"cohortNameLong : Transverse Myelitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Transverse Myelitis; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Transverse Myelitis",,"Transverse Myelitis","Pending peer review","","Transverse Myelitis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1086,1086 -1087,"[P] FDA AESI Hemorrhagic Stroke",1087,"cohortNameLong : Hemorrhagic Stroke; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Hemorrhagic Stroke; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Hemorrhagic Stroke",,"Hemorrhagic Stroke","Pending peer review","","Hemorrhagic Stroke","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1087,1087 -1088,"[P] FDA AESI Deep Vein Thrombosis (DVT)",1088,"cohortNameLong : Deep Vein Thrombosis (DVT); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Deep Vein Thrombosis (DVT); -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Deep Vein Thrombosis (DVT)",,"Deep Vein Thrombosis (DVT)","Pending peer review","","Deep Vein Thrombosis (DVT)","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1088,1088 -1089,"[P] FDA AESI Non-hemorrhagic Stroke",1089,"cohortNameLong : Non-hemorrhagic Stroke; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non-hemorrhagic Stroke; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Non-hemorrhagic Stroke",,"Non-hemorrhagic Stroke","Pending peer review","","Non-hemorrhagic Stroke","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1089,1089 -1090,"[P] FDA AESI Pulmonary Embolism",1090,"cohortNameLong : Pulmonary Embolism; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Pulmonary Embolism; -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Pulmonary Embolism",,"Pulmonary Embolism","Pending peer review","","Pulmonary Embolism","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1090,1090 -1091,"[P] FDA AESI Thrombosis with Thrombocytopenia (TWT)",1091,"cohortNameLong : Thrombosis with Thrombocytopenia (TWT); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Thrombosis with Thrombocytopenia (TWT); -hashTag : #AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate; -contributors : 'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'; -contributorOrcIds : '0000-0002-6976-2594', '0000-0002-4949-7236','',''; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/howoften-community-contributions-wanted/19666; -replaces : ; -","2023-09-22","2023-09-22","rao@ohdsi.org","FDA AESI Thrombosis with Thrombocytopenia (TWT)",,"Thrombosis with Thrombocytopenia (TWT)","Pending peer review","","Thrombosis with Thrombocytopenia (TWT)","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate","'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"",,,,,,1091,1091 -1093,"[P] Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib",1093,"cohortNameLong : Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non emergent (No ED visit) AAA repair (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2023-09-25","2024-01-05","rao@ohdsi.org","Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib",,"Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) AAA repair (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1093,1093 -1094,"[P] Lower Extremity Bypass - post op new Afib",1094,"cohortNameLong : Lower Extremity Bypass - post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non emergent (No ED visit) Lower Extremity Bypass (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation.; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2023-09-25","2024-01-05","rao@ohdsi.org","Lower Extremity Bypass - post op new Afib",,"Lower Extremity Bypass - post op new Afib","Pending peer review","","Non emergent (No ED visit) Lower Extremity Bypass (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation.","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1094,1094 -1095,"[P] Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib",1095,"cohortNameLong : Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non emergent (No ED visit) Carotid Endarterctomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2023-09-25","2024-01-05","rao@ohdsi.org","Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib",,"Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Carotid Endarterctomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1095,1095 -1097,"[P] Esophagectomy, adults, inpt stay, no ED, post op new Afib",1097,"cohortNameLong : Esophagectomy, adults, inpt stay, no ED, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non emergent (No ED visit) Esophagectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2023-09-25","2024-01-05","rao@ohdsi.org","Esophagectomy, adults, inpt stay, no ED, post op new Afib",,"Esophagectomy, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Esophagectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1097,1097 -1098,"[P] Pancreatectomy, adults, inpt stay, no ED, post op new Afib",1098,"cohortNameLong : Pancreatectomy, adults, inpt stay, no ED, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non emergent (No ED visit) Pancreatectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2023-09-25","2024-01-05","rao@ohdsi.org","Pancreatectomy, adults, inpt stay, no ED, post op new Afib",,"Pancreatectomy, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Pancreatectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1098,1098 -1099,"[P] Colectomy, adults, inpt stay, no ED, post op new Afib",1099,"cohortNameLong : Colectomy, adults, inpt stay, no ED, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non emergent (No ED visit) Colectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2023-09-25","2024-01-05","rao@ohdsi.org","Colectomy, adults, inpt stay, no ED, post op new Afib",,"Colectomy, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Colectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1099,1099 -1100,"[P] Cystectomy, adults, inpt stay, no ED, post op new Afib",1100,"cohortNameLong : Cystectomy, adults, inpt stay, no ED, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non emergent (No ED visit) Cystectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2023-09-25","2024-01-05","rao@ohdsi.org","Cystectomy, adults, inpt stay, no ED, post op new Afib",,"Cystectomy, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Cystectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1100,1100 -1101,"[P] Nephrectomy, adults, inpt stay, no ED, post op new Afib",1101,"cohortNameLong : Nephrectomy, adults, inpt stay, no ED, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non emergent (No ED visit) Nephrectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2023-09-25","2024-01-05","rao@ohdsi.org","Nephrectomy, adults, inpt stay, no ED, post op new Afib",,"Nephrectomy, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Nephrectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1101,1101 -1102,"[P] Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib",1102,"cohortNameLong : Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non emergent (No ED visit)CABG (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2023-09-25","2024-01-05","rao@ohdsi.org","Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib",,"Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit)CABG (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1102,1102 -1103,"[P] Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib",1103,"cohortNameLong : Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non emergent (No ED visit) Aortic Or Mitral Repair or Replacement (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2023-09-25","2024-01-05","rao@ohdsi.org","Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib",,"Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Non emergent (No ED visit) Aortic Or Mitral Repair or Replacement (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1103,1103 -1104,"[P] RBC Transfusion (adult relevant, no auto 1yr clean window)",1104,"cohortNameLong : RBC Transfusion (adult relevant, no auto 1yr clean window); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : RBC transfusion with no prior transfusion; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-rbc-transfusion-adult-relevant-only-no-auto-transfusion-1yr-clean-window/20061; -replaces : ; -","2023-09-25","2023-09-25","rao@ohdsi.org","RBC Transfusion (adult relevant, no auto 1yr clean window)",,"RBC Transfusion (adult relevant, no auto 1yr clean window)","Pending peer review","","RBC transfusion with no prior transfusion","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1104,1104 -1105,"[P] Clostridium difficile - first episode",1105,"cohortNameLong : Clostridium difficile - first episode; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Clostridium difficile with no history of clostridium difficle; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4307981; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-c-difficile-first-episode-or-positive-test/20062; -replaces : ; -","2023-09-25","2023-10-04","rao@ohdsi.org","Clostridium difficile - first episode",,"Clostridium difficile - first episode","Pending peer review","","Clostridium difficile with no history of clostridium difficle","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","4307981",,"",,,,,,1105,1105 -1106,"[P] Non-Emergent Major Non Cardiac Surgery no prior Opioid",1106,"cohortNameLong : Non-Emergent Major Non Cardiac Surgery no prior Opioid; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Persons having any of major non cardiac surgery; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-09-25","2023-10-05","rao@ohdsi.org","Non-Emergent Major Non Cardiac Surgery no prior Opioid",,"Non-Emergent Major Non Cardiac Surgery no prior Opioid","Pending peer review","","Persons having any of major non cardiac surgery","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","","","",,,,,,1106,1106 -1150,"Emergency room only or Emergency room and inpatient visits (0Pe, 0Era)",1150,"cohortNameLong : Emergency room visits (0Pe, 0Era); -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.4.0; -logicDescription : All events of Emergency Room visits or Emergency room or inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process; -hashTag : #standard, #Visits; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-10-04","2023-10-04","rao@ohdsi.org","Emergency room only or Emergency room and inpatient visits (0Pe, 0Era)",,"Emergency room visits (0Pe, 0Era)","Accepted","3.4.0","All events of Emergency Room visits or Emergency room or inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,1150,1150 -1151,"[P] Autism",1151,"cohortNameLong : Autism; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #autism; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439776; -ohdsiForumPost : ; -replaces : ; -","2023-10-05","2023-10-05","rao@ohdsi.org","Autism",,"Autism","Pending peer review","","","#autism","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439776","","",,,,,,1151,1151 -1152,"[P] Deep Vein Thrombosis DVT 10",1152,"cohortNameLong : Deep Vein Thrombosis DVT; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : All events of Deep Vein Thrombosis (DVT), indexed on a condition occurrence of Deep Vein Thrombosis (DVT). Requiring a clean window of 30 days, cohort exit is 1 day after start date.; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4133004; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Deep Vein Thrombosis DVT 10",,"Deep Vein Thrombosis DVT","Prediction","","All events of Deep Vein Thrombosis (DVT), indexed on a condition occurrence of Deep Vein Thrombosis (DVT). Requiring a clean window of 30 days, cohort exit is 1 day after start date.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4133004",,"","Prediction phenotypes",,,,,1152,1152 -1153,"[P] Seizure 10",1153,"cohortNameLong : Seizure; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Seizure record in 42 days continues for 1 day; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 377091; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Seizure 10",,"Seizure","Prediction","","First Seizure record in 42 days continues for 1 day","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","377091",,"","Prediction phenotypes",,,,,1153,1153 -1154,"[P] Heart failure 10",1154,"cohortNameLong : Heart failure; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Heart failure continues until observation end; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 316139; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Heart failure 10",,"Heart failure","Prediction","","First Heart failure continues until observation end","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","316139",,"","Prediction phenotypes",,,,,1154,1154 -1155,"[P] Non-hemorrhagic Stroke 10",1155,"cohortNameLong : Non-hemorrhagic Stroke; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : All events of Ischemic (Non-hemorrhagic) Stroke, indexed on a condition occurrence of Ischemic (Non-hemorrhagic), limited to events with overlapping inpatient visit with no such events in prior 365 days (clean window). Persons exit the cohort at the start date + 1 day.; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 443454; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Non-hemorrhagic Stroke 10",,"Non-hemorrhagic Stroke","Prediction","","All events of Ischemic (Non-hemorrhagic) Stroke, indexed on a condition occurrence of Ischemic (Non-hemorrhagic), limited to events with overlapping inpatient visit with no such events in prior 365 days (clean window). Persons exit the cohort at the start date + 1 day.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","443454",,"","Prediction phenotypes",,,,,1155,1155 -1156,"[P] Hemorrhagic stroke 10",1156,"cohortNameLong : Hemorrhagic stroke; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : All events of Hemorrhagic stroke, indexed on a condition occurrence of Hemorrhagic stroke, limited to events with overlapping inpatient visit with no such events in prior 365 days (clean window). Persons exit the cohort at the start date + 1 day.; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 439847; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Hemorrhagic stroke 10",,"Hemorrhagic stroke","Prediction","","All events of Hemorrhagic stroke, indexed on a condition occurrence of Hemorrhagic stroke, limited to events with overlapping inpatient visit with no such events in prior 365 days (clean window). Persons exit the cohort at the start date + 1 day.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","439847",,"","Prediction phenotypes",,,,,1156,1156 -1157,"[P] peripheral vascular disease 10",1157,"cohortNameLong : peripheral vascular disease; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First peripheral vascular disease continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 321052; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","peripheral vascular disease 10",,"peripheral vascular disease","Prediction","","First peripheral vascular disease continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","321052",,"","Prediction phenotypes",,,,,1157,1157 -1158,"[P] Aspirin 10",1158,"cohortNameLong : Aspirin; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : aspirin exposures w 0d prior obsv 30d gap; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1112807; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Aspirin 10",,"Aspirin","Prediction","","aspirin exposures w 0d prior obsv 30d gap","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1112807",,"","Prediction phenotypes",,,,,1158,1158 -1159,"[P] Angina 10",1159,"cohortNameLong : Angina; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Angina in 30 days continues for 1 days; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 77670; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Angina 10",,"Angina","Prediction","","First Angina in 30 days continues for 1 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","77670",,"","Prediction phenotypes",,,,,1159,1159 -1160,"[P] Atrial Fibrillation 10",1160,"cohortNameLong : Atrial Fibrillation; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Atrial Fibrillation continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313217; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Atrial Fibrillation 10",,"Atrial Fibrillation","Prediction","","First Atrial Fibrillation continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","313217",,"","Prediction phenotypes",,,,,1160,1160 -1161,"[P] Major depressive disorder with NO occurrence of certain psychiatric disorder 10",1161,"cohortNameLong : Major depressive disorder with NO occurrence of certain psychiatric disorder; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : Earliest occurrence of major depressive disorder indexed on diagnosis date; requiring no occurrence anytime prior including day 0 of Bipolar disorder, Schizoaffective, Schizophrenia not including paraphrenia, Dementia or Psychotic disorder; cohort exit is the end of continuous observation.; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 440383; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Major depressive disorder with NO occurrence of certain psychiatric disorder 10",,"Major depressive disorder with NO occurrence of certain psychiatric disorder","Prediction","","Earliest occurrence of major depressive disorder indexed on diagnosis date requiring no occurrence anytime prior including day 0 of Bipolar disorder, Schizoaffective, Schizophrenia not including paraphrenia, Dementia or Psychotic disorder cohort exit is the end of continuous observation.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","440383",,"","Prediction phenotypes",,,,,1161,1161 -1162,"[P] Coronary artery disease (CAD) 10",1162,"cohortNameLong : Coronary artery disease (CAD); -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First coronary artery disease (CAD) continues until observation end; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 318443; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Coronary artery disease (CAD) 10",,"Coronary artery disease (CAD)","Prediction","","First coronary artery disease (CAD) continues until observation end","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","318443",,"","Prediction phenotypes",,,,,1162,1162 -1163,"[P] Acute Kidney Injury 10",1163,"cohortNameLong : Acute Kidney Injury; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : All events of Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd,. Applying a washout period of 30 days between observed events excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior ; . patients exit the cohort 7 days post index.; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 197320; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Acute Kidney Injury 10",,"Acute Kidney Injury","Prediction","","All events of Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd,. Applying a washout period of 30 days between observed events excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior . patients exit the cohort 7 days post index.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","197320",,"","Prediction phenotypes",,,,,1163,1163 -1164,"[P] Asthma 10",1164,"cohortNameLong : Asthma; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Asthma continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 317009; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Asthma 10",,"Asthma","Prediction","","First Asthma continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","317009",,"","Prediction phenotypes",,,,,1164,1164 -1165,"[P] Alcoholism 10",1165,"cohortNameLong : Alcoholism; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First record of Alcoholism until observation end; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4218106; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Alcoholism 10",,"Alcoholism","Prediction","","First record of Alcoholism until observation end","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4218106",,"","Prediction phenotypes",,,,,1165,1165 -1166,"[P] Smoking 10",1166,"cohortNameLong : Smoking; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Smoking condition or observtion or procedure record continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4209423; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Smoking 10",,"Smoking","Prediction","","First Smoking condition or observtion or procedure record continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4209423",,"","Prediction phenotypes",,,,,1166,1166 -1167,"[P] sleep apnea 10",1167,"cohortNameLong : sleep apnea; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First sleep apnea record continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 313459; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","sleep apnea 10",,"sleep apnea","Prediction","","First sleep apnea record continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","313459",,"","Prediction phenotypes",,,,,1167,1167 -1168,"[P] skin ulcer 10",1168,"cohortNameLong : skin ulcer; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First skin ulcer record in 365 days continues for 30 days; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4262920; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","skin ulcer 10",,"skin ulcer","Prediction","","First skin ulcer record in 365 days continues for 30 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4262920",,"","Prediction phenotypes",,,,,1168,1168 -1169,"[P] Chronic hepatitis 10",1169,"cohortNameLong : Chronic hepatitis; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Chronic hepatitis continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4212540; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Chronic hepatitis 10",,"Chronic hepatitis","Prediction","","First Chronic hepatitis continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4212540",,"","Prediction phenotypes",,,,,1169,1169 -1170,"[P] hyperlipidemia 10",1170,"cohortNameLong : hyperlipidemia; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First hyperlipidemia continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432867; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","hyperlipidemia 10",,"hyperlipidemia","Prediction","","First hyperlipidemia continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","432867",,"","Prediction phenotypes",,,,,1170,1170 -1171,"[P] hypothyroidism 10",1171,"cohortNameLong : hypothyroidism; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First hypothyroidism continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 140673; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","hypothyroidism 10",,"hypothyroidism","Prediction","","First hypothyroidism continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","140673",,"","Prediction phenotypes",,,,,1171,1171 -1172,"[P] Heart valve disorder 10",1172,"cohortNameLong : Heart valve disorder; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Heart valve disorder continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4281749; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Heart valve disorder 10",,"Heart valve disorder","Prediction","","First Heart valve disorder continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4281749",,"","Prediction phenotypes",,,,,1172,1172 -1173,"[P] Low back pain 10",1173,"cohortNameLong : Low back pain; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Low back pain continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 194133; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Low back pain 10",,"Low back pain","Prediction","","First Low back pain continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","194133",,"","Prediction phenotypes",,,,,1173,1173 -1174,"[P] neuropathy 10",1174,"cohortNameLong : neuropathy; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First neuropathy continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4301699; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","neuropathy 10",,"neuropathy","Prediction","","First neuropathy continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4301699",,"","Prediction phenotypes",,,,,1174,1174 -1175,"[P] Psychotic disorder 10",1175,"cohortNameLong : Psychotic disorder; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Psychotic disorder continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436073; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Psychotic disorder 10",,"Psychotic disorder","Prediction","","First Psychotic disorder continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","436073",,"","Prediction phenotypes",,,,,1175,1175 -1176,"[P] Sepsis 10",1176,"cohortNameLong : Sepsis; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Sepsis record in 180 days continues for 7 days; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 132797; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Sepsis 10",,"Sepsis","Prediction","","First Sepsis record in 180 days continues for 7 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","132797",,"","Prediction phenotypes",,,,,1176,1176 -1177,"[P] Acute Respiratory failure 10",1177,"cohortNameLong : Acute Respiratory failure; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Acute Respiratory failure record in 365 days continues for 14 days; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 319049; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Acute Respiratory failure 10",,"Acute Respiratory failure","Prediction","","First Acute Respiratory failure record in 365 days continues for 14 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","319049",,"","Prediction phenotypes",,,,,1177,1177 -1178,"[P] Gastroesophageal reflux disease 10",1178,"cohortNameLong : Gastroesophageal reflux disease; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Gastroesophageal reflux disease continues until observation end; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 318800; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Gastroesophageal reflux disease 10",,"Gastroesophageal reflux disease","Prediction","","First Gastroesophageal reflux disease continues until observation end","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","318800",,"","Prediction phenotypes",,,,,1178,1178 -1179,"[P] obesity 10",1179,"cohortNameLong : obesity; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First obesity measurement or condition or observation continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433736; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","obesity 10",,"obesity","Prediction","","First obesity measurement or condition or observation continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","433736",,"","Prediction phenotypes",,,,,1179,1179 -1180,"[P] Inflammatory Bowel Disease 10",1180,"cohortNameLong : Inflammatory Bowel Disease; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Inflammatory Bowel Disease continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201606; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Inflammatory Bowel Disease 10",,"Inflammatory Bowel Disease","Prediction","","First Inflammatory Bowel Disease continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","201606",,"","Prediction phenotypes",,,,,1180,1180 -1181,"[P] STEROIDS 10",1181,"cohortNameLong : STEROIDS; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : STEROIDS record with 60 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1551099; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","STEROIDS 10",,"STEROIDS","Prediction","","STEROIDS record with 60 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1551099",,"","Prediction phenotypes",,,,,1181,1181 -1182,"[P] Opioids 10",1182,"cohortNameLong : Opioids; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : Opioids with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1174888; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Opioids 10",,"Opioids","Prediction","","Opioids with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1174888",,"","Prediction phenotypes",,,,,1182,1182 -1183,"[P] ANTIEPILEPTICS 10",1183,"cohortNameLong : ANTIEPILEPTICS; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : ANTIEPILEPTICS exposure with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 797399; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","ANTIEPILEPTICS 10",,"ANTIEPILEPTICS","Prediction","","ANTIEPILEPTICS exposure with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","797399",,"","Prediction phenotypes",,,,,1183,1183 -1184,"[P] Osteoarthritis 10",1184,"cohortNameLong : Osteoarthritis; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Osteoarthritis continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 80180; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Osteoarthritis 10",,"Osteoarthritis","Prediction","","First Osteoarthritis continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","80180",,"","Prediction phenotypes",,,,,1184,1184 -1185,"[P] Osteoporosis 10",1185,"cohortNameLong : Osteoporosis; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Osteoporosis continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 80502; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Osteoporosis 10",,"Osteoporosis","Prediction","","First Osteoporosis continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","80502",,"","Prediction phenotypes",,,,,1185,1185 -1186,"[P] Urinary tract infectious 10",1186,"cohortNameLong : Urinary tract infectious; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Urinary tract infectious record in 30 days continues for 1 day; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 81902; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Urinary tract infectious 10",,"Urinary tract infectious","Prediction","","First Urinary tract infectious record in 30 days continues for 1 day","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","81902",,"","Prediction phenotypes",,,,,1186,1186 -1187,"[P] acetaminophen exposure 10",1187,"cohortNameLong : acetaminophen exposure; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : acetaminophen exposure with 30 day persistence window; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1125315; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","acetaminophen exposure 10",,"acetaminophen exposure","Prediction","","acetaminophen exposure with 30 day persistence window","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1125315",,"","Prediction phenotypes",,,,,1187,1187 -1188,"[P] Anemia 10",1188,"cohortNameLong : Anemia; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : Anemia record or measurement continues for 21 days unless normal measurement; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4144746; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Anemia 10",,"Anemia","Prediction","","Anemia record or measurement continues for 21 days unless normal measurement","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4144746",,"","Prediction phenotypes",,,,,1188,1188 -1189,"[P] Anxiety 10",1189,"cohortNameLong : Anxiety; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Anxiety continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 441542; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Anxiety 10",,"Anxiety","Prediction","","First Anxiety continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","441542",,"","Prediction phenotypes",,,,,1189,1189 -1190,"[P] HORMONAL CONTRACEPTIVES 10",1190,"cohortNameLong : HORMONAL CONTRACEPTIVES; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : HORMONAL CONTRACEPTIVES with 30 day persistence window; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 21602473; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","HORMONAL CONTRACEPTIVES 10",,"HORMONAL CONTRACEPTIVES","Prediction","","HORMONAL CONTRACEPTIVES with 30 day persistence window","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","21602473",,"","Prediction phenotypes",,,,,1190,1190 -1191,"[P] Chronic kidney disease or end stage renal disease 10",1191,"cohortNameLong : Chronic kidney disease or end stage renal disease; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First chronic kidney disease or end stage renal disease continues until observation end; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 46271022; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Chronic kidney disease or end stage renal disease 10",,"Chronic kidney disease or end stage renal disease","Prediction","","First chronic kidney disease or end stage renal disease continues until observation end","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","46271022",,"","Prediction phenotypes",,,,,1191,1191 -1192,"[P] Chronic obstructive pulmonary disease (COPD) 10",1192,"cohortNameLong : Chronic obstructive pulmonary disease (COPD); -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First chronic obstructive pulmonary disease (COPD) continues until observation end; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 255573; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Chronic obstructive pulmonary disease (COPD) 10",,"Chronic obstructive pulmonary disease (COPD)","Prediction","","First chronic obstructive pulmonary disease (COPD) continues until observation end","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","255573",,"","Prediction phenotypes",,,,,1192,1192 -1193,"[P] Type 1 diabetes and no prior specific nonT1DM diabetes 10",1193,"cohortNameLong : Type 1 diabetes and no prior specific nonT1DM diabetes; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : Earliest Type 1 diabetes with no prior type 2 or secondary diabetes continues until end of observation.; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201254; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Type 1 diabetes and no prior specific nonT1DM diabetes 10",,"Type 1 diabetes and no prior specific nonT1DM diabetes","Prediction","","Earliest Type 1 diabetes with no prior type 2 or secondary diabetes continues until end of observation.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","201254",,"","Prediction phenotypes",,,,,1193,1193 -1194,"[P] Type 2 Diabetes Mellitus with no type 1 or secondary DM 10",1194,"cohortNameLong : Type 2 Diabetes Mellitus with no type 1 or secondary DM; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : Earliest Type 2 diabetes with no prior type 1 or secondary diabetes continues until end of observation.; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 201820; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Type 2 Diabetes Mellitus with no type 1 or secondary DM 10",,"Type 2 Diabetes Mellitus with no type 1 or secondary DM","Prediction","","Earliest Type 2 diabetes with no prior type 1 or secondary diabetes continues until end of observation.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","201820",,"","Prediction phenotypes",,,,,1194,1194 -1195,"[P] Dyspnea 10",1195,"cohortNameLong : Dyspnea; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : All events of Dyspnea with no Dyspnea in prior 30 days; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 312437; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Dyspnea 10",,"Dyspnea","Prediction","","All events of Dyspnea with no Dyspnea in prior 30 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","312437",,"","Prediction phenotypes",,,,,1195,1195 -1196,"[P] Edema 10",1196,"cohortNameLong : Edema; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : All events of Edema with no Edemain prior 30 days and cohort ends 3 days after index.; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 433595; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Edema 10",,"Edema","Prediction","","All events of Edema with no Edemain prior 30 days and cohort ends 3 days after index.","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","433595",,"","Prediction phenotypes",,,,,1196,1196 -1197,"[P] Acute gastrointestinal bleeding 10",1197,"cohortNameLong : Acute gastrointestinal bleeding; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First gastrointestinal bleed in 45 days continues for 7 days; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 192671; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Acute gastrointestinal bleeding 10",,"Acute gastrointestinal bleeding","Prediction","","First gastrointestinal bleed in 45 days continues for 7 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","192671",,"","Prediction phenotypes",,,,,1197,1197 -1198,"[P] Hypertension 10",1198,"cohortNameLong : Hypertension; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Hypertension continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 316866; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Hypertension 10",,"Hypertension","Prediction","","First Hypertension continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","316866",,"","Prediction phenotypes",,,,,1198,1198 -1199,"[P] Pneumonia 10",1199,"cohortNameLong : Pneumonia; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Pneumonia record in 180 days continues until for 30 days; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 255848; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Pneumonia 10",,"Pneumonia","Prediction","","First Pneumonia record in 180 days continues until for 30 days","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","255848",,"","Prediction phenotypes",,,,,1199,1199 -1200,"[P] Rheumatoid Arthritis 10",1200,"cohortNameLong : Rheumatoid Arthritis; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First Rheumatoid Arthritis record continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 80809; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Rheumatoid Arthritis 10",,"Rheumatoid Arthritis","Prediction","","First Rheumatoid Arthritis record continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","80809",,"","Prediction phenotypes",,,,,1200,1200 -1201,"[P] Antibiotics Aminoglycosides 10",1201,"cohortNameLong : Antibiotics Aminoglycosides; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Aminoglycosides with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 915981; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Aminoglycosides 10",,"Antibiotics Aminoglycosides","Prediction","","any Antibiotics Aminoglycosides with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","915981",,"","Prediction phenotypes",,,,,1201,1201 -1202,"[P] Antibiotics Carbapenems 10",1202,"cohortNameLong : Antibiotics Carbapenems; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Carbapenems with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1709170; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Carbapenems 10",,"Antibiotics Carbapenems","Prediction","","any Antibiotics Carbapenems with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1709170",,"","Prediction phenotypes",,,,,1202,1202 -1203,"[P] Antibiotics Cephalosporins 10",1203,"cohortNameLong : Antibiotics Cephalosporins; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Cephalosporins with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1786621; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Cephalosporins 10",,"Antibiotics Cephalosporins","Prediction","","any Antibiotics Cephalosporins with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1786621",,"","Prediction phenotypes",,,,,1203,1203 -1204,"[P] Antibiotics Fluoroquinolones 10",1204,"cohortNameLong : Antibiotics Fluoroquinolones; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Fluoroquinolones with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1797513; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Fluoroquinolones 10",,"Antibiotics Fluoroquinolones","Prediction","","any Antibiotics Fluoroquinolones with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1797513",,"","Prediction phenotypes",,,,,1204,1204 -1205,"[P] Antibiotics Glycopeptides and lipoglycopeptides 10",1205,"cohortNameLong : Antibiotics Glycopeptides and lipoglycopeptides; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Glycopeptides and lipoglycopeptides with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1707687; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Glycopeptides and lipoglycopeptides 10",,"Antibiotics Glycopeptides and lipoglycopeptides","Prediction","","any Antibiotics Glycopeptides and lipoglycopeptides with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1707687",,"","Prediction phenotypes",,,,,1205,1205 -1206,"[P] Antibiotics Macrolides 10",1206,"cohortNameLong : Antibiotics Macrolides; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Macrolides with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1734104; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Macrolides 10",,"Antibiotics Macrolides","Prediction","","any Antibiotics Macrolides with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1734104",,"","Prediction phenotypes",,,,,1206,1206 -1207,"[P] Antibiotics Monobactams 10",1207,"cohortNameLong : Antibiotics Monobactams; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Monobactams with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1715117; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Monobactams 10",,"Antibiotics Monobactams","Prediction","","any Antibiotics Monobactams with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1715117",,"","Prediction phenotypes",,,,,1207,1207 -1208,"[P] Antibiotics Oxazolidinones 10",1208,"cohortNameLong : Antibiotics Oxazolidinones; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Oxazolidinones with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1736887; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Oxazolidinones 10",,"Antibiotics Oxazolidinones","Prediction","","any Antibiotics Oxazolidinones with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1736887",,"","Prediction phenotypes",,,,,1208,1208 -1209,"[P] Antibiotics Penicillins 10",1209,"cohortNameLong : Antibiotics Penicillins; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Penicillins with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1713332; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Penicillins 10",,"Antibiotics Penicillins","Prediction","","any Antibiotics Penicillins with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1713332",,"","Prediction phenotypes",,,,,1209,1209 -1210,"[P] Antibiotics Polypeptides 10",1210,"cohortNameLong : Antibiotics Polypeptides; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Polypeptides with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 948582; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Polypeptides 10",,"Antibiotics Polypeptides","Prediction","","any Antibiotics Polypeptides with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","948582",,"","Prediction phenotypes",,,,,1210,1210 -1211,"[P] Antibiotics Rifamycins 10",1211,"cohortNameLong : Antibiotics Rifamycins; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Rifamycins with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1735947; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Rifamycins 10",,"Antibiotics Rifamycins","Prediction","","any Antibiotics Rifamycins with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1735947",,"","Prediction phenotypes",,,,,1211,1211 -1212,"[P] Antibiotics Sulfonamides 10",1212,"cohortNameLong : Antibiotics Sulfonamides; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Sulfonamides with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1836430; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Sulfonamides 10",,"Antibiotics Sulfonamides","Prediction","","any Antibiotics Sulfonamides with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1836430",,"","Prediction phenotypes",,,,,1212,1212 -1213,"[P] Antibiotics Streptogramins 10",1213,"cohortNameLong : Antibiotics Streptogramins; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Streptogramins with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1789517; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Streptogramins 10",,"Antibiotics Streptogramins","Prediction","","any Antibiotics Streptogramins with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1789517",,"","Prediction phenotypes",,,,,1213,1213 -1214,"[P] Antibiotics Tetracyclines 10",1214,"cohortNameLong : Antibiotics Tetracyclines; -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : any Antibiotics Tetracyclines with 30 day persistence; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 1738521; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Antibiotics Tetracyclines 10",,"Antibiotics Tetracyclines","Prediction","","any Antibiotics Tetracyclines with 30 day persistence","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1738521",,"","Prediction phenotypes",,,,,1214,1214 -1215,"[P] Any cancer (excl. prostate cancer and benign cancer) 10",1215,"cohortNameLong : Any cancer (excl. prostate cancer and benign cancer); -librarian : rao@ohdsi.org; -status : Prediction; -addedVersion : ; -logicDescription : First cancer (excluding prostate and benign) continues until end of observation; -hashTag : #Prediction;; -contributors : 'Jenna Reps';; -contributorOrcIds : '0000-0002-2970-0778';; -contributorOrganizations : 'Johnson and Johnson', 'OHDSI';; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 438112; -ohdsiForumPost : https://forums.ohdsi.org/t/prediction-cohort-contribution-to-the-ohdsi-phenotype-library/19768; -replaces : ; -notes : Prediction phenotypes; -","2023-10-09","2023-10-09","rao@ohdsi.org","Any cancer (excl. prostate cancer and benign cancer) 10",,"Any cancer (excl. prostate cancer and benign cancer)","Prediction","","First cancer (excluding prostate and benign) continues until end of observation","#Prediction","'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","438112",,"","Prediction phenotypes",,,,,1215,1215 -1217,"[P] Platinum based chemotherapy regimens",1217,"cohortNameLong : Platinum based chemotherapy regimens; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Events of platinum based chemotherapy with 60 days of surveillance because most cycles of every 4 weeks; -hashTag : ; -contributors : 'Gowtham A. Rao'; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-10-09","2023-11-30","rao@ohdsi.org","Platinum based chemotherapy regimens",,"Platinum based chemotherapy regimens","Pending peer review","","Events of platinum based chemotherapy with 60 days of surveillance because most cycles of every 4 weeks","","'Gowtham A. Rao'","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,1217,1217 -1219,"[P] Hyperlipidemia",1219,"cohortNameLong : Hyperlipidemia; -librarian : ryan@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest event of hyperlipidemia; -hashTag : ; -contributors : Patrick Ryan; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 432867; -ohdsiForumPost : ; -replaces : ;","2023-10-16","2023-11-29","ryan@ohdsi.org","Hyperlipidemia",,"Hyperlipidemia","Pending peer review","","Earliest event of hyperlipidemia","","Patrick Ryan","","'OHDSI'","","","432867","","",,,,,,1219,1219 -1220,"[P] Hypoparathyroidism",1220,"cohortNameLong : Hypoparathyroidism; -librarian : ryan@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest event of hypoparathyroidism; -hashTag : ; -contributors : Patrick Ryan; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 140362; -ohdsiForumPost : ; -replaces : ;","2023-10-16","2023-10-16","ryan@ohdsi.org","Hypoparathyroidism",,"Hypoparathyroidism","Pending peer review","","Earliest event of hypoparathyroidism","","Patrick Ryan","","'OHDSI'","","","140362","","",,,,,,1220,1220 -1221,"[P] Osteoporosis",1221,"cohortNameLong : Osteoporosis; -librarian : ryan@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest event of Osteoporosis; -hashTag : ; -contributors : Patrick Ryan; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 80502; -ohdsiForumPost : ; -replaces : ;","2023-10-16","2023-10-16","ryan@ohdsi.org","Osteoporosis",,"Osteoporosis","Pending peer review","","Earliest event of Osteoporosis","","Patrick Ryan","","'OHDSI'","","","80502","","",,,,,,1221,1221 -1222,"[P] Viral hepatitis type A",1222,"cohortNameLong : Viral Hepatitis A; -librarian : ryan@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest event of Viral Hepatitis A; -hashTag : ; -contributors : Patrick Ryan; -contributorOrcIds : ; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4223947; -ohdsiForumPost : ; -replaces : ;","2023-10-16","2023-10-16","ryan@ohdsi.org","Viral hepatitis type A",,"Viral Hepatitis A","Pending peer review","","Earliest event of Viral Hepatitis A","","Patrick Ryan","","'OHDSI'","","","4223947","","",,,,,,1222,1222 -1223,"[P] Birdshot chorioretinitis",1223,"cohortNameLong : Birdshot chorioretinitis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Opthalmology, #OhdsiWorkGroup; -contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; -contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; -contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436100; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-birdshot-chorioretinitis/20242; -replaces : ;","2023-10-17","2023-10-17","rao@ohdsi.org","Birdshot chorioretinitis",,"Birdshot chorioretinitis","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1223,1223 -1224,"[P] CMV Anterior Uveitis (sensitivity analysis)",1224,"cohortNameLong : CMV Anterior Uveitis sensitivite; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Opthalmology, #OhdsiWorkGroup; -contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; -contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; -contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436100; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-cmv-anterior-uveitis/19764; - -replaces : ;","2023-10-18","2023-10-19","rao@ohdsi.org","CMV Anterior Uveitis (sensitivity analysis)",,"CMV Anterior Uveitis sensitivite","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1224,1224 -1225,"[P] VZV Anterior Uveitis (SUN)",1225,"cohortNameLong : VZV Anterior Uveitis (SUN); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Opthalmology, #OhdsiWorkGroup; -contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; -contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; -contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436100; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-vzv-anterior-uveitis/20219; -replaces : ;","2023-10-19","2023-10-19","rao@ohdsi.org","VZV Anterior Uveitis (SUN)",,"VZV Anterior Uveitis (SUN)","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1225,1225 -1226,"[P] VZV Anterior Uveitis (SUN) sensitive",1226,"cohortNameLong : VZV Anterior Uveitis (SUN) sensitive; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Opthalmology, #OhdsiWorkGroup; -contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; -contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; -contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436100; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-vzv-anterior-uveitis/20219; -replaces : ;","2023-10-19","2023-10-19","rao@ohdsi.org","VZV Anterior Uveitis (SUN) sensitive",,"VZV Anterior Uveitis (SUN) sensitive","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1226,1226 -1227,"[P] HSV Anterior Uveitis (SUN)",1227,"cohortNameLong : HSV Anterior Uveitis (SUN); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Opthalmology, #OhdsiWorkGroup; -contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; -contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; -contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436100; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-hsv-anterior-uveitis/20220; -replaces : ;","2023-10-19","2023-10-19","rao@ohdsi.org","HSV Anterior Uveitis (SUN)",,"HSV Anterior Uveitis (SUN)","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1227,1227 -1228,"[P] HSV Anterior Uveitis (SUN) sensitive",1228,"cohortNameLong : HSV Anterior Uveitis (SUN) sensitive; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Opthalmology, #OhdsiWorkGroup; -contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; -contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; -contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436100; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-hsv-anterior-uveitis/20220; -replaces : ;","2023-10-19","2023-10-19","rao@ohdsi.org","HSV Anterior Uveitis (SUN) sensitive",,"HSV Anterior Uveitis (SUN) sensitive","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1228,1228 -1229,"[P] Behcet Uveitis (SUN)",1229,"cohortNameLong : Behcet Uveitis (SUN); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Opthalmology, #OhdsiWorkGroup; -contributors : 'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'; -contributorOrcIds : '','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'; -contributorOrganizations : 'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 436100; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-behcet-uveitis/20174; -replaces : ;","2023-10-19","2023-10-19","rao@ohdsi.org","Behcet Uveitis (SUN)",,"Behcet Uveitis (SUN)","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup","'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"",,,,,,1229,1229 -1231,"[P] Sickle Cell Crisis",1231,"cohortNameLong : Sickle Cell Crisis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Sickle Cell Crisis; -hashTag : #epi1073; -contributors : 'Gowtham a rao'; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 4216915; -ohdsiForumPost : ; -replaces : ; -","2023-10-19","2023-10-19","rao@ohdsi.org","Sickle Cell Crisis",,"Sickle Cell Crisis","Pending peer review","","First occurrence of Sickle Cell Crisis","#epi1073","'Gowtham a rao'","'0000-0002-4949-7236'","'OHDSI'","","","4216915","","",,,,,,1231,1231 -1244,"[P] Non Platinum chemotherapy regimen",1244,"cohortNameLong : Non Platinum chemotherapy regimen; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Events of non platinum based chemotherapy with 60 days of surveillance because most cycles of every 4 weeks; -hashTag : ; -contributors : 'Gowtham A. Rao'; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2023-11-30","2023-11-30","rao@ohdsi.org","Non Platinum chemotherapy regimen",,"Non Platinum chemotherapy regimen","Pending peer review","","Events of non platinum based chemotherapy with 60 days of surveillance because most cycles of every 4 weeks","","'Gowtham A. Rao'","'0000-0002-4949-7236'","'OHDSI'","","","","","",,,,,,1244,1244 -1261,"[P] Acute Typical Pneumonia",1261,"cohortNameLong : Acute Typical Pneumonia; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Acute Typical Pneumonia; -hashTag : #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 255848, 4318404; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Acute Typical Pneumonia",,"Acute Typical Pneumonia","Pending peer review","","Acute Typical Pneumonia","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255848, 4318404","","",,,,,,1261,1261 -1262,"[P] Asthma or Chronic obstructive pulmonary disease (COPD)",1262,"cohortNameLong : Asthma or Chronic obstructive pulmonary disease (COPD); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Asthma or Chronic obstructive pulmonary disease (COPD); -hashTag : #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 255573, 317009; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Asthma or Chronic obstructive pulmonary disease (COPD)",,"Asthma or Chronic obstructive pulmonary disease (COPD)","Pending peer review","","Asthma or Chronic obstructive pulmonary disease (COPD)","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255573, 317009","","",,,,,,1262,1262 -1263,"[P] Chronic obstructive pulmonary disease (COPD) without asthma",1263,"cohortNameLong : Chronic obstructive pulmonary disease (COPD) without asthma; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Chronic obstructive pulmonary disease (COPD) without asthma; -hashTag : #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 255573; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Chronic obstructive pulmonary disease (COPD) without asthma",,"Chronic obstructive pulmonary disease (COPD) without asthma","Pending peer review","","Chronic obstructive pulmonary disease (COPD) without asthma","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255573","","",,,,,,1263,1263 -1264,"[P] Pneumonitis and lung infections",1264,"cohortNameLong : Pneumonitis and lung infections; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Pneumonitis and lung infections; -hashTag : #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 253506, 255848; -ohdsiForumPost : https://forums.ohdsi.org/t/17895; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Pneumonitis and lung infections",,"Pneumonitis and lung infections","Pending peer review","","Pneumonitis and lung infections","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","253506, 255848",,"",,,,,,1264,1264 -1265,"[P] Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3)",1265,"cohortNameLong : Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3); -hashTag : ; -contributors : 'Joel N. Swerdel'; -contributorOrcIds : '0000-0001-9491-2737'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 4322024; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3)",,"Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3)","Pending peer review","","Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3)","","'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","0","4322024","","",,,,,,1265,1265 -1266,"[P] Non-small cell lung cancer (NSCLC) for first time using ICD0",1266,"cohortNameLong : Non-small cell lung cancer (NSCLC); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non-small cell lung cancer (NSCLC) for first time using ICD0; -hashTag : ; -contributors : 'Asieh Golozar', 'Vlad Korsik'; -contributorOrcIds : '0000-0002-4243-155X'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Non-small cell lung cancer (NSCLC) for first time using ICD0",,"Non-small cell lung cancer (NSCLC)","Pending peer review","","Non-small cell lung cancer (NSCLC) for first time using ICD0","","'Asieh Golozar', 'Vlad Korsik'","'0000-0002-4243-155X'","","","0","439676, 37311061","","",,,,,,1266,1266 -1267,"[P] Lung cancer using ICD0",1267,"cohortNameLong : Lung cancer; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Lung cancer using ICD0; -hashTag : ; -contributors : 'Asieh Golozar'; -contributorOrcIds : '0000-0002-4243-155X'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 439676, 37311061; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Lung cancer using ICD0",,"Lung cancer","Pending peer review","","Lung cancer using ICD0","","'Asieh Golozar'","'0000-0002-4243-155X'","","","0","439676, 37311061","","",,,,,,1267,1267 -1268,"[P] Lung Resection, adults, inpt stay, no ED, post op new Afib",1268,"cohortNameLong : Lung Resection, adults, inpt stay, no ED, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Lung Resection - post op new Afib (any); -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : ; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Resection, adults, inpt stay, no ED, post op new Afib",,"Lung Resection, adults, inpt stay, no ED, post op new Afib","Pending peer review","","Lung Resection - post op new Afib (any)","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","0","","","",,,,,,1268,1268 -1269,"[P] Pulmonary fibrosis",1269,"cohortNameLong : Pulmonary fibrosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Pulmonary fibrosis; -hashTag : #Condition, #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 4197819; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Pulmonary fibrosis",,"Pulmonary fibrosis","Pending peer review","","Pulmonary fibrosis","#Condition, #respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4197819","","",,,,,,1269,1269 -1270,"[P] History of Bladder cancer",1270,"cohortNameLong : Bladder cancer including history; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : History of Bladder cancer; -hashTag : ; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 197508; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","History of Bladder cancer",,"Bladder cancer including history","Pending","","History of Bladder cancer","","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","197508","","",,,,,,1270,1270 -1271,"[P] Chronic obstructive pulmonary disease (COPD)",1271,"cohortNameLong : Chronic obstructive pulmonary disease (COPD); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Chronic obstructive pulmonary disease (COPD); -hashTag : #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 255573; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Chronic obstructive pulmonary disease (COPD)",,"Chronic obstructive pulmonary disease (COPD)","Pending peer review","","Chronic obstructive pulmonary disease (COPD)","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255573","","",,,,,,1271,1271 -1272,"[P] Chronic Interstitial lung disease (ILD)",1272,"cohortNameLong : Chronic Interstitial lung disease (ILD) not including Acute Respiratory Distress Syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Chronic Interstitial lung disease (ILD); -hashTag : #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 4119786; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Chronic Interstitial lung disease (ILD)",,"Chronic Interstitial lung disease (ILD) not including Acute Respiratory Distress Syndrome","Pending peer review","","Chronic Interstitial lung disease (ILD)","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4119786","","",,,,,,1272,1272 -1273,"[P] Lung Nodule",1273,"cohortNameLong : Lung Nodule; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Lung Nodule; -hashTag : #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 37206719; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Nodule",,"Lung Nodule","Pending peer review","","Lung Nodule","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719","","",,,,,,1273,1273 -1274,"[P] Lung Nodule - solitary",1274,"cohortNameLong : Lung Nodule - solitary; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Lung Nodule - solitary; -hashTag : #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 37206719,4142875; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Nodule - solitary",,"Lung Nodule - solitary","Pending peer review","","Lung Nodule - solitary","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719,4142875","","",,,,,,1274,1274 -1275,"[P] Lung Nodule - multiple",1275,"cohortNameLong : Lung Nodule - multiple; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Lung Nodule - multiple; -hashTag : #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 37206719,40482871; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Nodule - multiple",,"Lung Nodule - multiple","Pending peer review","","Lung Nodule - multiple","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719,40482871","","",,,,,,1275,1275 -1276,"[P] Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)",1276,"cohortNameLong : Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis); -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis); -hashTag : #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 37206719; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)",,"Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)","Pending peer review","","Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719","","",,,,,,1276,1276 -1277,"[P] Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis)",1277,"cohortNameLong : Lung Lesion that is not acute, necrotic, atlectatic, abscess, fibrosis; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis); -hashTag : #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 4116778,37206719; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis)",,"Lung Lesion that is not acute, necrotic, atlectatic, abscess, fibrosis","Pending peer review","","Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis)","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4116778,37206719","","",,,,,,1277,1277 -1278,"[P] Non Small Cell Lung Cancer (Stage 3)",1278,"cohortNameLong : Stage 3 Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non Small Cell Lung Cancer (Stage 3); -hashTag : #respiratory, #lung; -contributors : 'Dmytro Dymshyts', 'Gowtham A. Rao'; -contributorOrcIds : '','0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 37206719,4311499; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Non Small Cell Lung Cancer (Stage 3)",,"Stage 3 Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC","Pending peer review","","Non Small Cell Lung Cancer (Stage 3)","#respiratory, #lung","'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","",,,,,,1278,1278 -1279,"[P] Non Small Cell Lung Cancer",1279,"cohortNameLong : Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non Small Cell Lung Cancer; -hashTag : #respiratory, #lung; -contributors : 'Dmytro Dymshyts', 'Gowtham A. Rao'; -contributorOrcIds : '','0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 37206719,4311499; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Non Small Cell Lung Cancer",,"Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC","Pending peer review","","Non Small Cell Lung Cancer","#respiratory, #lung","'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","",,,,,,1279,1279 -1280,"[P] Small Cell Lung Cancer",1280,"cohortNameLong : Small Cell Lung Cancer; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Small Cell Lung Cancer; -hashTag : #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 37206719; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Small Cell Lung Cancer",,"Small Cell Lung Cancer","Pending peer review","","Small Cell Lung Cancer","#respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719","","",,,,,,1280,1280 -1281,"[P] Primary Lung Cancer",1281,"cohortNameLong : Primary Lung Cancer, indexed on lung abnormaility; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Primary Lung Cancer; -hashTag : #respiratory, #lung; -contributors : 'Dmytro Dymshyts', 'Gowtham A. Rao'; -contributorOrcIds : '','0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 37206719,4311499; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Primary Lung Cancer",,"Primary Lung Cancer, indexed on lung abnormaility","Pending peer review","","Primary Lung Cancer","#respiratory, #lung","'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","",,,,,,1281,1281 -1282,"[P] Hoarseness",1282,"cohortNameLong : Hoarseness; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Hoarseness; -hashTag : #Symptoms, #respiratory, #lung; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 312437, 4041664; -ohdsiForumPost : https://forums.ohdsi.org/t/17895; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Hoarseness",,"Hoarseness","Pending peer review","","Hoarseness","#Symptoms, #respiratory, #lung","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","312437, 4041664",,"",,,,,,1282,1282 -1283,"[P] Bone Pain",1283,"cohortNameLong : Bone Pain; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Bone Pain; -hashTag : #Symptom; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 4129418; -ohdsiForumPost : https://forums.ohdsi.org/t/17895; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Bone Pain",,"Bone Pain","Pending peer review","","Bone Pain","#Symptom","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4129418",,"",,,,,,1283,1283 -1284,"[P] Weight loss",1284,"cohortNameLong : Weight loss; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Weight loss; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 4177176,435928; -ohdsiForumPost : https://forums.ohdsi.org/t/17895; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Weight loss",,"Weight loss","Pending peer review","","Weight loss","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4177176,435928",,"",,,,,,1284,1284 -1285,"[P] Acute bronchitis",1285,"cohortNameLong : Acute Bronchitis; -librarian : ryan@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Acute bronchitis; -hashTag : #Symptoms; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 256451,260139; -ohdsiForumPost : https://forums.ohdsi.org/t/17895; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Acute bronchitis",,"Acute Bronchitis","Pending peer review","","Acute bronchitis","#Symptoms","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","256451,260139",,"",,,,,,1285,1285 -1286,"[P] Non Small Cell Lung Cancer (Stage 3) without second diagnosis",1286,"cohortNameLong : Stage 3 Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Non Small Cell Lung Cancer (Stage 3) without second diagnosis; -hashTag : #respiratory, #lung; -contributors : 'Dmytro Dymshyts', 'Gowtham A. Rao'; -contributorOrcIds : '','0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : 0; -recommendedReferentConceptIds : 37206719,4311499; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Non Small Cell Lung Cancer (Stage 3) without second diagnosis",,"Stage 3 Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC","Pending peer review","","Non Small Cell Lung Cancer (Stage 3) without second diagnosis","#respiratory, #lung","'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","",,,,,,1286,1286 -1287,"[P] Intestinal obstruction - colorectal specific",1287,"cohortNameLong : Intestinal obstruction - colorectal specific; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest occurence of Intestinal obstruction - colorectal specific; -hashTag : ; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 193518; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Intestinal obstruction - colorectal specific",,"Intestinal obstruction - colorectal specific","Pending peer review","","Earliest occurence of Intestinal obstruction - colorectal specific","","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","193518","","",,,,,,1287,1287 -1288,"[P] Intraabdominal abscess - narrow for colorectal cancer",1288,"cohortNameLong : Intraabdominal abscess - narrow for colorectal cancer; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : Earliest occurence of Intraabdominal abscess - narrow for colorectal cancer; -hashTag : ; -contributors : Andreas Weinberger Rosen; -contributorOrcIds : 0000-0001-9990-8155; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 193518; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Intraabdominal abscess - narrow for colorectal cancer",,"Intraabdominal abscess - narrow for colorectal cancer","Pending peer review","","Earliest occurence of Intraabdominal abscess - narrow for colorectal cancer","","Andreas Weinberger Rosen","0000-0001-9990-8155","","","","193518","","",,,,,,1288,1288 -1289,"[P] Major Non Cardiac Surgery, adults",1289,"cohortNameLong : Major Non Cardiac Surgery, adults; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Major Non Cardiac Surgery, adults",,"Major Non Cardiac Surgery, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1289,1289 -1290,"[P] Abdominal Aortic Aneurysm repair, adults",1290,"cohortNameLong : Abdominal Aortic Aneurysm repair, adults; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Abdominal Aortic Aneurysm repair, adults",,"Abdominal Aortic Aneurysm repair, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1290,1290 -1291,"[P] Lower Extremity Bypass, adults",1291,"cohortNameLong : Lower Extremity Bypass, adults; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Lower Extremity Bypass, adults",,"Lower Extremity Bypass, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1291,1291 -1292,"[P] Carotid Endarterectomy, adults",1292,"cohortNameLong : Carotid Endarterectomy, adults; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Carotid Endarterectomy, adults",,"Carotid Endarterectomy, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1292,1292 -1293,"[P] Lung Resection, adults",1293,"cohortNameLong : Lung Resection, adults; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Resection, adults",,"Lung Resection, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1293,1293 -1294,"[P] Esophagectomy, adults",1294,"cohortNameLong : Esophagectomy, adults; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Esophagectomy, adults",,"Esophagectomy, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1294,1294 -1295,"[P] Pancreatectomy, adults",1295,"cohortNameLong : Pancreatectomy, adults; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Pancreatectomy, adults",,"Pancreatectomy, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1295,1295 -1296,"[P] Colectomy, adults",1296,"cohortNameLong : Colectomy, adults; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Colectomy, adults",,"Colectomy, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1296,1296 -1297,"[P] Cystectomy, adults",1297,"cohortNameLong : Cystectomy, adults; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Cystectomy, adults",,"Cystectomy, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1297,1297 -1298,"[P] Nephrectomy, adults",1298,"cohortNameLong : Nephrectomy, adults; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Nephrectomy, adults",,"Nephrectomy, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1298,1298 -1299,"[P] Coronary Artery Bypass Graft, adults",1299,"cohortNameLong : Coronary Artery Bypass Graft, adults; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Coronary Artery Bypass Graft, adults",,"Coronary Artery Bypass Graft, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1299,1299 -1300,"[P] Cardiac Valve Surgery, adults",1300,"cohortNameLong : Cardiac Valve Surgery, adults; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery; -contributors : Evan Minty', 'Brian Bucher'; -contributorOrcIds : 0000-0003-4631-9992', '0000-0001-8376-9752'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-coronary-artery-bypass-graft-surgery/19955; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Cardiac Valve Surgery, adults",,"Cardiac Valve Surgery, adults","Pending peer review","","","#Surgery","Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"",,,,,,1300,1300 -1301,"[P] Acute Urinary tract infections UTI events",1301,"cohortNameLong : Acute Urinary tract infections UTI; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : all events of acute urinary tract infection; -hashTag : ; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992'; -contributorOrganizations : ; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 81902; -ohdsiForumPost : ; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Acute Urinary tract infections UTI events",,"Acute Urinary tract infections UTI","Pending peer review","","all events of acute urinary tract infection","","Evan Minty","0000-0003-4631-9992'","","","","81902","","",,,,,,1301,1301 -1303,"[P] Acute Heart failure from legend",1303,"cohortNameLong : Acute Heart failure; -librarian : rao@ohdsi.org; -status : Pending; -addedVersion : ; -logicDescription : The first condition record of heart failure, which is followed by at least 1 heart failure condition record in the following year; -hashTag : ; -contributors : 'Evan Minty'; -contributorOrcIds : 0000-0003-4631-9992'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 78232, 80180; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895; -replaces : ; - -notes: modified from 934 to support HowOften study.","2024-01-05","2024-01-05","rao@ohdsi.org","Acute Heart failure from legend",,"Acute Heart failure","Pending","","The first condition record of heart failure, which is followed by at least 1 heart failure condition record in the following year","","'Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","78232, 80180","https//forums.ohdsi.org/t/phenotype-submission-symptoms-and-signs/17895","","modified from 934 to support HowOften study.",,,,,1303,1303 -1304,"[P] Major Non Cardiac Surgery, adults, post op new Afib",1304,"cohortNameLong : Major Non Cardiac Surgery, adults, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Major Non Cardiac Surgery, adults, post op new Afib",,"Major Non Cardiac Surgery, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1304,1304 -1305,"[P] AAA repair, adults, post op new Afib",1305,"cohortNameLong : AAA repair, adults, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","AAA repair, adults, post op new Afib",,"AAA repair, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1305,1305 -1306,"[P] Lower Extremity Bypass, adults, post op new Afib",1306,"cohortNameLong : Lower Extremity Bypass, adults, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Lower Extremity Bypass, adults, post op new Afib",,"Lower Extremity Bypass, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1306,1306 -1307,"[P] Carotid Endarterectomy, adults, post op new Afib",1307,"cohortNameLong : Carotid Endarterectomy, adults, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Carotid Endarterectomy, adults, post op new Afib",,"Carotid Endarterectomy, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1307,1307 -1308,"[P] Lung Resection, adults, post op new Afib",1308,"cohortNameLong : Lung Resection, adults, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Lung Resection, adults, post op new Afib",,"Lung Resection, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1308,1308 -1309,"[P] Esophagectomy, adults, post op new Afib",1309,"cohortNameLong : Esophagectomy, adults, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Esophagectomy, adults, post op new Afib",,"Esophagectomy, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1309,1309 -1310,"[P] Pancreatectomy, adults, post op new Afib",1310,"cohortNameLong : Pancreatectomy, adults, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Pancreatectomy, adults, post op new Afib",,"Pancreatectomy, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1310,1310 -1311,"[P] Colectomy, adults, post op new Afib",1311,"cohortNameLong : Colectomy, adults, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Colectomy, adults, post op new Afib",,"Colectomy, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1311,1311 -1312,"[P] Cystectomy, adults, post op new Afib",1312,"cohortNameLong : Cystectomy, adults, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Cystectomy, adults, post op new Afib",,"Cystectomy, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1312,1312 -1313,"[P] Nephrectomy, adults, post op new Afib",1313,"cohortNameLong : Nephrectomy, adults, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Nephrectomy, adults, post op new Afib",,"Nephrectomy, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1313,1313 -1314,"[P] Coronary Artery Bypass Graft, adults, post op new Afib",1314,"cohortNameLong : Coronary Artery Bypass Graft, adults, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Coronary Artery Bypass Graft, adults, post op new Afib",,"Coronary Artery Bypass Graft, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1314,1314 -1315,"[P] Cardiac Valve Surgery, adults, post op new Afib",1315,"cohortNameLong : Cardiac Valve Surgery, adults, post op new Afib; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : ; -hashTag : #Surgery, #WorkGroup; -contributors : Evan Minty; -contributorOrcIds : 0000-0003-4631-9992; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : ; -ohdsiForumPost : https://forums.ohdsi.org/t/phenotype-submission-post-operative-new-atrial-fibrillation-across-several-target-surgeries/20060; -replaces : ; -","2024-01-05","2024-01-05","rao@ohdsi.org","Cardiac Valve Surgery, adults, post op new Afib",,"Cardiac Valve Surgery, adults, post op new Afib","Pending peer review","","","#Surgery, #WorkGroup","Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"",,,,,,1315,1315 -1316,"Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)",1316,"cohortNameLong : Neutropenia or unspecified leukopenia; -librarian : rao@ohdsi.org; -status : Accepted; -addedVersion : 3.11.0; -logicDescription : All events of neutropenia indexed on diagnosis or lab results, with no congenital or genetic neutropenia all days pre to 7 days post index. Also excluded, events with normal neutrophil count or a diagnosis of Neutrophilia on index. patients exit 21 days post end date or with the occurrence of a normal neutrophil count. Reoccurring events for the same patients will be combined into event eras if they are within 365 days of each other.; -hashTag : #PhenotypePhebruary, #2023, #Neutropenia, #DME; -contributors : Gowtham A. Rao; -contributorOrcIds : '0000-0002-4949-7236'; -contributorOrganizations : 'OHDSI'; -peerReviewers : Anna Ostropolets; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 435224; -ohdsiForumPost : https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409; -replaces : 213; -","2024-09-06","2024-09-06","rao@ohdsi.org","Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)",,"Neutropenia or unspecified leukopenia","Accepted","3.11.0","All events of neutropenia indexed on diagnosis or lab results, with no congenital or genetic neutropenia all days pre to 7 days post index. Also excluded, events with normal neutrophil count or a diagnosis of Neutrophilia on index. patients exit 21 days post end date or with the occurrence of a normal neutrophil count. Reoccurring events for the same patients will be combined into event eras if they are within 365 days of each other.","#PhenotypePhebruary, #2023, #Neutropenia, #DME","Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Anna Ostropolets","","435224","https//forums.ohdsi.org/t/phenotype-submission-neutropenia/17409","213",,,,,,1316,1316 -1317,"[P] Reyes syndrome",1317,"cohortNameLong : Reyes syndrome; -librarian : rao@ohdsi.org; -status : Pending peer review; -addedVersion : ; -logicDescription : First occurrence of Reyes syndrome; -hashTag : #Disease, #DME; -contributors : 'Gowtham A. Rao', 'Azza Shoaibi'; -contributorOrcIds : '0000-0002-4949-7236', '0000-0002-6976-2594'; -contributorOrganizations : 'OHDSI'; -peerReviewers : ; -peerReviewerOrcIds : ; -recommendedReferentConceptIds : 375241; -ohdsiForumPost : ; -replaces : ; -","2024-09-11","2024-09-26","rao@ohdsi.org","Reyes syndrome",,"Reyes syndrome","Pending peer review","","First occurrence of Reyes syndrome","#Disease, #DME","'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","375241","","",,,,,,1317,1317 +"cohortId","cohortName","cohortNameFormatted","cohortNameLong","librarian","status","addedVersion","logicDescription","hashTag","isCirceJson","contributors","contributorOrcIds","contributorOrganizations","peerReviewers","peerReviewerOrcIds","recommendedReferentConceptIds","ohdsiForumPost","createdDate","modifiedDate","lastModifiedBy","replaces","notes","isReferenceCohort","censorWindowStartDate","censorWindowEndDate","collapseSettingsType","collapseEraPad","exitStrategy","exitDateOffSetField","exitDateOffSet","numberOfInclusionRules","initialEventLimit","initialEventRestrictionAdditionalCriteria","initialEventRestrictionAdditionalCriteriaLimit","inclusionRuleQualifyingEventLimit","numberOfCohortEntryEvents","numberOfDomainsInEntryEvents","domainsInEntryEvents","continousObservationWindowPrior","continousObservationWindowPost","numberOfConceptSets","demographicCriteria","demographicCriteriaAge","demographicCriteriaGender","useOfObservationPeriodInclusionRule","restrictedByVisit","hasWashoutInText","hasConditionStatusInPrimaryCriteria","hasConditionTypeInPrimaryCriteria","hasProcedureTypeInPrimaryCriteria","hasObservationTypeInPrimaryCriteria","hasDrugTypeInPrimaryCriteria","hasConditionStatus","hasConditionType","hasProcedureType","hasObservationType","hasDrugType","domainConditionOccurrence","domainMeasurement","ProcedureSourceConcept","ConditionSourceConcept","ObservationSourceConcept","VisitSourceConcept","DrugSourceConcept","DeviceSourceConcept","DeathSourceConcept","MeasurementSourceConcept","Age","Gender","VisitType","PlaceOfServiceCS","ProviderSpecialty","First","eventCohort","domainObservation","domainVisitOccurrence","domainDeath","domainDrugExposure","domainDeviceExposure","domainProcedureOccurrence","domainDrugEra","exitDrugCodeSetId","exitPersistenceWindow","exitSurveillanceWindow","domainObservationPeriod" +2,"[W] COVID-19 diagnosis or SARS-CoV-2 test (1pos)","COVID-19 diagnosis or SARS-CoV-2 test (1pos)","COVID-19 diagnosis or SARS-CoV-2 test (1pos)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","439676, 37311061","","2021-09-22","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Measurement",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +3,"[P] Cough or Sputum","Cough or Sputum","Cough or Sputum","rao@ohdsi.org","Pending peer review","","All events of cough or sputum finding","#Symptoms, #respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254761","https://forums.ohdsi.org/t/17895","2021-09-22","2023-09-28",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +4,"[P] Diarrhea","Diarrhea","Diarrhea","rao@ohdsi.org","Pending peer review","","All events of diarrhea including Functional Diarrhea","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196523","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",7,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +5,"[P] Dyspnea","Dyspnea","Dyspnea","rao@ohdsi.org","Pending peer review","","All events of dyspnea including difficulty breathing or abnormal breathing","#Symptoms, #respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312437, 4041664","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-28",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +6,"[P] Fever","Fever","Fever","rao@ohdsi.org","Pending peer review","","All events of fever or elevated temperature measurement","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437663, 4178904","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",7,0,"All",FALSE,"All","All",6,3,"ConditionOccurrence, Measurement, Observation",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +7,"[P] Headache or Headache disorder","Headache or Headache disorder","Headache or Headache disorder","rao@ohdsi.org","Pending peer review","","All events of Headache or headache disorder","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378253","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +8,"[P] Altered smell or taste including Anosmia, Hyposmia or Dysgeusia","Altered smell or taste including Anosmia, Hyposmia or Dysgeusia","Altered smell or taste including Anosmia, Hyposmia or Dysgeusia","rao@ohdsi.org","Pending peer review","","Altered smell or taste including Anosmia, Hyposmia or Dysgeusia","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","43530714","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +9,"[P] Sore throat","Sore throat","Sore throat","rao@ohdsi.org","Pending peer review","","All events of Sore throat","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","25297, 4226263","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +10,"[P] Nausea or Vomiting","Nausea or Vomiting","Nausea or Vomiting","rao@ohdsi.org","Pending peer review","","All events of Nausea or vomiting","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27674, 4101344","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +11,"[P] Malaise and or fatigue","Malaise and or fatigue","Malaise and or fatigue","rao@ohdsi.org","Pending peer review","","All events of Malaise and or fatigue","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439926, 4272240","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +12,"[P] Rhinitis or common cold or Sinusitis","Rhinitis or common cold or Sinusitis","Rhinitis or common cold or Sinusitis","rao@ohdsi.org","Pending peer review","","All events of Rhinitis or common cold","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 4320791","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +13,"[P] Myalgia (not explained by injury, ischemia or systemic inflammation)","Myalgia (not explained by injury, ischemia or systemic inflammation)","Myalgia (not explained by injury, ischemia or systemic inflammation)","rao@ohdsi.org","Pending peer review","","All events of Myalgia. Exclude persons with secondary causes of myalgia explained by injury, ischemia or chronic systemic inflammation","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442752, 4150129","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +14,"[P] Myalgia","Myalgia","Myalgia","rao@ohdsi.org","Pending peer review","","All events of Myalgia","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442752, 4150129","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +15,"[P][R] Exposure to viral disease ","Exposure to viral disease","Exposure to viral disease","rao@ohdsi.org","Pending peer review","","all events of Exposure to viral disease. Persons exit on cohort end date","#Referent, #Observation",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37016200","","2021-09-23","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +16,"[W] Exposure to SARS-Cov 2 and coronavirus","Exposure to SARS-Cov 2 and coronavirus","Exposure to SARS-Cov 2 and coronavirus","rao@ohdsi.org","","","","",1,"","","","","","","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +17,"[P][R] Exposure to SARS-CoV-2 ","Exposure to SARS-CoV-2","Exposure to SARS-CoV-2","rao@ohdsi.org","Pending peer review","","all events of Exposure to SARS-CoV-2. Persons exit on cohort end date","#Referent, #Observation",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37311059","","2021-09-23","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +18,"[P][R] Multisystem inflammatory syndrome (MIS) ","Multisystem inflammatory syndrome (MIS)","Multisystem inflammatory syndrome (MIS)","rao@ohdsi.org","Pending peer review","","all events of Multisystem inflammatory syndrome (MIS). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","703578","","2021-09-23","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +20,"[P] Bronchitis or Bronchiolitis","Bronchitis or Bronchiolitis","Bronchitis or Bronchiolitis","rao@ohdsi.org","Pending peer review","","All events of Bronchitis","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","256451, 260139","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +21,"[P] Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure","Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure","Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure","rao@ohdsi.org","Pending peer review","","All events of Acute respiratory distress syndrome (ARDS) or Acute Respiratory Failure","",1,"","","","","","319049","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +22,"[W] SARS-CoV-2 testing","SARS-CoV-2 testing","SARS-CoV-2 testing","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +23,"Inpatient Hospitalization (1Pe, 0Era)","Inpatient Hospitalization (1Pe, 0Era)","Inpatient Hospitalization (1Pe, 0Era)","rao@ohdsi.org","Accepted","3.4.0","All events of Inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",1,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,1,,,,,,,,, +24,"Emergency room visits (0Pe, 0Era)","Emergency room visits (0Pe, 0Era)","Emergency room visits (0Pe, 0Era)","rao@ohdsi.org","Accepted","3.4.0","All events of Emergency Room visits. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,1,,,,,,,,, +25,"All cause mortality","All cause mortality","All cause mortality","rao@ohdsi.org","Pending peer review","3.4.0","Earliest observation of any death","#standard",1,"Gowtham A Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"Death",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,,,,,,,, +27,"[P] Asthma without COPD","Asthma without COPD","Asthma without COPD","rao@ohdsi.org","Pending peer review","","Earliest of either asthma diagnosis or therapy for asthma with a history of another asthma therapy more than 180 days before. The person should not have a diagnosis or treatment for COPD in past","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317009","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,1,"First",FALSE,"All","First",3,3,"ConditionOccurrence, DrugExposure, Observation",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,1,,,,,,, +29,"[W] Autoimmune condition (FP)","Autoimmune condition (FP)","Autoimmune condition (FP)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","",1,"","","","","","76685, 80809, 81893, 81931, 134442, 134618, 135215, 140168, 194992, 199856, 201254, 201606, 254443, 257628, 374919, 432295, 438688, 443394, 4137275, 4232076","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",21,2,"ConditionOccurrence, Observation",0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +30,"[P] Tuberculosis with treatment using anti tubercular drug","Tuberculosis with treatment using anti tubercular drug","Tuberculosis","rao@ohdsi.org","Pending peer review","","All events of tuberculosis with at least 3 different drugs for tuberculosis at anytime on or after diagnosis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","253954, 434557","","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +31,"[P] Malignant neoplasm excluding non-melanoma skin cancer","Malignant neoplasm excluding non-melanoma skin cancer","Malignant neoplasm excluding non-melanoma skin cancer","rao@ohdsi.org","Pending peer review","","All events with a malignant neoplastic disease or history of malignant neoplastic disease","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137809, 443392","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +32,"[P] Obesity","Obesity","Obesity","rao@ohdsi.org","Pending peer review","","Persons with obesity diagnosis or a body weight measurement > 120 kg or 265 lbs","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433736","https://forums.ohdsi.org/t/17895","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",5,3,"ConditionOccurrence, Measurement, Observation",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +33,"[P] Dementia","Dementia","Dementia","rao@ohdsi.org","Pending peer review","","Persons with the diagnosis of dementia, includes history of Dementia","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4182210","","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +34,"[P] Hypertensive disorder or hypertensive complications","Hypertensive disorder or hypertensive complications","Hypertensive disorder or hypertensive complications","rao@ohdsi.org","Pending peer review","","Hypertensive disorder diagnosis or complication of hypertension","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312648, 4028741","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +35,"[W] Chronic kidney disease (FP)","Chronic kidney disease (FP)","Chronic kidney disease (FP)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","",1,"","","","","","192359, 193782","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +36,"[P] Human immunodeficiency virus (not HIV2) infection","Human immunodeficiency virus (not HIV2) infection","Human immunodeficiency virus (not HIV2) infection","rao@ohdsi.org","Pending peer review","","Earliest diagnosis of HIV (not HIV2) with another diagnosis in future or a treatment for HIV","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439727","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"First",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +37,"[P] Hepatitis C infection, carrier status or antibody positivity","Hepatitis C infection, carrier status or antibody positivity","Hepatitis C infection, carrier status or antibody positivity","rao@ohdsi.org","Pending peer review","","Earliest diagnosis of Hepatitis C","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197494, 198964","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +38,"[P] Heart disease","Heart disease","Heart disease","rao@ohdsi.org","Pending peer review","","Earliest of any Heart disease or arteriosclerosis of coronary artery bypass graft","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 44784217","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +39,"[W] End stage renal disease (FP)","End stage renal disease (FP)","End stage renal disease (FP)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","",1,"","","","","","193782","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,0,"All",TRUE,"First","First",2,2,"ConditionOccurrence, Observation",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +40,"[P] Diabetes Mellitus Type 2 or history of diabetes","Diabetes Mellitus Type 2 or history of diabetes","Diabetes Mellitus Type 2 or history of diabetes","rao@ohdsi.org","Pending peer review","","Earliest of any Type 2 Diabetes Mellitus or History of Diabetes","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201820, 201826","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +41,"[W] Chronic kidney disease broad (FP)","Chronic kidney disease broad (FP)","Chronic kidney disease broad (FP)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","",1,"","","","","","192359, 193782","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +42,"[W] End stage renal disease broad (FP)","End stage renal disease broad (FP)","End stage renal disease broad (FP)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review. No clinical description, evaluation or discussions found. May need to be revisited in future","",1,"","","","","","193782","","2021-09-23","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,0,"All",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +43,"[P] Respiratory or pulmonary tuberculosis","Respiratory or pulmonary tuberculosis","Respiratory or pulmonary tuberculosis","rao@ohdsi.org","Pending peer review","","Earliest occurrence of respiratory or pulmonary tuberculosis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","253954, 434557","","2021-09-23","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +44,"[P][R] COVID-19 ","COVID-19","COVID-19","rao@ohdsi.org","Pending peer review","","all events of COVID-19. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37311061","","2021-09-24","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +45,"[W] COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d)","COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d)","COVID-19 diagnosis with SARS-Cov-2 test (-3d to 3d)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","439676, 37311061","","2021-09-24","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +46,"[W] COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d","COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d","COVID-19 diagnosis and SARS-CoV-2 test (1pos) within 3d","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","439676, 37311061","","2021-09-24","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Measurement",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +47,"[W] COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d","COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d","COVID-19 diagnosis and SARS-CoV-2 test (1pos) (0neg) within 3d","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","439676, 37311061","","2021-09-24","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Measurement",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +48,"[W] COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d)","COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d)","COVID-19 diagnosis and SARS-CoV-2 test (0pos upto 3d, 1neg within 3d)","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","439676, 37311061","","2021-09-24","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +51,"[W] SARS-CoV-2 test positive result","SARS-CoV-2 test positive result","SARS-CoV-2 test positive result","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-09-24","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +52,"[W] SARS-CoV-2 test negative result","SARS-CoV-2 test negative result","SARS-CoV-2 test negative result","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-09-24","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +53,"[W] SARS-CoV-2 test positive or negative result - keep persons with positive","SARS-CoV-2 test positive or negative result - keep persons with positive","SARS-CoV-2 test positive or negative result - keep persons with positive","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-09-24","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,1,"First",FALSE,"All","First",2,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +54,"[P] Febrile seizure","Febrile seizure","Febrile seizure","rao@ohdsi.org","Pending peer review","","All events of Febrile seizures","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377091, 4196708","https://forums.ohdsi.org/t/17895","2021-09-24","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +56,"[P] SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d)","SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d)","SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (0 neg -3d to 3d)","rao@ohdsi.org","Pending peer review","","All events of Covid Diagnosis without a negative test result or a SARS-Cov-2 test positive test","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439676, 37311061","","2021-09-30","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Measurement",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +57,"[P][R] Bleeding ","Bleeding","Bleeding","rao@ohdsi.org","Pending peer review","","all events of Bleeding. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671, 437312","https://forums.ohdsi.org/t/17895","2021-09-30","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +59,"[W] COVID-19 diagnosis with no SARS-CoV-2 test","COVID-19 diagnosis with no SARS-CoV-2 test","COVID-19 diagnosis with no SARS-CoV-2 test","rao@ohdsi.org","","","","",1,"","","","","","439676, 37311061","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +60,"[W] SARS-CoV-2 test positive and negative result","SARS-CoV-2 test positive and negative result","SARS-CoV-2 test positive and negative result","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,2,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +61,"[P] Bradycardia or heart block with inpatient admission","Bradycardia or heart block with inpatient admission","Bradycardia or heart block with inpatient admission","rao@ohdsi.org","Pending peer review","","All events of Bradycardia or heart block or first occurrence of pace maker limited to inpatient visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317302, 320425","","2021-10-05","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",TRUE,"All","All",3,3,"ConditionOccurrence, DeviceExposure, ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,1,1,,,,, +62,"[P][R] Seizure related finding ","Seizure related finding","Seizure related finding","rao@ohdsi.org","Pending peer review","","all events of Seizure related finding. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377091, 4196708","https://forums.ohdsi.org/t/17895","2021-10-05","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +63,"Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W)","Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W)","Transverse myelitis or symptoms indexed on symptoms or diagnosis (1Ps, 0Era, 365W)","rao@ohdsi.org","Accepted","3.7.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 139803, 443904","https://forums.ohdsi.org/t/17769","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +64,"[P] Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia","Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia","Composite Flu-like symptoms fever, cough, malaise, fatigue, dyspnea, myalgia","rao@ohdsi.org","Pending peer review","","All events of flue like symptoms or signs","#Symptoms, #Signs",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254761, 312437, 437663, 439926, 442752, 4041664, 4178904, 4272240, 43530714","https://forums.ohdsi.org/t/17895","2021-10-05","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",11,3,"ConditionOccurrence, Measurement, Observation",0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +65,"[W] Acute pancreatitis with inpatient admission","Acute pancreatitis with inpatient admission","Acute pancreatitis with inpatient admission","rao@ohdsi.org","Withdrawn","","Withdrawn and replaced by 205","",1,"","","","","","199074","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +66,"[W] Acute renal failure with inpatient admission","Acute renal failure with inpatient admission","Acute renal failure with inpatient admission","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","197320","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +67,"[W] Hepatic failure with inpatient admission","Hepatic failure with inpatient admission","Hepatic failure with inpatient admission","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","4245975","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +68,"[W] Heart failure with inpatient admission","Heart failure with inpatient admission","Heart failure with inpatient admission","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","316139, 319835","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +69,"[W] Angioedema with inpatient admission","Angioedema with inpatient admission","Angioedema with inpatient admission","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","432791","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +70,"[P] Stroke (ischemic or hemorrhagic) with inpatient admission","Stroke (ischemic or hemorrhagic) with inpatient admission","Stroke (ischemic or hemorrhagic) with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of ischemic or hemorrhagic stroke in an inpatient or ER visit","",1,"","","","","","443454","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +71,"[P] Acute myocardial infarction with inpatient admission","Acute myocardial infarction with inpatient admission","Acute myocardial infarction with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of acute myocardial infarction in an inpatient or ER visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4329847","https://forums.ohdsi.org/t/15900","2021-10-05","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +72,"[P] Influenza diagnosis or positive test result","Influenza diagnosis or positive test result","Influenza diagnosis or positive test result","rao@ohdsi.org","Pending peer review","","all events of influenza diagnosis, or positive influenza test result","",1,"","","","","","4183609, 4266367","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",4,3,"ConditionOccurrence, Measurement, Observation",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +74,"[P] Hemorrhagic stroke (intracerebral bleeding) with inpatient admission","Hemorrhagic stroke (intracerebral bleeding) with inpatient admission","Hemorrhagic stroke (intracerebral bleeding) with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of hemorrhagic stroke while inpatient or ER setting.","",1,"Unknown","","","","","376713, 439847","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +75,"[P] Ischemic stroke with inpatient admission","Ischemic stroke with inpatient admission","Ischemic stroke with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of ischemic stroke while inpatient or ER setting.","",1,"","","","","","443454","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +76,"[P] Transient ischemic attack with inpatient admission","Transient ischemic attack with inpatient admission","Transient ischemic attack with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of transient ischemic attack while in inpatient or ER setting","",1,"","","","","","373503","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +77,"[P] Gastrointestinal bleeding with inpatient admission","Gastrointestinal bleeding with inpatient admission","Gastrointestinal bleeding with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of gastrointestinal hemorrhage in inpatient or ER setting","",1,"","","","","","192671","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +78,"[P] Cardiac arrhythmia with inpatient admission","Cardiac arrhythmia with inpatient admission","Cardiac arrhythmia with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of cardiac arrhythmia or treatments for cardiac arrhythmia in inpatient or ER setting","",1,"","","","","","313217, 44784217","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",4,4,"ConditionOccurrence, DeviceExposure, DrugExposure, ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,1,1,,,,, +79,"[P] Dialysis with inpatient admission","Dialysis with inpatient admission","Dialysis with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of dialysis in inpatient setting","",1,"","","","","","438624, 4027133","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,1,,,,, +80,"[P] Extracorporeal Membrane Oxygenation with inpatient admission","Extracorporeal Membrane Oxygenation with inpatient admission","Extracorporeal Membrane Oxygenation with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of Extracorporeal Membrane Oxygenation in inpatient setting","",1,"","","","","","","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +81,"[P] Cesarean section","Cesarean section","Cesarean section","rao@ohdsi.org","Pending peer review","","all events of Cesarean section","",1,"","","","","","","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +82,"[P] Intensive services during hospitalization","Intensive services during hospitalization","Intensive services during hospitalization","rao@ohdsi.org","Pending peer review","","all events of intensive care service in an inpatient setting","",1,"","","","","","40481547","","2021-10-05","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",5,3,"Measurement, Observation, ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,1,,,,, +84,"[P] SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d)","SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d)","SARS-CoV-2 test (1pos) or COVID-19 diagnosis with (1pos or 0 neg 0d to 3d)","rao@ohdsi.org","Pending peer review","","all events of positive SAR-CoV-2 test result or Covid-19 diagnosis without a negative test result on or within 3 days of diagnosis","",1,"","","","","","439676, 37311061","","2021-10-09","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Measurement",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +86,"[W] SARS-CoV-2 test positive or negative result","SARS-CoV-2 test positive or negative result","SARS-CoV-2 test positive or negative result","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-10-11","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"First",FALSE,"All","First",2,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +87,"[W] SARS-CoV-2 test","SARS-CoV-2 test","SARS-CoV-2 test","rao@ohdsi.org","Withdrawn","","Withdrawn by contributor before peer review","",1,"","","","","","","","2021-10-21","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +95,"[P] Delirium","Delirium","Delirium","rao@ohdsi.org","Pending peer review","","first occurrence of Delirium","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","373995","https://forums.ohdsi.org/t/17895","2022-02-04","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +100,"[P][R] Alzheimer's disease","Alzheimer's disease","Alzheimer's disease","ryan@ohdsi.org","Pending peer review","","all events of Alzheimer's disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378419","","2022-02-06","2023-09-25",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +119,"Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP)","Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP)","Systemic lupus erythematosus indexed on signs, symptoms, treatment, or diagnosis (FP)","rao@ohdsi.org","Accepted","3.10.0","first signs and symptoms suggestive of Systemic lupus erythematosus (SLE) or first treatment suggestive of SLE with SLE diagnosis with 90 days","#PhenotypePhebruary, #2023, #SystemicLupusErythematosus",1,"Joel Swerdel, Daniel Prieto-Alhambra","","","","","138525, 194133","https://forums.ohdsi.org/t/18223","2022-02-10","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, DrugExposure",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,,,, +123,"[P] Suicide attempt or self inflicted injury","Suicide attempt or self inflicted injury","Suicide attempt or self inflicted injury","rao@ohdsi.org","Pending","","Suicide or self inflicted events","#Submitted",1,"Azza A Shoaibi","'0000-0002-4949-7236'","'OHDSI'","","","444362","","2022-02-11","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +134,"[P] Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment","Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment","Attention Deficit Hyperactivity Disorder indexed on diagnosis or treatment","ryan@ohdsi.org","Pending peer review","","First occurrence of Attention-deficit hyperactivity disorder (ADHD) condition or related procedures, indexed on the earliest occurrence of ADHD condition, procedure or treatment (limited to drug exposure followed by a related condition or procedure), with 365d prior observation, exit at end of observation","#PhenotypePhebruary",1,"Patrick B. Ryan","","","","","438409, 4047120","https://forums.ohdsi.org/t/15901","2022-02-13","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",3,3,"ConditionOccurrence, DrugExposure, ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,1,,,,, +142,"[P] ST elevated Myocardial infarction or Acute MI with ST elevation","ST elevated Myocardial infarction or Acute MI with ST elevation","Earliest of ST elevated Myocardial infarction or Acute MI with ST elevation","rao@ohdsi.org","Pending","","Earliest of ST elevated Myocardial infarction or Acute Myocardial Infarction with ST elevation","#PhenotypePhebruary, #2022",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4296653, 4329847","https://forums.ohdsi.org/t/15900","2022-02-15","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +189,"[P][R] Right upper quadrant pain ","Right upper quadrant pain","Right upper quadrant pain","rao@ohdsi.org","Pending peer review","","all events of Right upper quadrant pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198263","https://forums.ohdsi.org/t/17895","2022-06-29","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +190,"[P][R] Swollen abdomen ","Swollen abdomen","Swollen abdomen","rao@ohdsi.org","Pending peer review","","all events of Swollen abdomen. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442597, 4152351","https://forums.ohdsi.org/t/17895","2022-06-29","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +191,"[P] Fatigue, Asthenia, Malaise, Lethargy, Anorexia","Fatigue, Asthenia, Malaise, Lethargy, Anorexia","Fatigue, Asthenia, Malaise, Lethargy, Anorexia","rao@ohdsi.org","Pending peer review","","events with a diagnosis of Fatigue, Asthenia, Malaise, Lethargy, Anorexia but not senile, cancer or stroke related asthenia","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439926, 4272240","https://forums.ohdsi.org/t/17895","2022-06-29","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +192,"[P] Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia","Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia","Skin, Nasal or oral mucosal bleeding events often seen during thrombocytopenia","rao@ohdsi.org","Pending peer review","","all events of Skin, Nasal or oral mucosal bleeding events such as epistaxis. Does not include gastrointestinal bleeding. Limited to bleeding common during thrombocytopenia","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4096682",,"2022-06-29","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,1,,,,, +193,"[P] Jaundice or Itching","Jaundice or Itching","Jaundice or Itching","rao@ohdsi.org","Pending peer review","","events of jaundice or itching","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137977, 435656","https://forums.ohdsi.org/t/17895","2022-06-29","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +194,"[P] Encephalopathy or its presentations","Encephalopathy or its presentations","Encephalopathy or its presentations","rao@ohdsi.org","Pending peer review","","events Encephalopathy or its presentations","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436222","https://forums.ohdsi.org/t/17895","2022-06-29","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +195,"[P] Primary or malignant urothelial bladder cancer","Primary or malignant urothelial bladder cancer","Primary or malignant urothelial bladder cancer","rao@ohdsi.org","Pending peer review","","all events of Primary or malignant urothelial bladder cancer","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196360, 197508","","2022-06-30","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +196,"[P] Rheumatoid arthritis or complications","Rheumatoid arthritis or complications","Rheumatoid arthritis or complications","rao@ohdsi.org","Pending peer review","","All events of rheumatoid arthritis or complications","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80809","","2022-06-30","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +197,"[P] Coronary Artery Disease from vessel disease to ischemic injury","Coronary Artery Disease from vessel disease to ischemic injury","Coronary Artery Disease from vessel disease to ischemic injury","rao@ohdsi.org","Pending peer review","","all occurrence of coronary artery disease","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318443, 764123","","2022-06-30","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",99999,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +198,"[P] Crohns disease or its complication","Crohns disease or its complication","Crohns disease or its complication","rao@ohdsi.org","Pending peer review","","All events of crohns disease or complications","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201606","","2022-06-30","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +199,"[P] Major Depressive Disorder","Major Depressive Disorder","Major Depressive Disorder","rao@ohdsi.org","Pending peer review","","All events of major depressive disorder","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440383","","2022-06-30","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +200,"[P] Psoriasis of skin","Psoriasis of skin","Psoriasis of skin","rao@ohdsi.org","Pending peer review","","All events of psoriasis of skin","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140168","","2022-06-30","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",1095,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +201,"[P] Ulcerative colitis or complications","Ulcerative colitis or complications","Ulcerative colitis or complications","rao@ohdsi.org","Pending peer review","","All events of Ulcerative colitis or complications","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81893","","2022-06-30","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,7,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +207,"[P] Acquired Pure Red Cell Aplasia","Acquired Pure Red Cell Aplasia","Acquired Pure Red Cell Aplasia","rao@ohdsi.org","Pending peer review","","earliest of acquired pure red cell aplasia indexed on anemia, with no congenital or genetic anemia or constitutional aplasia, and no erroneous measurements such as normal hemoglobin or hematocrit. Persons should not have constitutional aplasia as it represents congenital form of aplasia and should not have bone marrow transplantation","#DME",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","26942, 138723, 4144746","https://forums.ohdsi.org/t/17854","2022-11-10","2024-09-11",,"",,0,,,"ERA","0","end of continuous observation",,,6,"All",FALSE,"All","First",4,2,"ConditionOccurrence, Measurement",0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +208,"[P] Febrile Neutropenia or Neutropenic Fever","Febrile Neutropenia or Neutropenic Fever","Febrile Neutropenia or Neutropenic Fever","rao@ohdsi.org","Pending peer review","","All events of febrile neutropenia, indexed on the diagnosis of febrile neutropenia or a fever (diagnosis or measurement) cooccurring with neutropenia (diagnosis or measurement) within 1 day , or a diagnosis of clinically significant infection cooccurring with neutropenia (diagnosis or measurement) within 1 day. Restricted to events overlapping with in an inpatient or emergency room visit and excluding events with a normal neutrophil count (ANC) on index.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","257011, 437663, 4170143, 4250734","https://forums.ohdsi.org/t/17876","2022-11-10","2023-09-19",,"",,0,,,"ERA","30","fixed duration relative to initial event","EndDate",3,2,"All",TRUE,"All","All",8,3,"ConditionOccurrence, Measurement, Observation",0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +209,"[P] Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd","Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd","Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect, g6pd","rao@ohdsi.org","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, enzyme or RBC structure","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269, 4250490","https://forums.ohdsi.org/t/17856","2022-11-11","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,9,"All",FALSE,"All","All",5,2,"ConditionOccurrence, Measurement",0,0,12,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +210,"[P] Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect","Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect","Hemolytic Anemia Extra corpuscular ex hgpathy, memb defect","rao@ohdsi.org","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, or RBC structure. Persons with enzyme disorder (e.g. G-6-PD deficiency) are not excluded","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269, 4250490","https://forums.ohdsi.org/t/17856","2022-11-11","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,7,"All",FALSE,"All","All",5,2,"ConditionOccurrence, Measurement",0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +211,"[P] Pancytopenia, Acquired","Pancytopenia, Acquired","Pancytopenia, Acquired","rao@ohdsi.org","Pending peer review","","All events of Pancytopenia, indexed on diagnosis or lab results. Excluded are patients with severe congenital blood disorders that may cause pancytopenia any time prior to 7 days post index. Exist cohort at 60 days post end date. Repeated events will be combined into events eras if they are within 365 days of each other.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","432881","","2022-11-11","2024-09-11",,"",,0,,,"ERA","365","fixed duration relative to initial event","EndDate",60,3,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Measurement",0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +213,"[D] Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)","Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)","Neutropenia or unspecified leukopenia","rao@ohdsi.org","Accepted","3.11.0","All events of neutropenia indexed on diagnosis or lab results, with no congenital or genetic neutropenia all days pre to 7 days post index. Also excluded, events with normal neutrophil count or a diagnosis of Neutrophilia on index. patients exit 21 days post end date or with the occurrence of a normal neutrophil count. Reoccurring events for the same patients will be combined into event eras if they are within 365 days of each other.","#PhenotypePhebruary, #2023, #Neutropenia, #DME",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Anna Ostropolets","","435224","https://forums.ohdsi.org/t/17409","2022-11-11","2024-09-11",,"",,0,,,"ERA","365","fixed duration relative to initial event","EndDate",21,3,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Measurement",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +214,"[P] Acquired Isolated Neutropenia or unspecified leukopenia","Acquired Isolated Neutropenia or unspecified leukopenia","Acquired Isolated Neutropenia or unspecified leukopenia","rao@ohdsi.org","Pending peer review","","all events of neutropenia indexed on diagnosis or lab results with no congenital or genetic neutropenia, and no other cell lines reduced at the same time","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435224","https://forums.ohdsi.org/t/17409","2022-11-11","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,9,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Measurement",0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +215,"[P] Isolated Immune Thrombocytopenia","Isolated Immune Thrombocytopenia","Isolated Immune Thrombocytopenia","rao@ohdsi.org","Pending peer review","","events of Immune Thrombocytopenia (ITP) with no evidence of congenital or genetic thrombocytopenia, and no simultaneous neutropenia, pancytopenia, bone marrow involvement, anemia.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433749, 4103532","","2022-11-11","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,8,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +216,"[P] Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes","Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes","Isolated Immune Thrombocytopenia in absence of common thrombocytopenia causes","rao@ohdsi.org","Pending peer review","","events of Immune Thrombocytopenia (ITP) with no evidence of congenital or genetic thrombocytopenia, and no simultaneous neutropenia, pancytopenia, bone marrow involvement, anemia. Persons exit after 180 days or when they have normal platelet count. Also no evidence of common causes of thrombocytopenia including hypersplenism, antiphospholipid syndrome, paroxysmal noctural hemoglobinuria, hemolytic uremic syndrome, thrombotic microangiopathy, major autoimmune disorders, chronic liver disease, pregnancy HELLP, tumors of hematopoietic cells or nutritional deficiency","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433749, 4103532","","2022-11-11","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",180,20,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,20,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +217,"[W] Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","rao@ohdsi.org","Pending peer review","","Earliest events of Immune Thrombotic microangiopathy or microangiopathic hemolytic anemia indexed on the diagnosis or its treatment or investigation. Events with congenital or genetic thrombocytopenia all time prior to 7 days post index are excluded. Also excluded are patients with Platelet count > 150. cohort exit is 7 days post end date or an occurrence of a normal platelet measure .","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","313800, 4119134","","2022-11-11","2023-10-16",,"","same as 741",0,,,"ERA","0","fixed duration relative to initial event","EndDate",7,2,"All",FALSE,"All","First",4,4,"ConditionOccurrence, DrugExposure, Measurement, ProcedureOccurrence",0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,1,,,,, +218,"[P] Rhabdomyolysis","Rhabdomyolysis","Rhabdomyolysis","rao@ohdsi.org","Pending peer review","","All events of rhabdomyolysis, indexed on a diagnosis or an observation of of Rhabdomyolysis or Myoglobinuria or a diagnosis of Muscle, ligament and fascia disorders co-occurring with a measurement of creatine kinase that is 5 times above the normal range- within 7 days. With no such events in the last 180 days washout period. Restricted to events that overlap with an inpatient visit. Events are excluded if they had recent trauma such as burn, drowning, hypothermia, hyperthermia, hyperpyrexia, crush syndrome, sepsis, march myoglobinuria, exertional rhabdomyolysis or alcohol intoxication, in the last 14 days including index. cohort exit 0 days post end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","137967, 4345578","","2022-11-11","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",3,13,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Observation",0,0,14,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +219,"[P] Sudden Cardiac arrest or cardiac death","Sudden Cardiac arrest or cardiac death","Sudden Cardiac arrest or cardiac death","rao@ohdsi.org","Pending peer review","","Earliest event of Sudden Cardiac arrest or Cardiac death, indexed on diagnosis or observation of cardiac arrest or cardiac death or a procedures of resuscitation. Restricting to events overlapping an inpatient or ER visit. Cohort exist is 1 day post cohort end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","321042","","2022-11-11","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","First",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,1,,,,, +220,"[P] Angioedema","Angioedema","Angioedema","rao@ohdsi.org","Pending peer review","","all events of angioedema, with no recent cardiac edema, cellulitis, erysipelas, dermatitis or eczema, lymphedema or insect bites","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139900","","2022-11-11","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,7,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +221,"[P] Anaphylaxis Non Environmental exposure related","Anaphylaxis Non Environmental exposure related","Anaphylaxis Non Environmental exposure related","rao@ohdsi.org","Pending peer review","","all events of anaphylaxis that is not due to environmental etiology and no food, substance, insect bite or sting, poisoning as an explanation for anaphylaxis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441202","https://forums.ohdsi.org/t/17835","2022-11-11","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,6,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +222,"[P] Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum","Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum","Stevens-Johnson syndrome, toxic epidermal necrolysis spectrum","rao@ohdsi.org","Pending peer review","","Earliest event of Stevens-Johnson syndrome, Toxic epidermal necrolysis spectrum, indexed on diagnosis of Stevens-Johnson syndrome, Toxic epidermal necrolysis spectrum. Restricting to events overlapping an inpatient or ER visit. Cohort exist is 1 day post cohort end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","141651","","2022-11-11","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +223,"[P] Posterior reversible encephalopathy syndrome PRES","Posterior reversible encephalopathy syndrome PRES","Posterior reversible encephalopathy syndrome PRES","rao@ohdsi.org","Pending peer review","","all events of posterior reversible encephalopathy syndrome with no hypertensive encephalopathy or eclampsia","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","42872891","","2022-11-12","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +224,"[P] Long QT Syndrome or QT prolonged (Acquired)","Long QT Syndrome or QT prolonged (Acquired)","Long QT Syndrome or QT prolonged (Acquired)","rao@ohdsi.org","Pending peer review","","all events of Long QT or QT prolonged. Exclude persons with congenital QT syndrome","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314664","","2022-11-12","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",7,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +225,"[P] Drug-induced Lupus","Drug-induced Lupus","Drug-induced Lupus","rao@ohdsi.org","Pending peer review","","all events of drug induced lupus with no Systemic Lupus Erythematosus","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4063581, 4198217","","2022-11-12","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +226,"[P][R] Drug reaction with eosinophilia and systemic symptoms ","Drug reaction with eosinophilia and systemic symptoms","Drug reaction with eosinophilia and systemic symptoms","rao@ohdsi.org","Pending peer review","","all events of Drug reaction with eosinophilia and systemic symptoms. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","45765791","","2022-11-12","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +227,"[P] Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM)","Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM)","Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS+EM)","rao@ohdsi.org","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), Erythema Multiforme, Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132702, 141651, 45765791","","2022-11-12","2023-09-19",,"",,0,,,"ERA","180","fixed duration relative to initial event","EndDate",3,0,"All",FALSE,"All","All",3,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +228,"[P] Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS)","Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS)","Severe Cutaneous Adverse Reaction SCAR (SJS+TEN+DRESS)","rao@ohdsi.org","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141651, 45765791","","2022-11-12","2023-09-19",,"",,0,,,"ERA","180","fixed duration relative to initial event","EndDate",3,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +229,"[P] Progressive multifocal leukoencephalopathy","Progressive multifocal leukoencephalopathy","Progressive multifocal leukoencephalopathy","rao@ohdsi.org","Pending peer review","","Earliest occurrence of progressive multifocal leukoencephalopathy, indexed on diagnosis of multifocal leukoencephalopathy. Cohort exist at the end of observation period","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433957","","2022-11-12","2024-09-11",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +230,"[P] Autoimmune hepatitis","Autoimmune hepatitis","Autoimmune hepatitis","rao@ohdsi.org","Pending peer review","","all events of autoimmune hepatitis with no chronic liver diseases that may have similar presentation up to 365days prior such as viral hepatitis, drug induced liver injury, alcoholic liver disease, and no systemic lupus erythematosus in past 365 days","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200762","","2022-11-12","2023-09-19",,"",,0,,,"ERA","365","fixed duration relative to initial event","EndDate",365,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +231,"[P][R] Erythema multiforme ","Erythema multiforme","Erythema multiforme","rao@ohdsi.org","Pending peer review","","all events of Erythema multiforme. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132702","","2022-11-12","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +232,"[P] Paresthesia","Paresthesia","Paresthesia","rao@ohdsi.org","Pending peer review","","all events of paresthesia","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4090425","https://forums.ohdsi.org/t/17895","2022-11-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +233,"[P] Hemorrhagic stroke","Hemorrhagic stroke","Hemorrhagic stroke","rao@ohdsi.org","Pending peer review","","all events of hemorrhagic stroke during an inpatient or ER visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376713, 439847","","2022-11-12","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +234,"Appendicitis (1Pe, 180Era)","Appendicitis (1Pe, 180Era)","Appendicitis (1Pe, 180Era)","rao@ohdsi.org","Accepted","3.11.0","events of appendicitis with an inpatient or ER visit with no events in 365 days clean window","#PhenotypePhebruary, #2023",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Azza Shoaibi","","440448, 441604","https://forums.ohdsi.org/t/18188","2022-11-12","2023-09-19",,"",,0,,,"ERA","180","fixed duration relative to initial event","EndDate",1,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +235,"[P] Guillain Barre syndrome inpatient","Guillain Barre syndrome inpatient","Guillain Barre syndrome inpatient","rao@ohdsi.org","Pending peer review","","earliest event of Guillain Barre Syndrome during inpatient or ER stay","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374925","","2022-11-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +236,"[P] Idiopathic Peripheral Neuropathy","Idiopathic Peripheral Neuropathy","Idiopathic Peripheral Neuropathy","rao@ohdsi.org","Pending peer review","","all events of idiopathic peripheral neuropathy","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","375806, 4175154","","2022-11-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +237,"[P] Kawasaki disease","Kawasaki disease","Kawasaki disease","rao@ohdsi.org","Pending peer review","","events of Kawasaki's disease","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314381","","2022-11-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +238,"[P][R] Optic neuritis ","Optic neuritis","Optic neuritis","rao@ohdsi.org","Pending peer review","","all events of Optic neuritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374954","","2022-11-12","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +239,"[P] Narcolepsy events","Narcolepsy events","Narcolepsy events","rao@ohdsi.org","Pending peer review","","All events of Narcolepsy (includes cataplexy with narcolepsy) with no such events in prior clean window period (365 days). Persons should not be diagnosed with hypersomnia. Persons exit the cohort on end_date + 90 days as persons are assumed to have the condition for at least 90 days","#AESI",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436100","https://forums.ohdsi.org/t/17784","2022-11-12","2023-09-21",,"",,0,,,"ERA","365","fixed duration relative to initial event","EndDate",90,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +240,"[P] Muscle weakness or monoplegia","Muscle weakness or monoplegia","Muscle weakness or monoplegia","rao@ohdsi.org","Pending peer review","","events of muscle weakness or monoplegia with no events in prior 365 days clean window","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","79908","","2022-11-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +241,"[P][R] Urticaria ","Urticaria","Urticaria","rao@ohdsi.org","Pending peer review","","all events of Urticaria. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139900","https://forums.ohdsi.org/t/17895","2022-11-12","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +243,"[P] Tinnitus","Tinnitus","Tinnitus","rao@ohdsi.org","Pending peer review","","events of tinnitus","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377575","https://forums.ohdsi.org/t/17895","2022-11-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +244,"[P] Dizziness or giddiness including motion sickness and vertigo","Dizziness or giddiness including motion sickness and vertigo","Dizziness or giddiness including motion sickness and vertigo","rao@ohdsi.org","Pending peer review","","events of dizziness","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433316, 4223938","https://forums.ohdsi.org/t/17895","2022-11-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +245,"[P] Hepatic Thrombosis","Hepatic Thrombosis","Hepatic Thrombosis","rao@ohdsi.org","Pending peer review","","first event of hepatic thrombosis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196715","","2022-11-12","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +246,"[P] Portal vein thrombosis","Portal vein thrombosis","Portal vein thrombosis","rao@ohdsi.org","Pending peer review","","first event of portal vein thrombosis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","199837","","2022-11-12","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +247,"[P] Deep Vein Thrombosis DVT","Deep Vein Thrombosis DVT","Deep Vein Thrombosis DVT","rao@ohdsi.org","Pending peer review","","first event of non obstetric Deep Vein Thrombosis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4133004, 43531681","https://forums.ohdsi.org/t/17769","2022-11-12","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +248,"[P] Disseminated intravascular coagulation DIC in inpatient visit","Disseminated intravascular coagulation DIC in inpatient visit","Disseminated intravascular coagulation DIC in inpatient visit","rao@ohdsi.org","Pending peer review","","events of Disseminated Intravascular Coagulation in an inpatient or ER setting with no events in prior 365 day window","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436093","","2022-11-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +249,"[P] Ischemic (Non-hemorrhagic) Stroke In Inpatient","Ischemic (Non-hemorrhagic) Stroke In Inpatient","Ischemic (Non-hemorrhagic) Stroke In Inpatient","rao@ohdsi.org","Pending peer review","","events of cerebral infarction while in an inpatient or ER setting","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443454","","2022-11-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +251,"[P] Acute pancreatitis","Acute pancreatitis","Acute pancreatitis","rao@ohdsi.org","Pending peer review","","events of acute pancreatitis in an inpatient or emergency setting and no history of chronic pancreatitis or hereditary or congenital pancreatitis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4192640, 199074","https://forums.ohdsi.org/t/17848","2022-11-15","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,3,"All",FALSE,"All","All",2,1,"VisitOccurrence",0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,1,,,,,,,,, +253,"[P] Drug Induced Acute pancreatitis","Drug Induced Acute pancreatitis","Drug Induced Acute pancreatitis","rao@ohdsi.org","Pending peer review","","events of acute pancreatitis in an inpatient or emergency setting with no events in prior washout window of 365 days, and no history of chronic pancreatitis or hereditary or congenital pancreatitis. Events with other explanations for acute pancreatitis such as alcoholic pancreatitis, severe alcoholism, recent alcohol intoxication, cholangitis or cholecystitits, biliary tract disease, endoscopic retrograde cholangiopancreatography, intestinal ischemia or obstruction or not eligible","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4192640, 199074, 4340961","https://forums.ohdsi.org/t/17848","2022-11-15","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,12,"All",FALSE,"All","All",2,1,"VisitOccurrence",0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,1,,,,,,,,, +254,"[P] Drug Resistant Epilepsy","Drug Resistant Epilepsy","Drug Resistant Epilepsy","rao@ohdsi.org","Pending peer review","","first occurrence of epilepsy in inpatient, of subsequent epilepsy in an outpatient setting after another outpatient epilepsy visit more than 30 days before, or anti-epileptic drug on or after a diagnosis of epilepsy. Limit to persons with at least two different anti epilepsy drug or diagnosis of intractable epilepsy on or after index date","",1,"Mathew Spotnitz","","","","","377091, 380378, 4029498","https://forums.ohdsi.org/t/17569","2022-11-17","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",3,2,"ConditionOccurrence, DrugExposure",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,,,, +255,"[P] Alzheimer's disease (based on Imfeld, 2013)","Alzheimer's disease (based on Imfeld, 2013)","Alzheimer's disease (based on Imfeld, 2013)","rao@ohdsi.org","Pending peer review","","this is an approximation of algorithm published by Imfeld et.al 2013","",1,"","","","","","378419, 4182210","","2022-11-18","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",3,2,"ConditionOccurrence, DrugExposure",365,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,,,, +256,"[P] Facial Palsy lower motor neuron including Bells Palsy","Facial Palsy lower motor neuron including Bells Palsy","Facial Palsy lower motor neuron including Bells Palsy","rao@ohdsi.org","Pending peer review","","events of facial palsy with 183 days washout period. Remove persons with congenital facial palsy. Remove events with upper motor neuron disease suggestive of stroke","#AESI",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 4091559","https://forums.ohdsi.org/t/17788","2022-11-22","2023-09-21",,"",,0,,,"ERA","180","fixed duration relative to initial event","EndDate",180,3,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,,, +257,"[P] Emergency room visits or code","Emergency room visits or code","Emergency room visits or code","rao@ohdsi.org","Pending peer review","","All events of Emergency Room visits or code","#Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2022-11-22","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",4,3,"Observation, ProcedureOccurrence, VisitOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,,,,1,,,,, +258,"[P] Anaphylaxis or Anaphylactic shock events","Anaphylaxis or Anaphylactic shock events","Anaphylaxis or Anaphylactic shock events","rao@ohdsi.org","Pending peer review","","all events of anaphylaxis or anaphylaxis shock due to serum with no events in prior clean window","",1,"Erica Voss","","","","","441202","https://forums.ohdsi.org/t/16033","2022-11-28","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +259,"[P] Anaphylaxis all cause","Anaphylaxis all cause","Anaphylaxis all cause","rao@ohdsi.org","Pending peer review","","all events of anaphylaxis","",1,"Gowtham A. Rao, Andrea Noel","'0000-0002-4949-7236'","'OHDSI'","","","441202","https://forums.ohdsi.org/t/18193","2022-11-28","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +260,"[P] ST elevated myocardial infarction with inpatient admission","ST elevated myocardial infarction with inpatient admission","ST elevated myocardial infarction with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of ST segment acute myocardial infarction in an inpatient or ER visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4296653, 4329847","https://forums.ohdsi.org/t/15900","2022-11-29","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",TRUE,"All","All",2,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +261,"[P] Non ST elevated myocardial infarction with inpatient admission","Non ST elevated myocardial infarction with inpatient admission","Non ST elevated myocardial infarction with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of Non ST segment acute myocardial infarction in an inpatient or ER visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4329847","https://forums.ohdsi.org/t/15900","2022-11-29","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",TRUE,"All","All",2,1,"ConditionOccurrence",0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +262,"[P] Unstable Angina with inpatient admission","Unstable Angina with inpatient admission","Unstable Angina with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of Unstable Angina in an inpatient or ER visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","315296","https://forums.ohdsi.org/t/15900","2022-11-29","2023-09-19",,"",,0,,,"ERA","180","fixed duration relative to initial event","EndDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +263,"[P] Unstable Angina OR NSTEMI with inpatient admission","Unstable Angina OR NSTEMI with inpatient admission","Unstable Angina OR NSTEMI with inpatient admission","rao@ohdsi.org","Pending peer review","","all events of Unstable Angina or NSTEMI in an inpatient or ER visit","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314666, 4329847","https://forums.ohdsi.org/t/15900","2022-11-29","2023-09-19",,"",,0,,,"ERA","180","fixed duration relative to initial event","EndDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +264,"[P] Acute Hepatic Failure in persons with liver disease","Acute Hepatic Failure in persons with liver disease","Acute Hepatic Failure in persons with liver disease","rao@ohdsi.org","Pending peer review","","Events of Hepatic Failure. Persons should have prior liver disease","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","2022-11-29","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",365,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +265,"[P] Drug Induced Acute Hepatic Failure","Drug Induced Acute Hepatic Failure","Drug Induced Acute Hepatic Failure","rao@ohdsi.org","Pending peer review","","first occurrence of Hepatic Failure and no other liver problems in past","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","2022-11-29","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,23,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +267,"[P] Acute Kidney Injury AKI, in persons with chronic kidney disease","Acute Kidney Injury AKI, in persons with chronic kidney disease","Acute Kidney Injury AKI, in persons with chronic kidney disease","rao@ohdsi.org","Pending peer review","","all events of Acute Kidney Injury with washout period of 30 days. Persons should have chronic kidney disease that is is not ESKD, and should be not on chronic dialysis or had kidney transplant. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","#DME",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","","2022-11-29","2023-09-19",,"",,0,,,"ERA","7","fixed duration relative to initial event","EndDate",7,4,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +268,"[P] Acute Kidney Injury AKI, in persons with NO chronic kidney disease","Acute Kidney Injury AKI, in persons with NO chronic kidney disease","Acute Kidney Injury AKI, in persons with NO chronic kidney disease","rao@ohdsi.org","Pending peer review","","all events of Acute Kidney Injury with washout period of 30 days. Persons should have chronic kidney disease that is is not ESKD, and should be not on chronic dialysis or had kidney transplant. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","","2022-11-29","2023-09-19",,"",,0,,,"ERA","7","fixed duration relative to initial event","EndDate",7,4,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +269,"[D] Acute Kidney Injury AKI","Acute Kidney Injury AKI","Acute Kidney Injury AKI","rao@ohdsi.org","Accepted","3.8.0","This accepted cohort was Deprecated because the rule to exclude no chronic dialysis was incorrect. This definition was replaced by 362. Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","#PhenotypePhebruary, #2022",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","https://forums.ohdsi.org/t/16067","2022-11-29","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,4,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,7,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +270,"[P] Hemolytic Anemia","Hemolytic Anemia","Hemolytic Anemia","rao@ohdsi.org","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269","https://forums.ohdsi.org/t/17856","2022-11-30","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,2,"All",FALSE,"All","All",4,2,"ConditionOccurrence, Measurement",0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +271,"[P] Hemolytic Anemia Intra corpuscular","Hemolytic Anemia Intra corpuscular","Hemolytic Anemia Intra corpuscular","rao@ohdsi.org","Pending peer review","","all events of hemolytic anemia, indexed on anemia or hemolysis, without congenital or hereditary causes of hemolytic anemia of membrane, enzyme or RBC structure","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435503, 439777, 441269","https://forums.ohdsi.org/t/17856","2022-11-30","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",99999,0,"All",TRUE,"All","All",4,2,"ConditionOccurrence, Measurement",0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +273,"[P] Pathological Ventricular Tachycardia","Pathological Ventricular Tachycardia","Pathological Ventricular Tachycardia","rao@ohdsi.org","Pending peer review","","all events of ventricular tachycardia with hospitalization. note - the use of ventricular tachycardia is thought to imply pathological tachycardia vs. simple tachycardia","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437579, 4103295","","2022-12-06","2023-09-19",,"",,0,,,"ERA","7","fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +274,"[P] Cardiac arrest or Pathological Ventricular tachycardia","Cardiac arrest or Pathological Ventricular tachycardia","Cardiac arrest or Pathological Ventricular tachycardia","rao@ohdsi.org","Pending peer review","","Cardiac arrest or Pathological Ventricular tachycardia with inpatient stay","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321042, 437579, 4103295","","2022-12-06","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","First",4,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,1,,,,, +275,"[P] Polymorphic Ventricular Tachycardia or Torsades de Pointes","Polymorphic Ventricular Tachycardia or Torsades de Pointes","Polymorphic Ventricular Tachycardia or Torsades de Pointes","rao@ohdsi.org","Pending peer review","","Polymorphic Ventricular Tachycardia or Torsades de Pointes","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","4088349, 4135823","","2022-12-06","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",3,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +276,"[P] Sudden Vision Loss","Sudden Vision Loss","Sudden Vision Loss","rao@ohdsi.org","Pending peer review","","all events of Vision Loss, indexed on diagnosis of Vision Loss. With 1. no such events in prior washout window of 365 days 2. and no history of other pathological eye disease such as glaucoma, infections and others in 365 days to 1 day prior index. cohort exits is 90 days after cohort end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","377556","","2022-12-08","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",90,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +277,"[P] Sudden Hearing Loss","Sudden Hearing Loss","Sudden Hearing Loss","rao@ohdsi.org","Pending peer review","","all events of Sudden Hearing Loss or hearing loss that is managed by corticosteroids, imaging of head or multiple hearing exams after among persons without congenital, middle or inner ear disease and no past hearing tests","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","374053, 377889","","2022-12-08","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,4,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Observation",0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +278,"[P] Pain or ache that is Non Chronic","Pain or ache that is Non Chronic","Pain or ache that is Non Chronic","rao@ohdsi.org","Pending peer review","","all events of non chronic non generalized or diffuse pain","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138525, 194133","https://forums.ohdsi.org/t/17895","2023-01-04","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,1,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +279,"[P] Low Back Pain or injury","Low Back Pain or injury","Low Back Pain or injury","rao@ohdsi.org","Pending peer review","","all events of low back pain","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134736, 194133","https://forums.ohdsi.org/t/17895","2023-01-04","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +280,"[P] Abdominal Pain or acute abdomen","Abdominal Pain or acute abdomen","Abdominal Pain or acute abdomen","rao@ohdsi.org","Pending peer review","","all events of abdominal pain","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200219","https://forums.ohdsi.org/t/17895","2023-01-04","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +281,"[P] Epigastric Pain","Epigastric Pain","Epigastric Pain","rao@ohdsi.org","Pending peer review","","all events of epigastric pain","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197381, 4306292","https://forums.ohdsi.org/t/17895","2023-01-04","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +282,"[P] Joint Pain","Joint Pain","Joint Pain","rao@ohdsi.org","Pending peer review","","all events of joint pain","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","78232, 80180","https://forums.ohdsi.org/t/17895","2023-01-04","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +283,"[P] Prostatitis","Prostatitis","Prostatitis","rao@ohdsi.org","Pending","","All events of prostatits that is either a first occurrence of chronic prostatitis, or did not have an event of prostatitis in past 1 year, with no testicular lesions, bladder neoplasm or abdominal or inguinal hernia in prior 1 year. cohort end 180 days post cohort end date","#Submitted",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194997","","2023-01-13","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,5,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,,, +284,"[P] Myocarditis or Pericarditis","Myocarditis or Pericarditis","Myocarditis or Pericarditis","rao@ohdsi.org","Pending","","All events of Myocarditis or Pericarditis","#Submitted",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320116, 4138837","","2023-01-14","2023-09-19",,"",,0,,,"ERA","90","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +285,"[P] Myocarditis or Pericarditis Not due to infections","Myocarditis or Pericarditis Not due to infections","Myocarditis or Pericarditis Not due to infections","rao@ohdsi.org","Pending","","All events of Myocarditis or Pericarditis without events that are due to Infectious Etiology","#Submitted",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320116, 4138837","","2023-01-14","2023-09-19",,"",,0,,,"ERA","90","fixed duration relative to initial event","EndDate",30,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +287,"[P] Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica","Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica","Transverse myelitis includes Myelitis Unspecified and neuromyelitis optica","rao@ohdsi.org","Pending","","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, OR related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days OR events of myelitis unspecified with weakness or asthenia, neuromyelitis optica with weakness or asthenia. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Sensitivity",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 138965, 139803, 380995, 443904","https://forums.ohdsi.org/t/17769","2023-01-17","2023-09-19",,"",,0,,,"ERA","365","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",4,1,"ConditionOccurrence",0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +288,"[P] Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results","Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results","Type 2 Diabetes Mellitus indexed on diagnosis, treatment or lab results","rao@ohdsi.org","Pending","","Earliest event of Type 2 Diabetes Mellitus (DM), indexed on diagnosis or Blood glucose lowering drugs excluding insulin or high Hemoglobin A1c (limited to treatments or measurement that are followed with Type 2 DM diagnosis within 365 days) excluding persons with Type 1 DM or secondary diabetes mellitus in the all time prior including index date","#Disease",1,"Patrick Ryan, Jill Hardin","","","","","201820, 201826","https://forums.ohdsi.org/t/15764","2023-01-25","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",4,3,"ConditionOccurrence, DrugExposure, Measurement",0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,,,,,, +289,"[P] Presence Of Cardiac Arrhythmia","Presence Of Cardiac Arrhythmia","Presence Of Cardiac Arrhythmia","rao@ohdsi.org","Pending","","All events of Cardiac arrythmia or treatments for cardiac arrythmia","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 44784217","","2023-01-26","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",60,0,"All",FALSE,"All","All",4,4,"ConditionOccurrence, DeviceExposure, DrugExposure, ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,1,1,,,,, +290,"[P] Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment","Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment","Thyroiditis wo other causes of hypothy, indexed on diagnosis or treatment","rao@ohdsi.org","Pending peer review","","All events of thyroiditis, indexed on an occurrence of Thyroiditis (including hypo and hyperthyroidism) condition or exposure to levothyroxine (limited to drug exposure that occurred within 365 days prior to an occurrence of Thyroiditis condition). Limited to events that had zero condition occurrence of Hypothyroidism other than Hashimoto's Disease (ie excluding alternative causes of hypothyroidism) all time prior and including index","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138384, 140673","","2023-01-26","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,2,"All",FALSE,"All","All",2,2,"ConditionOccurrence, DrugExposure",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,,,, +291,"[P] Gynecomastia, indexed on diagnosis, procedure or symptoms","Gynecomastia, indexed on diagnosis, procedure or symptoms","Gynecomastia, indexed on diagnosis, procedure or symptoms","rao@ohdsi.org","Pending","","All events of Gynecomastia diagnosis, indexed on a diagnosis of Gynecomastia or a procedure of Mastectomy for gynecomastia or a presentation/symptoms of Gynecomastia (breast lump or pain). Events indexed on a procedures or symptoms are required to be followed by a diagnosis within a year","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","78474, 80767, 137809","","2023-01-26","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,1,"All",FALSE,"All","All",4,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,1,,,,, +292,"[P] Acute Hepatic Failure in persons without chronic hepatic failure","Acute Hepatic Failure in persons without chronic hepatic failure","Hepatic Failure","rao@ohdsi.org","Pending peer review","","all events of acute hepatic failure. no chronic hepatic failure","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","2023-01-26","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +293,"[P] Acute Hepatic Injury or inpatient jaundice","Acute Hepatic Injury or inpatient jaundice","Acute Hepatic Injury with no chronic hepatic failure","rao@ohdsi.org","Pending","","All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, with no chronic hepatic failure. Sequela of chronic liver disease maps to codes that historically were used for acute liver injury","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194990","","2023-01-26","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +294,"[P] Acute Hepatic Injury with no pre-existing liver disease","Acute Hepatic Injury with no pre-existing liver disease","Acute Hepatic Injury with no pre-existing liver disease","rao@ohdsi.org","Pending","","Earliest event of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury. Patients are excluded if they have a diagnosis of chronic hepatic failure any time in the past or on the same day. Also excluded patients who have other prior liver disease such as viral hepatitis, Liver Cirrhosis, liver fibrosis, alcoholic and others anytime prior including index","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194990","","2023-01-26","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,23,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +295,"[P] Acute Hepatic Failure in persons with no pre-existing liver disease","Acute Hepatic Failure in persons with no pre-existing liver disease","Acute Hepatic Failure in persons with no pre-existing liver disease","rao@ohdsi.org","Pending peer review","","Event of hepatic Failure, indexed on the diagnosis of Hepatic Failure. Patients are excluded if they have a diagnosis of chronic hepatic failure any time in the past or on the same day. Also excluded patients who have other prior liver disease such as viral hepatitis, Liver Cirrhosis, liver fibrosis, alcoholic and others anytime prior including index","#Submitted",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","2023-01-26","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,23,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +296,"Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era)","Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era)","Transverse myelitis or symptoms indexed on symptoms or diagnosis (180Pe, 180Era)","rao@ohdsi.org","Accepted","3.9.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 139803, 443904","https://forums.ohdsi.org/t/17769","2023-01-26","2023-09-19",,"",,0,,,"ERA","180","fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +298,"[P] Urinary bleed events in persons without renal glomerular disease","Urinary bleed events in persons without renal glomerular disease","Urinary bleed events in persons without renal glomerular disease","rao@ohdsi.org","Pending peer review","","all events of urinary bleeds in persons with no recent kidney biopsy, no chronic kidney disease or recent renal glomerular disease","#Symptoms, #urinary",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","79864, 437038","","2023-02-02","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,3,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +299,"[P] Acute gastrointestinal bleeding or perforation events","Acute gastrointestinal bleeding or perforation events","Acute gastrointestinal bleeding or perforation events","rao@ohdsi.org","Pending peer review","","all events of gastrointestinal bleed or perforation","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671","","2023-02-02","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +300,"[P] Heavy menstrual bleeding (menorrhagia) events","Heavy menstrual bleeding (menorrhagia) events","Heavy menstrual bleeding (menorrhagia) events","rao@ohdsi.org","Pending peer review","","","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197607, 4302555","","2023-02-02","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,3,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +304,"Neurofibromatosis type 1 (FP)","Neurofibromatosis type 1 (FP)","Neurofibromatosis type 1 (FP)","rao@ohdsi.org","Accepted","3.12.0","","#PhenotypePhebruary, #2023, #Neurofibromatosis",1,"Maxim Moinat","","","","","377252","https://forums.ohdsi.org/t/18236","2023-02-07","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +305,"Neurofibromatosis type 1 without Type 2 (FP)","Neurofibromatosis type 1 without Type 2 (FP)","Neurofibromatosis type 1 without Type 2 (FP)","rao@ohdsi.org","Accepted","3.12.0","Persons with Neurofibromatosis without a diagnosis of NF2, vestibular schwannoma or hearing problems. Not all data sources capture NF subtype (e.g. when using ICD10), so to select NF1 we exclude diagnoses that give a suspicion of NF2 (affecting auditory system)","#PhenotypePhebruary, #2023, #Neurofibromatosis",1,"Maxim Moinat","","","","","376938","https://forums.ohdsi.org/t/18236","2023-02-07","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +306,"Optical pathway glioma and neurofibromatosis (FP)","Optical pathway glioma and neurofibromatosis (FP)","Optical pathway glioma and neurofibromatosis (FP)","rao@ohdsi.org","Accepted","3.12.0","Persons with an optic nerve glioma and diagnosis of neurofibromatosis anytime in persons history. This would be the preferred code for an OPG","#PhenotypePhebruary, #2023, #Neurofibromatosis",1,"Maxim Moinat","","","","","4112970","https://forums.ohdsi.org/t/18236","2023-02-07","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +307,"Optical pathway glioma or non mal neoplasm of optic nerve w nf","Optical pathway glioma or non mal neoplasm of optic nerve w nf","Optical pathway glioma or non malignant neoplasm of optic nerve w neurofibromatosis","rao@ohdsi.org","Accepted","3.12.0","Persons with an optic nerve glioma OR neoplasm of optic nerve, and a diagnosis of neurofibromatosis anytime in persons history","#PhenotypePhebruary, #2023, #Neurofibromatosis",1,"Maxim Moinat","","","","","4216000, 4246137","https://forums.ohdsi.org/t/18236","2023-02-07","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +308,"Optical pathway glioma with MRI imaging and ophth visits NF","Optical pathway glioma with MRI imaging and ophth visits NF","Optical pathway glioma with MRI imaging and ophthalmology visits Neurofibromatosis","rao@ohdsi.org","Accepted","3.12.0","Persons with neurofibromatosis, that also had one MRI of the brain AND at least 3 ophthalmology visits within one year (anytime in persons history). In some centers, an OPG might be coded as general NF and needs to be inferred from follow-up care after diagnosis","#PhenotypePhebruary, #2023, #Neurofibromatosis",1,"Maxim Moinat","","","","","376938","https://forums.ohdsi.org/t/18236","2023-02-07","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +311,"[P] Parasomnia","Parasomnia","Parasomnia","rao@ohdsi.org","Pending peer review","","All events of Parasomnia that may be expected to persist for atleast 30 days with events collapse 1 day after","",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","","","","440087","","2023-02-10","2023-09-23",,"",,0,,,"ERA","1","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +318,"[P] Acute Hepatic Failure in persons without chronic hepatic failure on same day","Acute Hepatic Failure in persons without chronic hepatic failure on same day","Acute Hepatic Failure in persons without chronic hepatic failure on same day","rao@ohdsi.org","Pending peer review","","all events of acute hepatic failure. If the persons also has chronic hepatic failure coded on the same day, they are excluded","#Disease",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","2023-02-11","2023-09-19",,"",,0,,,"ERA","1","fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +324,"[P] Pain","Pain","Pain","rao@ohdsi.org","Pending peer review","","all events of pain","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138525, 194133","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,1,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +325,"[P] Inpatient Hospitalization By Site of care or type of service","Inpatient Hospitalization By Site of care or type of service","Inpatient Hospitalization By Site of care or type of service","rao@ohdsi.org","Pending","","All events of Inpatient visit defined by site of care (visit domain) or type of service (procedure or observation codes) within any of the main visit categories","#Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-02-12","2023-09-19",,"",,0,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",4,3,"Observation, ProcedureOccurrence, VisitOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,,,,1,,,,, +327,"[P][R] Pharyngitis ","Pharyngitis","Pharyngitis","rao@ohdsi.org","Pending peer review","","all events of Pharyngitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","25297, 4226263","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +328,"[P] Wheezing","Wheezing","Wheezing","rao@ohdsi.org","Pending peer review","","All events of wheezing","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314754","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +330,"[P][R] Abdominal bloating ","Abdominal bloating","Abdominal bloating","rao@ohdsi.org","Pending peer review","","all events of Abdominal bloating. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4023572","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +331,"[P] Encephalopathy","Encephalopathy","Encephalopathy","rao@ohdsi.org","Pending peer review","","events Encephalopathy","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372892, 43021132","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +332,"[P] Pain or ache that is Chronic","Pain or ache that is Chronic","Pain or ache that is Chronic","rao@ohdsi.org","Pending peer review","","all events of non chronic non generalized or diffuse pain","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138525, 194133","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +333,"[P] Alcohol Use Disorder","Alcohol Use Disorder","Alcohol Use Disorder","rao@ohdsi.org","Pending peer review","","all events of abdominal pain","#Symptoms, #Drug",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435243, 36714559","https://forums.ohdsi.org/t/17895","2023-02-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,1,,,,, +334,"[P] Asthma","Asthma","Asthma","rao@ohdsi.org","Pending peer review","","All events of asthma diagnosis or therapy for asthma with a history of another asthma therapy more than 180 days before, or asthma diagnosis","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317009","","2023-02-12","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",3,3,"ConditionOccurrence, DrugExposure, Observation",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,1,,,,,,, +335,"[P] Anxiety or Fear","Anxiety or Fear","Anxiety or Fear","rao@ohdsi.org","Pending peer review","","Events of Anxiety or Fear","",1,"","","","","","441542, 442077","","2023-02-12","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +339,"[P][R] Low blood pressure ","Low blood pressure","Low blood pressure","rao@ohdsi.org","Pending peer review","","all events of Low blood pressure. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317002","https://forums.ohdsi.org/t/17895","2023-03-14","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +340,"[P] Hives, Erythema, Eruption, Urticaria","Hives, Erythema, Eruption, Urticaria","Hives, Erythema, Eruption, Urticaria","rao@ohdsi.org","Pending peer review","","All events of Hives, Erythema, Eruption, Urticaria","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134438, 45766714","https://forums.ohdsi.org/t/17895","2023-03-14","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +341,"[P] Loss of mentation including comma, syncope, altered consciousness","Loss of mentation including comma, syncope, altered consciousness","Loss of mentation including comma, syncope, altered consciousness","rao@ohdsi.org","Pending peer review","","All events of Disturbance of consciousness, loss of mentation including comma, syncope, altered consciousness","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376961, 4206148","https://forums.ohdsi.org/t/17895","2023-03-14","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +342,"[P][R] Urinary incontinence","Urinary incontinence","Urinary incontinence","rao@ohdsi.org","Pending peer review","","all events of Urinary incontinence. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197672","https://forums.ohdsi.org/t/17895","2023-03-14","2023-09-25",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +343,"[P] Fecal Incontinence","Fecal Incontinence","Fecal Incontinence","rao@ohdsi.org","Pending peer review","","All events of Fecal Incontinence","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197675, 4101350","https://forums.ohdsi.org/t/17895","2023-03-14","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +344,"[P] Doctors office or clinic visit without other overlapping visits","Doctors office or clinic visit without other overlapping visits","Doctors office or clinic visit without other overlapping visits","rao@ohdsi.org","Pending peer review","","All events of Doctors office or clinic visit that does not overlap with inpatient, urgent care or emergency visit","#Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-03-14","2023-09-25",,"",,0,,,"ERA","1","fixed duration relative to initial event","EndDate",0,4,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,1,,,,,,,,, +346,"[P] Non urgent outpatient visit without overlapping inpatient or emergency visit","Non urgent outpatient visit without overlapping inpatient or emergency visit","Non urgent outpatient visit without overlapping inpatient or emergency visit","rao@ohdsi.org","Pending peer review","","All events of Doctors office or clinic visit that does not overlap with inpatient, urgent care or emergency visit. If a person has visits on consecutive days, they are collapsed into a spans of days","#Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-03-14","2023-10-22",,"",,0,,,"ERA","1","fixed duration relative to initial event","EndDate",0,4,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,1,,,,,,,,, +347,"[P] Ambulance utilization","Ambulance utilization","Ambulance utilization","rao@ohdsi.org","Pending peer review","","All events of Ambulance use","#Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-03-14","2023-09-25",,"",,0,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",4,4,"ConditionOccurrence, Observation, ProcedureOccurrence, VisitOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,,,,1,,,,, +348,"[P][R] Blood in urine ","Blood in urine","Blood in urine","rao@ohdsi.org","Pending peer review","","all events of Blood in urine. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","79864, 437038","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +349,"[P] Lower gastrointestinal bleeding events","Lower gastrointestinal bleeding events","Lower gastrointestinal bleeding events","rao@ohdsi.org","Pending peer review","","all events of lower gastrointestinal bleed","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197925, 4245614","","2023-03-15","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +350,"[P][R] Hemoptysis","Hemoptysis","Hemoptysis","rao@ohdsi.org","Pending peer review","","all events of Hemoptysis. Persons exit on cohort end date","#Referent, #Condition, #respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","261687","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-28",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +351,"[P] Nasal Polyp present","Nasal Polyp present","Nasal Polyp present","rao@ohdsi.org","Pending peer review","","all events of nasal polyp","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4209223, 4285898, 42537251","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +352,"[P][R] Inflamed tonsils ","Inflamed tonsils","Inflamed tonsils","rao@ohdsi.org","Pending peer review","","all events of Inflamed tonsils. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24660, 4083666","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +353,"[P][R] Conjunctivitis ","Conjunctivitis","Conjunctivitis","rao@ohdsi.org","Pending peer review","","all events of Conjunctivitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","379019","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +354,"[P] Nasal Congestion or Rhinitis or Common Cold","Nasal Congestion or Rhinitis or Common Cold","Nasal Congestion or Rhinitis or Common Cold","rao@ohdsi.org","Pending peer review","","all events of Nasal Congestion or Rhinitis or Common Cold","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 4320791","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +355,"[P] Laryngitis","Laryngitis","Laryngitis","rao@ohdsi.org","Pending peer review","","all events of Laryngitis","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24969, 260134","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +356,"[P] Epistaxis","Epistaxis","Epistaxis","rao@ohdsi.org","Pending peer review","","all events of Epistaxis","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4096682","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,1,,,,, +357,"[P][R] Pulmonary edema ","Pulmonary edema","Pulmonary edema","rao@ohdsi.org","Pending peer review","","all events of Pulmonary edema. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","261600, 4078925","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +358,"[P] Acute Respiratory Failure among persons with no chronic respiratory failure","Acute Respiratory Failure among persons with no chronic respiratory failure","Acute Respiratory Failure among persons with no chronic respiratory failure","rao@ohdsi.org","Pending peer review","","All events of Acute Respiratory Failure among persons with no evidence of chronic respiratory failure in past 365 days","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049, 4256228","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +359,"[P] Acute Respiratory Failure","Acute Respiratory Failure","Acute Respiratory Failure","rao@ohdsi.org","Pending peer review","","All events of Acute Respiratory Failure","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049, 4256228","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +360,"[P] Pleural Effusion","Pleural Effusion","Pleural Effusion","rao@ohdsi.org","Pending peer review","","All events of Pleural Effusion","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254061","https://forums.ohdsi.org/t/17895","2023-03-15","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +361,"[P][R] Restless legs ","Restless legs","Restless legs","rao@ohdsi.org","Pending peer review","","all events of Restless legs. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","73754","https://forums.ohdsi.org/t/18236","2023-04-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +362,"Acute Kidney Injury AKI","Acute Kidney Injury AKI","Acute Kidney Injury AKI","rao@ohdsi.org","Accepted","3.8.0","Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd, excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior applying a washout period of 30 days between observed events. patients exit the cohort 7 days post index","#PhenotypePhebruary, #2022, #DME",1,"Marcela V Rivera David Vizcaya","","","","","197320","https://forums.ohdsi.org/t/16067","2023-04-25","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,4,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,7,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +363,"[P][R] Joint stiffness ","Joint stiffness","Joint stiffness","rao@ohdsi.org","Pending peer review","","all events of Joint stiffness. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","72404, 72711","https://forums.ohdsi.org/t/17895","2023-05-30","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +364,"[P][R] Sleep disorder ","Sleep disorder","Sleep disorder","rao@ohdsi.org","Pending peer review","","all events of Sleep disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435524, 442588","https://forums.ohdsi.org/t/17895","2023-05-30","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +365,"[P] Dysuria","Dysuria","Dysuria","rao@ohdsi.org","Pending peer review","","all events of Dysuria","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197684, 4021780","https://forums.ohdsi.org/t/17895","2023-05-30","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +366,"[P] Streptococcal throat infection","Streptococcal throat infection","Streptococcal throat infection","rao@ohdsi.org","Pending peer review","","All events of Streptococcal throat infection","#respiratory",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","25297, 28060, 4226263","","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +367,"[P] Allergic Rhinitis","Allergic Rhinitis","Allergic Rhinitis","rao@ohdsi.org","Pending peer review","","All events of Allergic rhinitis","#respiratory",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 4320791","","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +368,"[P][R] Sinusitis ","Sinusitis","Sinusitis","rao@ohdsi.org","Pending peer review","","all events of Sinusitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","260123, 4283893","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +369,"[P][R] Allergic condition ","Allergic condition","Allergic condition","rao@ohdsi.org","Pending peer review","","all events of Allergic condition. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 43021227","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +370,"[P] Allergic disorder","Allergic disorder","Allergic disorder","rao@ohdsi.org","Pending peer review","","All events of Allergic Disorder","#symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007, 43021227","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +371,"[P] Claudication Pain","Claudication Pain","Claudication Pain","rao@ohdsi.org","Pending peer review","","all events of claudication pain","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","195834, 317309, 442774","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +372,"[P] Otitis media","Otitis media","Otitis media","rao@ohdsi.org","Pending peer review","","All events of Otitis media","#respiratory",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372328","","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +373,"[P] Iron deficiency Anemia","Iron deficiency Anemia","Iron deficiency Anemia","rao@ohdsi.org","Pending peer review","","all events of iron deficiency anemia","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439777","https://forums.ohdsi.org/t/17856","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +374,"[P][R] Drug dependence ","Drug dependence","Drug dependence","rao@ohdsi.org","Pending peer review","","all events of Drug dependence. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437264, 440069","","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +375,"[P] Gall stone disorder","Gall stone disorder","Gall stone disorder","rao@ohdsi.org","Pending peer review","","all events of Gall stone","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","444367, 4145627","","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +376,"[P][R] Bleeding skin ","Bleeding skin","Bleeding skin","rao@ohdsi.org","Pending peer review","","all events of Bleeding skin. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441259, 4177600",,"2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +377,"[P][R] Petechiae ","Petechiae","Petechiae","rao@ohdsi.org","Pending peer review","","all events of Petechiae. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4155911",,"2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +378,"[P][R] Purpuric disorder ","Purpuric disorder","Purpuric disorder","rao@ohdsi.org","Pending peer review","","all events of Purpuric disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441259, 4307580",,"2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +379,"[P] Ecchymosis","Ecchymosis","Ecchymosis","rao@ohdsi.org","Pending peer review","","all events of Ecchymosis anywhere","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438252, 4118793",,"2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +380,"[P][R] Jaundice ","Jaundice","Jaundice","rao@ohdsi.org","Pending peer review","","all events of Jaundice. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137977, 435656","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +381,"[P] Skin Itching","Skin Itching","Skin Itching","rao@ohdsi.org","Pending peer review","","events of skin itching","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133834, 133835, 135618, 4169287","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +382,"[P] Prurititc Rash","Prurititc Rash","Prurititc Rash","rao@ohdsi.org","Pending peer review","","events of pruritic rash","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","135618, 4169287","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +383,"[P] Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis","Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis","Eczematous Atopic Dermatitis and non hyperkeratotic dermatosis","rao@ohdsi.org","Pending peer review","","","#skin",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133834, 133835, 45766714","","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +384,"[P][R] Contact dermatitis ","Contact dermatitis","Contact dermatitis","rao@ohdsi.org","Pending peer review","","all events of Contact dermatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134438","","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +385,"[P][R] Intertrigo ","Intertrigo","Intertrigo","rao@ohdsi.org","Pending peer review","","all events of Intertrigo. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4242574","","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +386,"[P][R] Seborrheic dermatitis ","Seborrheic dermatitis","Seborrheic dermatitis","rao@ohdsi.org","Pending peer review","","all events of Seborrheic dermatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137053","","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +387,"[P][R] Photodermatitis ","Photodermatitis","Photodermatitis","rao@ohdsi.org","Pending peer review","","all events of Photodermatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4203600, 4239682, 4331304","","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +388,"[P][R] Peripheral neuritis ","Peripheral neuritis","Peripheral neuritis","rao@ohdsi.org","Pending peer review","","all events of Peripheral neuritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4027396","","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +389,"[P] Peripheral Neuropathy or Neuritits","Peripheral Neuropathy or Neuritits","Peripheral Neuropathy or Neuritits","rao@ohdsi.org","Pending peer review","","first occurrence of peripheral neuritis or neuropathy","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4027396, 4117779","","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +391,"[P] Hearing Loss","Hearing Loss","Hearing Loss","rao@ohdsi.org","Pending peer review","","all events of Hearing Loss","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377889","","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +392,"[P] Otalgia or Otitis","Otalgia or Otitis","Otalgia or Otitis","rao@ohdsi.org","Pending peer review","","All events of Otitis or Otalgia","#symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372328, 4183452","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +393,"[P] Low Back Pain or Injury","Low Back Pain or Injury","Low Back Pain or Injury","rao@ohdsi.org","Pending peer review","","all events of low back pain or injury","#Symptoms, #Pain",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312998, 4020345","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +394,"[P] Gastroesophageal reflux disease","Gastroesophageal reflux disease","Gastroesophageal reflux disease","rao@ohdsi.org","Pending peer review","","all events of Gastroesophageal reflux disease","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","23325, 318800, 4091509","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +395,"[P] Dysmenorrhea","Dysmenorrhea","Dysmenorrhea","rao@ohdsi.org","Pending peer review","","all events of Dysmenorrhea","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443431","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +396,"[P][R] Osteoarthritis ","Osteoarthritis","Osteoarthritis","rao@ohdsi.org","Pending peer review","","all events of Osteoarthritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80180, 4079750","","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +397,"[P][R] Hyperplasia of prostate ","Hyperplasia of prostate","Hyperplasia of prostate","rao@ohdsi.org","Pending peer review","","all events of Hyperplasia of prostate. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197032, 443211","","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +398,"[P] Bladder Outflow Obstruction","Bladder Outflow Obstruction","Bladder Outflow Obstruction","rao@ohdsi.org","Pending peer review","","All events of Bladder Outflow Obstruction","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194406, 443211","","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +399,"[P][R] Urolithiasis ","Urolithiasis","Urolithiasis","rao@ohdsi.org","Pending peer review","","all events of Urolithiasis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201620, 4319447","","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +400,"[P][R] Malignant tumor of prostate ","Malignant tumor of prostate","Malignant tumor of prostate","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of prostate. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200962, 4163261","","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +401,"[P] Uterine Fibroids or benign uterine tumors","Uterine Fibroids or benign uterine tumors","Uterine Fibroids or benign uterine tumors","rao@ohdsi.org","Pending peer review","","Uterine Fibroids","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197236, 201817","","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",1095,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +402,"[P] Ventilatory assist for respiratory findings with Acute Respiratory Failure","Ventilatory assist for respiratory findings with Acute Respiratory Failure","Ventilatory assist for respiratory findings with Acute Respiratory Failure","rao@ohdsi.org","Pending peer review","","all events of acute respiratory symptoms commonly seen in acute respiratory failure with procedures for ventilatory assist among persons with respiratory failure","#CriticalCare",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","255573, 4027553","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +403,"[P] Acute Respiratory Failure in inpatient or Emergency room","Acute Respiratory Failure in inpatient or Emergency room","Acute Respiratory Failure in inpatient or Emergency room","rao@ohdsi.org","Pending peer review","","all events of Acute Respiratory Failure in inpatient or Emergency room","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049","https://forums.ohdsi.org/t/17895","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,1,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +404,"[P] Ventricular Tachycardia, in an Inpatient or Emergency room setting","Ventricular Tachycardia, in an Inpatient or Emergency room setting","Ventricular Tachycardia, in an Inpatient or Emergency room setting","rao@ohdsi.org","Pending peer review","","Ventricular tachycardia with inpatient stay","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437579, 4103295","","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",7,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +405,"[P] Atrial Fibrillation or Flutter","Atrial Fibrillation or Flutter","Atrial Fibrillation or Flutter","rao@ohdsi.org","Pending peer review","","All events of Atrial Fibrillation or Flutter","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217","","2023-05-31","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +406,"[P][R] Intellectual disability ","Intellectual disability","Intellectual disability","rao@ohdsi.org","Pending peer review","","all events of Intellectual disability. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40277917","","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +407,"[P][R] Hemorrhoids ","Hemorrhoids","Hemorrhoids","rao@ohdsi.org","Pending peer review","","all events of Hemorrhoids. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","195562","","2023-05-31","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +410,"[P] Acute Urinary tract infections UTI","Acute Urinary tract infections UTI","Acute Urinary tract infections UTI","rao@ohdsi.org","Pending peer review","","","#Symptoms",1,"Stephen H. Fortin","","","","","81902","","2023-06-01","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +411,"[P] Sepsis or Septic Shock","Sepsis or Septic Shock","Sepsis or Septic Shock","rao@ohdsi.org","Pending peer review","","All events of Sepsis or Septic Shock","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132797","","2023-06-01","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +412,"Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W)","Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W)","Transverse myelitis indexed on diagnosis (1Ps, 0Era, 365W)","rao@ohdsi.org","Accepted","3.7.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","139803, 443904","https://forums.ohdsi.org/t/17769","2023-06-02","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +414,"[P] Acute Skin Eruption symptoms","Acute Skin Eruption symptoms","Acute Skin Eruption symptoms","rao@ohdsi.org","Pending peer review","","All events of certain skin eruption symptoms","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134438, 45766714","https://forums.ohdsi.org/t/17895","2023-06-02","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +415,"[P][R] Erythema of skin ","Erythema of skin","Erythema of skin","rao@ohdsi.org","Pending peer review","","all events of Erythema of skin. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4300442, 40481101","https://forums.ohdsi.org/t/17895","2023-06-02","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +416,"[P] Skin Rash","Skin Rash","Skin Rash","rao@ohdsi.org","Pending peer review","","All events of Skin Erythema","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","135618","https://forums.ohdsi.org/t/17895","2023-06-02","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +417,"[P] Acute gastrointestinal bleeding events","Acute gastrointestinal bleeding events","Acute gastrointestinal bleeding events","rao@ohdsi.org","Pending peer review","","all events of gastrointestinal bleed","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671","","2023-06-02","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +444,"[P][R] Neck pain","Neck pain","Neck pain","rao@ohdsi.org","Pending peer review","","all events of Neck pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24134","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +445,"[P][R] Hypoglycemia","Hypoglycemia","Hypoglycemia","rao@ohdsi.org","Pending peer review","","all events of Hypoglycemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","24609","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +446,"[P][R] Eosinophilic esophagitis","Eosinophilic esophagitis","Eosinophilic esophagitis","rao@ohdsi.org","Pending peer review","","all events of Eosinophilic esophagitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27918","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +447,"[P][R] Esophagitis","Esophagitis","Esophagitis","rao@ohdsi.org","Pending peer review","","all events of Esophagitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","30437, 30753","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +448,"[P][R] Dysphagia","Dysphagia","Dysphagia","rao@ohdsi.org","Pending peer review","","all events of Dysphagia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","31317","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +449,"[P][R] Nausea","Nausea","Nausea","rao@ohdsi.org","Pending peer review","","all events of Nausea. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27674, 31967","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +450,"[P][R] Constipation","Constipation","Constipation","rao@ohdsi.org","Pending peer review","","all events of Constipation. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","75860","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +451,"[P][R] Myasthenia gravis","Myasthenia gravis","Myasthenia gravis","rao@ohdsi.org","Pending peer review","","all events of Myasthenia gravis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","76685","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +452,"[P][R] Joint pain","Joint pain","Joint pain","rao@ohdsi.org","Pending peer review","","all events of Joint pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","77074, 78232","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +453,"[P][R] Osteoarthritis","Osteoarthritis","Osteoarthritis","rao@ohdsi.org","Pending peer review","","all events of Osteoarthritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80180, 4079750","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +454,"[P][R] Dermatomyositis","Dermatomyositis","Dermatomyositis","rao@ohdsi.org","Pending peer review","","all events of Dermatomyositis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80182","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +455,"[P][R] Fetal growth restriction","Fetal growth restriction","Fetal growth restriction","rao@ohdsi.org","Pending peer review","","all events of Fetal growth restriction. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","74469, 80204, 4145947","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +456,"[P][R] Osteoporosis","Osteoporosis","Osteoporosis","rao@ohdsi.org","Pending peer review","","all events of Osteoporosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80502","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +457,"[P][R] Rheumatoid arthritis","Rheumatoid arthritis","Rheumatoid arthritis","rao@ohdsi.org","Pending peer review","","all events of Rheumatoid arthritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","80809","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +458,"[P][R] Ulcerative colitis","Ulcerative colitis","Ulcerative colitis","rao@ohdsi.org","Pending peer review","","all events of Ulcerative colitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81893","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +459,"[P][R] Urinary tract infectious disease","Urinary tract infectious disease","Urinary tract infectious disease","rao@ohdsi.org","Pending peer review","","all events of Urinary tract infectious disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81902","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +460,"[P][R] Psoriasis with arthropathy","Psoriasis with arthropathy","Psoriasis with arthropathy","rao@ohdsi.org","Pending peer review","","all events of Psoriasis with arthropathy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","81931","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +461,"[P][R] Erythema multiforme","Erythema multiforme","Erythema multiforme","rao@ohdsi.org","Pending peer review","","all events of Erythema multiforme. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132702","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +462,"[P][R] Lichen planus","Lichen planus","Lichen planus","rao@ohdsi.org","Pending peer review","","all events of Lichen planus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132703","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +463,"[P][R] Sepsis","Sepsis","Sepsis","rao@ohdsi.org","Pending peer review","","all events of Sepsis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","132797","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +464,"[P][R] Myelofibrosis","Myelofibrosis","Myelofibrosis","rao@ohdsi.org","Pending peer review","","all events of Myelofibrosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133169","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +465,"[P][R] Thyroiditis","Thyroiditis","Thyroiditis","rao@ohdsi.org","Pending peer review","","all events of Thyroiditis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133444, 4281109","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +466,"[P][R] Atopic dermatitis","Atopic dermatitis","Atopic dermatitis","rao@ohdsi.org","Pending peer review","","all events of Atopic dermatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133834","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +467,"[P][R] Systemic sclerosis","Systemic sclerosis","Systemic sclerosis","rao@ohdsi.org","Pending peer review","","all events of Systemic sclerosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","134442","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +468,"[P][R] Pityriasis rubra pilaris","Pityriasis rubra pilaris","Pityriasis rubra pilaris","rao@ohdsi.org","Pending peer review","","all events of Pityriasis rubra pilaris. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","136774","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +469,"[P][R] Jaundice","Jaundice","Jaundice","rao@ohdsi.org","Pending peer review","","all events of Jaundice. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137977, 435656","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +470,"[P][R] Chronic lymphoid leukemia, disease","Chronic lymphoid leukemia, disease","Chronic lymphoid leukemia, disease","rao@ohdsi.org","Pending peer review","","all events of Chronic lymphoid leukemia, disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138379","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +471,"[P][R] Vitiligo","Vitiligo","Vitiligo","rao@ohdsi.org","Pending peer review","","all events of Vitiligo. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138502","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +472,"[P][R] Myelodysplastic syndrome (clinical)","Myelodysplastic syndrome (clinical)","Myelodysplastic syndrome (clinical)","rao@ohdsi.org","Pending peer review","","all events of Myelodysplastic syndrome (clinical). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138994","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +473,"[P][R] Acute transverse myelitis","Acute transverse myelitis","Acute transverse myelitis","rao@ohdsi.org","Pending peer review","","all events of Acute transverse myelitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139803","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +474,"[P][R] Pemphigoid","Pemphigoid","Pemphigoid","rao@ohdsi.org","Pending peer review","","all events of Pemphigoid. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","139899","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +475,"[P][R] Psoriasis","Psoriasis","Psoriasis","rao@ohdsi.org","Pending peer review","","all events of Psoriasis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140168","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +476,"[P][R] Acute myeloid leukemia, disease","Acute myeloid leukemia, disease","Acute myeloid leukemia, disease","rao@ohdsi.org","Pending peer review","","all events of Acute myeloid leukemia, disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140352","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +477,"[P][R] Hypothyroidism","Hypothyroidism","Hypothyroidism","rao@ohdsi.org","Pending peer review","","all events of Hypothyroidism. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","138384, 140673","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +478,"[P][R] Malignant melanoma of skin","Malignant melanoma of skin","Malignant melanoma of skin","rao@ohdsi.org","Pending peer review","","all events of Malignant melanoma of skin. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141232","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +479,"[P][R] Chilblains","Chilblains","Chilblains","rao@ohdsi.org","Pending peer review","","all events of Chilblains. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141456","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +480,"[P][R] Alopecia areata","Alopecia areata","Alopecia areata","rao@ohdsi.org","Pending peer review","","all events of Alopecia areata. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","141933","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +481,"[P][R] Renal failure syndrome","Renal failure syndrome","Renal failure syndrome","rao@ohdsi.org","Pending peer review","","all events of Renal failure syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192359, 193782","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +482,"[P][R] Gastrointestinal hemorrhage","Gastrointestinal hemorrhage","Gastrointestinal hemorrhage","rao@ohdsi.org","Pending peer review","","all events of Gastrointestinal hemorrhage. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +483,"[P][R] Biliary cirrhosis","Biliary cirrhosis","Biliary cirrhosis","rao@ohdsi.org","Pending peer review","","all events of Biliary cirrhosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192675","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +484,"[P][R] End-stage renal disease","End-stage renal disease","End-stage renal disease","rao@ohdsi.org","Pending peer review","","all events of End-stage renal disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","193782","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +485,"[P][R] Low back pain","Low back pain","Low back pain","rao@ohdsi.org","Pending peer review","","all events of Low back pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194133","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +486,"[P][R] Premature rupture of membranes","Premature rupture of membranes","Premature rupture of membranes","rao@ohdsi.org","Pending peer review","","all events of Premature rupture of membranes. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194702, 200160","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +487,"[P][R] Celiac disease","Celiac disease","Celiac disease","rao@ohdsi.org","Pending peer review","","all events of Celiac disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194992","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +488,"[P][R] Diarrhea","Diarrhea","Diarrhea","rao@ohdsi.org","Pending peer review","","all events of Diarrhea. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196523","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +489,"[P][R] Acute renal failure syndrome","Acute renal failure syndrome","Acute renal failure syndrome","rao@ohdsi.org","Pending peer review","","all events of Acute renal failure syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197320","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +490,"[P][R] Viral hepatitis C","Viral hepatitis C","Viral hepatitis C","rao@ohdsi.org","Pending peer review","","all events of Viral hepatitis C. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197494, 198964","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +491,"[P][R] Malignant tumor of urinary bladder","Malignant tumor of urinary bladder","Malignant tumor of urinary bladder","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of urinary bladder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196360, 197508","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +492,"[P][R] Cardiogenic shock","Cardiogenic shock","Cardiogenic shock","rao@ohdsi.org","Pending peer review","","all events of Cardiogenic shock. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198571","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +493,"[P][R] Malignant tumor of cervix","Malignant tumor of cervix","Malignant tumor of cervix","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of cervix. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196359, 198984","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +494,"[P][R] Primary malignant neoplasm of kidney","Primary malignant neoplasm of kidney","Primary malignant neoplasm of kidney","rao@ohdsi.org","Pending peer review","","all events of Primary malignant neoplasm of kidney. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198985","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +495,"[P][R] Acute pancreatitis","Acute pancreatitis","Acute pancreatitis","rao@ohdsi.org","Pending peer review","","all events of Acute pancreatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","199074","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +496,"[P][R] Abdominal pain","Abdominal pain","Abdominal pain","rao@ohdsi.org","Pending peer review","","all events of Abdominal pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200219","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +497,"[P][R] Autoimmune hepatitis","Autoimmune hepatitis","Autoimmune hepatitis","rao@ohdsi.org","Pending peer review","","all events of Autoimmune hepatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200762","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +498,"[P][R] Toxic shock syndrome","Toxic shock syndrome","Toxic shock syndrome","rao@ohdsi.org","Pending peer review","","all events of Toxic shock syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201214","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +499,"[P][R] Type 1 diabetes mellitus","Type 1 diabetes mellitus","Type 1 diabetes mellitus","rao@ohdsi.org","Pending peer review","","all events of Type 1 diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201254","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +500,"[P][R] Gastritis","Gastritis","Gastritis","rao@ohdsi.org","Pending peer review","","all events of Gastritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201340","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +501,"[P][R] Crohn's disease","Crohn's disease","Crohn's disease","rao@ohdsi.org","Pending peer review","","all events of Crohn's disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201606","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +502,"[P][R] Kidney stone","Kidney stone","Kidney stone","rao@ohdsi.org","Pending peer review","","all events of Kidney stone. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201620","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +503,"[P][R] Type 2 diabetes mellitus","Type 2 diabetes mellitus","Type 2 diabetes mellitus","rao@ohdsi.org","Pending peer review","","all events of Type 2 diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","201826","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +504,"[P][R] Sjögren's syndrome","Sjögren's syndrome","Sjögren's syndrome","rao@ohdsi.org","Pending peer review","","all events of Sjögren's syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254443","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +505,"[P][R] Cough","Cough","Cough","rao@ohdsi.org","Pending peer review","","all events of Cough. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254761","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +506,"[P][R] Chronic obstructive lung disease","Chronic obstructive lung disease","Chronic obstructive lung disease","rao@ohdsi.org","Pending peer review","","all events of Chronic obstructive lung disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","255573","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +507,"[P][R] Pneumonia","Pneumonia","Pneumonia","rao@ohdsi.org","Pending peer review","","all events of Pneumonia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","255848","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +508,"[P][R] Allergic rhinitis","Allergic rhinitis","Allergic rhinitis","rao@ohdsi.org","Pending peer review","","all events of Allergic rhinitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257007","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +509,"[P][R] Systemic lupus erythematosus","Systemic lupus erythematosus","Systemic lupus erythematosus","rao@ohdsi.org","Pending peer review","","all events of Systemic lupus erythematosus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","257628","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +510,"[P][R] Acute myocardial infarction","Acute myocardial infarction","Acute myocardial infarction","rao@ohdsi.org","Pending peer review","","all events of Acute myocardial infarction. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312327, 444406","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +511,"[P][R] Dyspnea","Dyspnea","Dyspnea","rao@ohdsi.org","Pending peer review","","all events of Dyspnea. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312437","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +512,"[P][R] Thromboangiitis obliterans","Thromboangiitis obliterans","Thromboangiitis obliterans","rao@ohdsi.org","Pending peer review","","all events of Thromboangiitis obliterans. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312939","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +513,"[P][R] Atrial fibrillation","Atrial fibrillation","Atrial fibrillation","rao@ohdsi.org","Pending peer review","","all events of Atrial fibrillation. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +514,"[P][R] Granulomatosis with polyangiitis","Granulomatosis with polyangiitis","Granulomatosis with polyangiitis","rao@ohdsi.org","Pending peer review","","all events of Granulomatosis with polyangiitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313223","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +515,"[P][R] Sleep apnea","Sleep apnea","Sleep apnea","rao@ohdsi.org","Pending peer review","","all events of Sleep apnea. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313459, 442588","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +516,"[P][R] Thrombotic microangiopathy","Thrombotic microangiopathy","Thrombotic microangiopathy","rao@ohdsi.org","Pending peer review","","all events of Thrombotic microangiopathy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313800","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +517,"[P][R] Acute febrile mucocutaneous lymph node syndrome","Acute febrile mucocutaneous lymph node syndrome","Acute febrile mucocutaneous lymph node syndrome","rao@ohdsi.org","Pending peer review","","all events of Acute febrile mucocutaneous lymph node syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314381","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +518,"[P][R] Myocarditis","Myocarditis","Myocarditis","rao@ohdsi.org","Pending peer review","","all events of Myocarditis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","314383","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +519,"[P][R] Heart failure","Heart failure","Heart failure","rao@ohdsi.org","Pending peer review","","all events of Heart failure. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","316139, 319835","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +520,"[P][R] Hypertensive disorder","Hypertensive disorder","Hypertensive disorder","rao@ohdsi.org","Pending peer review","","all events of Hypertensive disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","312648, 316866, 4028741","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +521,"[P][R] Asthma","Asthma","Asthma","rao@ohdsi.org","Pending peer review","","all events of Asthma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317009","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +522,"[P][R] Coronary arteriosclerosis","Coronary arteriosclerosis","Coronary arteriosclerosis","rao@ohdsi.org","Pending peer review","","all events of Coronary arteriosclerosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","317576, 764123","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +523,"[P][R] Arteriosclerotic vascular disease","Arteriosclerotic vascular disease","Arteriosclerotic vascular disease","rao@ohdsi.org","Pending peer review","","all events of Arteriosclerotic vascular disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318443, 764123","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +524,"[P][R] Migraine","Migraine","Migraine","rao@ohdsi.org","Pending peer review","","all events of Migraine. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318736","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +525,"[P][R] Gastroesophageal reflux disease","Gastroesophageal reflux disease","Gastroesophageal reflux disease","rao@ohdsi.org","Pending peer review","","all events of Gastroesophageal reflux disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","318800","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +526,"[P][R] Orthostatic hypotension","Orthostatic hypotension","Orthostatic hypotension","rao@ohdsi.org","Pending peer review","","all events of Orthostatic hypotension. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319041","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +527,"[P][R] Acute respiratory failure","Acute respiratory failure","Acute respiratory failure","rao@ohdsi.org","Pending peer review","","all events of Acute respiratory failure. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +528,"[P][R] Polyarteritis nodosa","Polyarteritis nodosa","Polyarteritis nodosa","rao@ohdsi.org","Pending peer review","","all events of Polyarteritis nodosa. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320749","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +529,"[P][R] Cardiac arrest","Cardiac arrest","Cardiac arrest","rao@ohdsi.org","Pending peer review","","all events of Cardiac arrest. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321042","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +530,"[P][R] Peripheral vascular disease","Peripheral vascular disease","Peripheral vascular disease","rao@ohdsi.org","Pending peer review","","all events of Peripheral vascular disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321052","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +531,"[P][R] Angina pectoris","Angina pectoris","Angina pectoris","rao@ohdsi.org","Pending peer review","","all events of Angina pectoris. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321318","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +532,"[P][R] Heart disease","Heart disease","Heart disease","rao@ohdsi.org","Pending peer review","","all events of Heart disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 321588, 44784217","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +533,"[P][R] Otitis media","Otitis media","Otitis media","rao@ohdsi.org","Pending peer review","","all events of Otitis media. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","372328","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +534,"[P][R] Transient cerebral ischemia","Transient cerebral ischemia","Transient cerebral ischemia","rao@ohdsi.org","Pending peer review","","all events of Transient cerebral ischemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","373503","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +535,"[P][R] Acute disseminated encephalomyelitis","Acute disseminated encephalomyelitis","Acute disseminated encephalomyelitis","rao@ohdsi.org","Pending peer review","","all events of Acute disseminated encephalomyelitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374021","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +536,"[P][R] Age related macular degeneration","Age related macular degeneration","Age related macular degeneration","rao@ohdsi.org","Pending peer review","","all events of Age related macular degeneration. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374028, 376966","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +537,"[P][R] Sensorineural hearing loss","Sensorineural hearing loss","Sensorineural hearing loss","rao@ohdsi.org","Pending peer review","","all events of Sensorineural hearing loss. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374366, 4110815","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +538,"[P][R] Paralytic syndrome","Paralytic syndrome","Paralytic syndrome","rao@ohdsi.org","Pending peer review","","all events of Paralytic syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374377, 4134120","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +539,"[P][R] Multiple sclerosis","Multiple sclerosis","Multiple sclerosis","rao@ohdsi.org","Pending peer review","","all events of Multiple sclerosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374919","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +540,"[P][R] Optic neuritis","Optic neuritis","Optic neuritis","rao@ohdsi.org","Pending peer review","","all events of Optic neuritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374954","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +541,"[P][R] Idiopathic peripheral neuropathy","Idiopathic peripheral neuropathy","Idiopathic peripheral neuropathy","rao@ohdsi.org","Pending peer review","","all events of Idiopathic peripheral neuropathy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","375806","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +542,"[P][R] Cerebral hemorrhage","Cerebral hemorrhage","Cerebral hemorrhage","rao@ohdsi.org","Pending peer review","","all events of Cerebral hemorrhage. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376713","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +543,"[P][R] Seizure","Seizure","Seizure","rao@ohdsi.org","Pending peer review","","all events of Seizure. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377091","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +544,"[P][R] Encephalitis","Encephalitis","Encephalitis","rao@ohdsi.org","Pending peer review","","all events of Encephalitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378143, 380941","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +545,"[P][R] Headache","Headache","Headache","rao@ohdsi.org","Pending peer review","","all events of Headache. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378253","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +546,"[P][R] Retinal detachment","Retinal detachment","Retinal detachment","rao@ohdsi.org","Pending peer review","","all events of Retinal detachment. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","378414","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +547,"[P][R] Retinal disorder","Retinal disorder","Retinal disorder","rao@ohdsi.org","Pending peer review","","all events of Retinal disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376966, 378416, 4116208","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +549,"[P][R] Epilepsy","Epilepsy","Epilepsy","rao@ohdsi.org","Pending peer review","","all events of Epilepsy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","380378","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +550,"[P][R] Chronic inflammatory demyelinating polyradiculoneuropathy","Chronic inflammatory demyelinating polyradiculoneuropathy","Chronic inflammatory demyelinating polyradiculoneuropathy","rao@ohdsi.org","Pending peer review","","all events of Chronic inflammatory demyelinating polyradiculoneuropathy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381009","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +551,"[P][R] Microcephaly","Microcephaly","Microcephaly","rao@ohdsi.org","Pending peer review","","all events of Microcephaly. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381114,606878","","2023-06-25","2023-09-22",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +552,"[P][R] Parkinson's disease","Parkinson's disease","Parkinson's disease","rao@ohdsi.org","Pending peer review","","all events of Parkinson's disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381270","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +553,"[P][R] Cerebrovascular accident","Cerebrovascular accident","Cerebrovascular accident","rao@ohdsi.org","Pending peer review","","all events of Cerebrovascular accident. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381316","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +554,"[P][R] Cerebrovascular disease","Cerebrovascular disease","Cerebrovascular disease","rao@ohdsi.org","Pending peer review","","all events of Cerebrovascular disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","381591, 4288310","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +555,"[P][R] Blood coagulation disorder","Blood coagulation disorder","Blood coagulation disorder","rao@ohdsi.org","Pending peer review","","all events of Blood coagulation disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432585","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +556,"[P][R] Amyloidosis","Amyloidosis","Amyloidosis","rao@ohdsi.org","Pending peer review","","all events of Amyloidosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432595","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +557,"[P][R] Angioedema","Angioedema","Angioedema","rao@ohdsi.org","Pending peer review","","all events of Angioedema. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432791","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +558,"[P][R] Hyperlipidemia","Hyperlipidemia","Hyperlipidemia","rao@ohdsi.org","Pending peer review","","all events of Hyperlipidemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432867","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +559,"[P][R] Thrombocytopenic disorder","Thrombocytopenic disorder","Thrombocytopenic disorder","rao@ohdsi.org","Pending peer review","","all events of Thrombocytopenic disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432870","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +560,"[P][R] Pancytopenia","Pancytopenia","Pancytopenia","rao@ohdsi.org","Pending peer review","","all events of Pancytopenia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432881","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +561,"[P][R] Myasthenic syndrome due to another disorder","Myasthenic syndrome due to another disorder","Myasthenic syndrome due to another disorder","rao@ohdsi.org","Pending peer review","","all events of Myasthenic syndrome due to another disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432893","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +562,"[P][R] Edema","Edema","Edema","rao@ohdsi.org","Pending peer review","","all events of Edema. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433595","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +563,"[P][R] Obesity","Obesity","Obesity","rao@ohdsi.org","Pending peer review","","all events of Obesity. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433736","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +564,"[P][R] Hidradenitis","Hidradenitis","Hidradenitis","rao@ohdsi.org","Pending peer review","","all events of Hidradenitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434119","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +565,"[P][R] Tuberculosis","Tuberculosis","Tuberculosis","rao@ohdsi.org","Pending peer review","","all events of Tuberculosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","253954, 434557","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +566,"[P][R] Kaposi's sarcoma (clinical)","Kaposi's sarcoma (clinical)","Kaposi's sarcoma (clinical)","rao@ohdsi.org","Pending peer review","","all events of Kaposi's sarcoma (clinical). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434584","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +567,"[P][R] B-cell lymphoma (clinical)","B-cell lymphoma (clinical)","B-cell lymphoma (clinical)","rao@ohdsi.org","Pending peer review","","all events of B-cell lymphoma (clinical). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434592, 4300704","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +568,"[P][R] Hyperkalemia","Hyperkalemia","Hyperkalemia","rao@ohdsi.org","Pending peer review","","all events of Hyperkalemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434610","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +569,"[P][R] Systemic inflammatory response syndrome","Systemic inflammatory response syndrome","Systemic inflammatory response syndrome","rao@ohdsi.org","Pending peer review","","all events of Systemic inflammatory response syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434821","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +570,"[P][R] Leukopenia","Leukopenia","Leukopenia","rao@ohdsi.org","Pending peer review","","all events of Leukopenia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","432881, 435224","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +571,"[P][R] Schizophrenia","Schizophrenia","Schizophrenia","rao@ohdsi.org","Pending peer review","","all events of Schizophrenia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435783","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +572,"[P][R] Psychotic disorder","Psychotic disorder","Psychotic disorder","rao@ohdsi.org","Pending peer review","","all events of Psychotic disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435783, 436073","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +573,"[P][R] Chronic pain","Chronic pain","Chronic pain","rao@ohdsi.org","Pending peer review","","all events of Chronic pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436096","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +574,"[P][R] Narcolepsy","Narcolepsy","Narcolepsy","rao@ohdsi.org","Pending peer review","","all events of Narcolepsy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436100","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +575,"[P][R] Behcet's syndrome","Behcet's syndrome","Behcet's syndrome","rao@ohdsi.org","Pending peer review","","all events of Behcet's syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436642","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +576,"[P][R] Bipolar disorder","Bipolar disorder","Bipolar disorder","rao@ohdsi.org","Pending peer review","","all events of Bipolar disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436665","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +577,"[P][R] Posttraumatic stress disorder","Posttraumatic stress disorder","Posttraumatic stress disorder","rao@ohdsi.org","Pending peer review","","all events of Posttraumatic stress disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436676","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +578,"[P][R] Insomnia","Insomnia","Insomnia","rao@ohdsi.org","Pending peer review","","all events of Insomnia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","436962","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +579,"[P][R] Ankylosing spondylitis","Ankylosing spondylitis","Ankylosing spondylitis","rao@ohdsi.org","Pending peer review","","all events of Ankylosing spondylitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437082","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +580,"[P][R] Respiratory syncytial virus infection","Respiratory syncytial virus infection","Respiratory syncytial virus infection","rao@ohdsi.org","Pending peer review","","all events of Respiratory syncytial virus infection. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","254058, 437222","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +581,"[P][R] Multiple myeloma","Multiple myeloma","Multiple myeloma","rao@ohdsi.org","Pending peer review","","all events of Multiple myeloma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437233","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +582,"[P][R] Bleeding","Bleeding","Bleeding","rao@ohdsi.org","Pending peer review","","all events of Bleeding. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192671, 437312","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +583,"[P][R] Glaucoma","Glaucoma","Glaucoma","rao@ohdsi.org","Pending peer review","","all events of Glaucoma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435262, 437541","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +584,"[P][R] Fever","Fever","Fever","rao@ohdsi.org","Pending peer review","","all events of Fever. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437663","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +585,"[P][R] Hypokalemia","Hypokalemia","Hypokalemia","rao@ohdsi.org","Pending peer review","","all events of Hypokalemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437833","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +586,"[P][R] Opioid dependence","Opioid dependence","Opioid dependence","rao@ohdsi.org","Pending peer review","","all events of Opioid dependence. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438120","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +587,"[P][R] Opioid abuse","Opioid abuse","Opioid abuse","rao@ohdsi.org","Pending peer review","","all events of Opioid abuse. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438130","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +588,"[P][R] Attention deficit hyperactivity disorder","Attention deficit hyperactivity disorder","Attention deficit hyperactivity disorder","rao@ohdsi.org","Pending peer review","","all events of Attention deficit hyperactivity disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","438409","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +589,"[P][R] Pre-eclampsia","Pre-eclampsia","Pre-eclampsia","rao@ohdsi.org","Pending peer review","","all events of Pre-eclampsia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439393","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +590,"[P][R] Human immunodeficiency virus infection","Human immunodeficiency virus infection","Human immunodeficiency virus infection","rao@ohdsi.org","Pending peer review","","all events of Human immunodeficiency virus infection. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439727","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +591,"[P][R] Autism spectrum disorder","Autism spectrum disorder","Autism spectrum disorder","rao@ohdsi.org","Pending peer review","","all events of Autism spectrum disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439776, 439780","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +592,"[P][R] Anemia","Anemia","Anemia","rao@ohdsi.org","Pending peer review","","all events of Anemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439777","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +593,"[P][R] Paralysis","Paralysis","Paralysis","rao@ohdsi.org","Pending peer review","","all events of Paralysis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 440377","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +594,"[P][R] Depressive disorder","Depressive disorder","Depressive disorder","rao@ohdsi.org","Pending peer review","","all events of Depressive disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440383","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +595,"[P][R] Pulmonary embolism","Pulmonary embolism","Pulmonary embolism","rao@ohdsi.org","Pending peer review","","all events of Pulmonary embolism. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440417, 43530605","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +596,"[P][R] Gout","Gout","Gout","rao@ohdsi.org","Pending peer review","","all events of Gout. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440674","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +597,"[P][R] Takayasu's disease","Takayasu's disease","Takayasu's disease","rao@ohdsi.org","Pending peer review","","all events of Takayasu's disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440740","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +598,"[P][R] Methicillin resistant Staphylococcus aureus infection","Methicillin resistant Staphylococcus aureus infection","Methicillin resistant Staphylococcus aureus infection","rao@ohdsi.org","Pending peer review","","all events of Methicillin resistant Staphylococcus aureus infection. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440940","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +599,"[P][R] Anaphylaxis","Anaphylaxis","Anaphylaxis","rao@ohdsi.org","Pending peer review","","all events of Anaphylaxis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441202","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +600,"[P][R] Open-angle glaucoma","Open-angle glaucoma","Open-angle glaucoma","rao@ohdsi.org","Pending peer review","","all events of Open-angle glaucoma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","435262, 441284","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +601,"[P][R] Vomiting","Vomiting","Vomiting","rao@ohdsi.org","Pending peer review","","all events of Vomiting. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","27674, 441408","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +602,"[P][R] Anxiety","Anxiety","Anxiety","rao@ohdsi.org","Pending peer review","","all events of Anxiety. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","441542, 442077","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +603,"[P][R] Human papilloma virus infection","Human papilloma virus infection","Human papilloma virus infection","rao@ohdsi.org","Pending peer review","","all events of Human papilloma virus infection. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","140641, 441788","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +604,"[P][R] Cranial nerve disorder","Cranial nerve disorder","Cranial nerve disorder","rao@ohdsi.org","Pending peer review","","all events of Cranial nerve disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 441848","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +605,"[P][R] Muscle pain","Muscle pain","Muscle pain","rao@ohdsi.org","Pending peer review","","all events of Muscle pain. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","442752","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +606,"[P][R] Stillbirth","Stillbirth","Stillbirth","rao@ohdsi.org","Pending peer review","","all events of Stillbirth. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443213, 4014454","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +607,"[P][R] Malignant tumor of stomach","Malignant tumor of stomach","Malignant tumor of stomach","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of stomach. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","196044, 443387","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +608,"[P][R] Malignant neoplastic disease","Malignant neoplastic disease","Malignant neoplastic disease","rao@ohdsi.org","Pending peer review","","all events of Malignant neoplastic disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137809, 443392","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +609,"[P][R] Cerebral infarction","Cerebral infarction","Cerebral infarction","rao@ohdsi.org","Pending peer review","","all events of Cerebral infarction. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443454","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +610,"[P][R] Eclampsia","Eclampsia","Eclampsia","rao@ohdsi.org","Pending peer review","","all events of Eclampsia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443700, 4116344","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +611,"[P][R] Diabetic ketoacidosis","Diabetic ketoacidosis","Diabetic ketoacidosis","rao@ohdsi.org","Pending peer review","","all events of Diabetic ketoacidosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","443727, 4009303","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +612,"[P][R] Acute tubular necrosis","Acute tubular necrosis","Acute tubular necrosis","rao@ohdsi.org","Pending peer review","","all events of Acute tubular necrosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","444044","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +613,"[P][R] Tachycardia","Tachycardia","Tachycardia","rao@ohdsi.org","Pending peer review","","all events of Tachycardia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 444070","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +614,"[P][R] Venous thrombosis","Venous thrombosis","Venous thrombosis","rao@ohdsi.org","Pending peer review","","all events of Venous thrombosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","444247, 43531681","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +615,"[P][R] Herpes simplex","Herpes simplex","Herpes simplex","rao@ohdsi.org","Pending peer review","","all events of Herpes simplex. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440021, 444429","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +616,"[P][R] Acute arthritis","Acute arthritis","Acute arthritis","rao@ohdsi.org","Pending peer review","","all events of Acute arthritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433000, 4000634","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +617,"[P][R] Monoclonal gammopathy (clinical)","Monoclonal gammopathy (clinical)","Monoclonal gammopathy (clinical)","rao@ohdsi.org","Pending peer review","","all events of Monoclonal gammopathy (clinical). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4002359","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +618,"[P][R] Pulmonary arterial hypertension","Pulmonary arterial hypertension","Pulmonary arterial hypertension","rao@ohdsi.org","Pending peer review","","all events of Pulmonary arterial hypertension. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4013643, 44783618","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +619,"[P][R] Gestational diabetes mellitus","Gestational diabetes mellitus","Gestational diabetes mellitus","rao@ohdsi.org","Pending peer review","","all events of Gestational diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4024659","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +620,"[P][R] Uveitis","Uveitis","Uveitis","rao@ohdsi.org","Pending peer review","","all events of Uveitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434926, 4028363","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +621,"[P][R] Renal impairment","Renal impairment","Renal impairment","rao@ohdsi.org","Pending peer review","","all events of Renal impairment. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","193782, 4030518","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +622,"[P][R] Non-Hodgkin's lymphoma (clinical)","Non-Hodgkin's lymphoma (clinical)","Non-Hodgkin's lymphoma (clinical)","rao@ohdsi.org","Pending peer review","","all events of Non-Hodgkin's lymphoma (clinical). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4038838, 4300704","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +623,"[P][R] Motor neuropathy with multiple conduction block","Motor neuropathy with multiple conduction block","Motor neuropathy with multiple conduction block","rao@ohdsi.org","Pending peer review","","all events of Motor neuropathy with multiple conduction block. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4046338","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +624,"[P][R] Primary sclerosing cholangitis","Primary sclerosing cholangitis","Primary sclerosing cholangitis","rao@ohdsi.org","Pending peer review","","all events of Primary sclerosing cholangitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4058821","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +625,"[P][R] Pustular psoriasis","Pustular psoriasis","Pustular psoriasis","rao@ohdsi.org","Pending peer review","","all events of Pustular psoriasis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4063434, 4100184","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +626,"[P][R] Cirrhosis of liver","Cirrhosis of liver","Cirrhosis of liver","rao@ohdsi.org","Pending peer review","","all events of Cirrhosis of liver. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194692, 4064161","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +627,"[P][R] Miscarriage","Miscarriage","Miscarriage","rao@ohdsi.org","Pending peer review","","all events of Miscarriage. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","76482, 4067106","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +628,"[P][R] Fisher's syndrome","Fisher's syndrome","Fisher's syndrome","rao@ohdsi.org","Pending peer review","","all events of Fisher's syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4070552","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +629,"[P][R] Inflammatory bowel disease","Inflammatory bowel disease","Inflammatory bowel disease","rao@ohdsi.org","Pending peer review","","all events of Inflammatory bowel disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","195585, 4074815","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +630,"[P][R] Facial palsy","Facial palsy","Facial palsy","rao@ohdsi.org","Pending peer review","","all events of Facial palsy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","374923, 4091559","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +631,"[P][R] Livebirth","Livebirth","Livebirth","rao@ohdsi.org","Pending peer review","","all events of Livebirth. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4014295, 4092289","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +632,"[P][R] Antiphospholipid syndrome","Antiphospholipid syndrome","Antiphospholipid syndrome","rao@ohdsi.org","Pending peer review","","all events of Antiphospholipid syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4098292","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +633,"[P][R] Waldenström macroglobulinemia","Waldenström macroglobulinemia","Waldenström macroglobulinemia","rao@ohdsi.org","Pending peer review","","all events of Waldenström macroglobulinemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4098597","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +634,"[P][R] Immunoglobulin A vasculitis","Immunoglobulin A vasculitis","Immunoglobulin A vasculitis","rao@ohdsi.org","Pending peer review","","all events of Immunoglobulin A vasculitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4101602","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +635,"[P][R] Ventricular tachycardia","Ventricular tachycardia","Ventricular tachycardia","rao@ohdsi.org","Pending peer review","","all events of Ventricular tachycardia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437579, 4103295","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +636,"[P][R] Malignant tumor of breast","Malignant tumor of breast","Malignant tumor of breast","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of breast. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137809, 4112853","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +637,"[P][R] Peripheral ischemia","Peripheral ischemia","Peripheral ischemia","rao@ohdsi.org","Pending peer review","","all events of Peripheral ischemia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4124836, 4291464","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +638,"[P][R] Neoplasm of thyroid gland","Neoplasm of thyroid gland","Neoplasm of thyroid gland","rao@ohdsi.org","Pending peer review","","all events of Neoplasm of thyroid gland. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","133424, 4131909","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +639,"[P][R] Deep venous thrombosis","Deep venous thrombosis","Deep venous thrombosis","rao@ohdsi.org","Pending peer review","","all events of Deep venous thrombosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4133004, 43531681","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +640,"[P][R] Vasculitis","Vasculitis","Vasculitis","rao@ohdsi.org","Pending peer review","","all events of Vasculitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","199856, 4137275","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +641,"[P][R] Pericarditis","Pericarditis","Pericarditis","rao@ohdsi.org","Pending peer review","","all events of Pericarditis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","320116, 4138837","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +642,"[P][R] Immune reconstitution syndrome","Immune reconstitution syndrome","Immune reconstitution syndrome","rao@ohdsi.org","Pending peer review","","all events of Immune reconstitution syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4139034","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +643,"[P][R] Follicular non-Hodgkin's lymphoma","Follicular non-Hodgkin's lymphoma","Follicular non-Hodgkin's lymphoma","rao@ohdsi.org","Pending peer review","","all events of Follicular non-Hodgkin's lymphoma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4147411","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +644,"[P][R] Malignant tumor of prostate","Malignant tumor of prostate","Malignant tumor of prostate","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of prostate. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200962, 4163261","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +645,"[P][R] Guillain-Barré syndrome","Guillain-Barré syndrome","Guillain-Barré syndrome","rao@ohdsi.org","Pending peer review","","all events of Guillain-Barré syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4164770","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +646,"[P][R] Bradycardia","Bradycardia","Bradycardia","rao@ohdsi.org","Pending peer review","","all events of Bradycardia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4169095","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +647,"[P][R] Retinopathy due to diabetes mellitus","Retinopathy due to diabetes mellitus","Retinopathy due to diabetes mellitus","rao@ohdsi.org","Pending peer review","","all events of Retinopathy due to diabetes mellitus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376683, 4174977","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +648,"[P][R] Malignant tumor of colon","Malignant tumor of colon","Malignant tumor of colon","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of colon. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","197500, 4180790","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +649,"[P][R] Malignant tumor of esophagus","Malignant tumor of esophagus","Malignant tumor of esophagus","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of esophagus. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","26638, 4181343","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +650,"[P][R] Malignant tumor of ovary","Malignant tumor of ovary","Malignant tumor of ovary","rao@ohdsi.org","Pending peer review","","all events of Malignant tumor of ovary. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200051, 4181351","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +651,"[P][R] Dementia","Dementia","Dementia","rao@ohdsi.org","Pending peer review","","all events of Dementia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4182210","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +652,"[P][R] Vasculitis of the skin","Vasculitis of the skin","Vasculitis of the skin","rao@ohdsi.org","Pending peer review","","all events of Vasculitis of the skin. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4182711","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +653,"[P][R] Loss of sense of smell","Loss of sense of smell","Loss of sense of smell","rao@ohdsi.org","Pending peer review","","all events of Loss of sense of smell. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4185711","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +654,"[P][R] Ischemic heart disease","Ischemic heart disease","Ischemic heart disease","rao@ohdsi.org","Pending peer review","","all events of Ischemic heart disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","321318, 4185932","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +655,"[P][R] Aseptic meningitis","Aseptic meningitis","Aseptic meningitis","rao@ohdsi.org","Pending peer review","","all events of Aseptic meningitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434869, 4201096","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +656,"[P][R] Fatigue","Fatigue","Fatigue","rao@ohdsi.org","Pending peer review","","all events of Fatigue. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","437113, 4223659","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +657,"[P][R] Paresthesia","Paresthesia","Paresthesia","rao@ohdsi.org","Pending peer review","","all events of Paresthesia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4236484","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +658,"[P][R] Hepatic failure","Hepatic failure","Hepatic failure","rao@ohdsi.org","Pending peer review","","all events of Hepatic failure. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4245975","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +659,"[P][R] Malignant neoplasm of liver","Malignant neoplasm of liver","Malignant neoplasm of liver","rao@ohdsi.org","Pending peer review","","all events of Malignant neoplasm of liver. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","198700, 4246127","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +660,"[P][R] Juvenile rheumatoid arthritis","Juvenile rheumatoid arthritis","Juvenile rheumatoid arthritis","rao@ohdsi.org","Pending peer review","","all events of Juvenile rheumatoid arthritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","72714, 4253901","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +661,"[P][R] Respiratory failure","Respiratory failure","Respiratory failure","rao@ohdsi.org","Pending peer review","","all events of Respiratory failure. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","319049, 4256228","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +662,"[P][R] Diverticulitis of large intestine","Diverticulitis of large intestine","Diverticulitis of large intestine","rao@ohdsi.org","Pending peer review","","all events of Diverticulitis of large intestine. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","77025, 4260535","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +663,"[P][R] Influenza","Influenza","Influenza","rao@ohdsi.org","Pending peer review","","all events of Influenza. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4183609, 4266367","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +664,"[P][R] Malaise","Malaise","Malaise","rao@ohdsi.org","Pending peer review","","all events of Malaise. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439926, 4272240","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +665,"[P][R] Suicidal thoughts","Suicidal thoughts","Suicidal thoughts","rao@ohdsi.org","Pending peer review","","all events of Suicidal thoughts. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4273391","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +666,"[P][R] Type B viral hepatitis","Type B viral hepatitis","Type B viral hepatitis","rao@ohdsi.org","Pending peer review","","all events of Type B viral hepatitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439674, 4281232","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +667,"[P][R] Guttate psoriasis","Guttate psoriasis","Guttate psoriasis","rao@ohdsi.org","Pending peer review","","all events of Guttate psoriasis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4284492","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +668,"[P][R] SLE glomerulonephritis syndrome","SLE glomerulonephritis syndrome","SLE glomerulonephritis syndrome","rao@ohdsi.org","Pending peer review","","all events of SLE glomerulonephritis syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4285717","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +669,"[P][R] Schizoaffective disorder","Schizoaffective disorder","Schizoaffective disorder","rao@ohdsi.org","Pending peer review","","all events of Schizoaffective disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4286201","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +670,"[P][R] Temporal arteritis","Temporal arteritis","Temporal arteritis","rao@ohdsi.org","Pending peer review","","all events of Temporal arteritis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4290976, 4343935","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +671,"[P][R] Pregnant","Pregnant","Pregnant","rao@ohdsi.org","Pending peer review","","all events of Pregnant. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4299535","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +672,"[P][R] Sense of smell impaired","Sense of smell impaired","Sense of smell impaired","rao@ohdsi.org","Pending peer review","","all events of Sense of smell impaired. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4307095","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +673,"[P][R] Primary malignant neoplasm of respiratory tract","Primary malignant neoplasm of respiratory tract","Primary malignant neoplasm of respiratory tract","rao@ohdsi.org","Pending peer review","","all events of Primary malignant neoplasm of respiratory tract. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4311499","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +674,"[P][R] Degeneration of retina","Degeneration of retina","Degeneration of retina","rao@ohdsi.org","Pending peer review","","all events of Degeneration of retina. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376966, 4318985","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +675,"[P][R] Pulmonary hypertension","Pulmonary hypertension","Pulmonary hypertension","rao@ohdsi.org","Pending peer review","","all events of Pulmonary hypertension. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4322024, 4339214","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +676,"[P][R] Necrosis of artery","Necrosis of artery","Necrosis of artery","rao@ohdsi.org","Pending peer review","","all events of Necrosis of artery. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4344489,320749,319047","","2023-06-25","2023-09-22",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +677,"[P][R] Preterm labor with preterm delivery","Preterm labor with preterm delivery","Preterm labor with preterm delivery","rao@ohdsi.org","Pending peer review","","all events of Preterm labor with preterm delivery. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","36712702, 45757176","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +678,"[P][R] COVID-19","COVID-19","COVID-19","rao@ohdsi.org","Pending peer review","","all events of COVID-19. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","37311061","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +679,"[P][R] Takotsubo cardiomyopathy","Takotsubo cardiomyopathy","Takotsubo cardiomyopathy","rao@ohdsi.org","Pending peer review","","all events of Takotsubo cardiomyopathy. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40479589","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +680,"[P][R] Mantle cell lymphoma","Mantle cell lymphoma","Mantle cell lymphoma","rao@ohdsi.org","Pending peer review","","all events of Mantle cell lymphoma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40481901","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +681,"[P][R] Malignant neoplasm of anorectum","Malignant neoplasm of anorectum","Malignant neoplasm of anorectum","rao@ohdsi.org","Pending peer review","","all events of Malignant neoplasm of anorectum. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","74582, 40481902","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +682,"[P][R] Marginal zone lymphoma","Marginal zone lymphoma","Marginal zone lymphoma","rao@ohdsi.org","Pending peer review","","all events of Marginal zone lymphoma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","40490918","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +683,"[P][R] Antineutrophil cytoplasmic antibody positive vasculitis","Antineutrophil cytoplasmic antibody positive vasculitis","Antineutrophil cytoplasmic antibody positive vasculitis","rao@ohdsi.org","Pending peer review","","all events of Antineutrophil cytoplasmic antibody positive vasculitis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313223, 42535714","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +684,"[P][R] Sensory disorder of smell and/or taste","Sensory disorder of smell and/or taste","Sensory disorder of smell and/or taste","rao@ohdsi.org","Pending peer review","","all events of Sensory disorder of smell and/or taste. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","43530714","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +685,"[P][R] Cardiac arrhythmia","Cardiac arrhythmia","Cardiac arrhythmia","rao@ohdsi.org","Pending peer review","","all events of Cardiac arrhythmia. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","313217, 44784217","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +686,"[P][R] Fracture of bone of hip region","Fracture of bone of hip region","Fracture of bone of hip region","rao@ohdsi.org","Pending peer review","","all events of Fracture of bone of hip region. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","434500, 45763653","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +687,"[P][R] Chronic kidney disease","Chronic kidney disease","Chronic kidney disease","rao@ohdsi.org","Pending peer review","","all events of Chronic kidney disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","193782, 46271022","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +688,"[P][R] Death","Death","Death","rao@ohdsi.org","Pending peer review","","all events of Suicide. Persons exit on cohort end date","#Referent, #Observation",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","440925","","2023-06-25","2023-09-20",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +689,"[P][R] Newborn death","Newborn death","Newborn death","rao@ohdsi.org","Pending peer review","","all events of Newborn death. Persons exit on cohort end date","#Referent, #Observation",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4079843","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +690,"[P][R] Suicide","Suicide","Suicide","rao@ohdsi.org","Pending peer review","","all events of Death. Persons exit on cohort end date","#Referent, #Observation",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4306655","","2023-06-25","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +691,"Transverse myelitis or symptoms indexed on symptoms or diagnosis","Transverse myelitis or symptoms indexed on symptoms or diagnosis","Transverse myelitis or symptoms indexed on symptoms or diagnosis","rao@ohdsi.org","Accepted","3.9.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis, related spinal disease or symptoms of transverse myelitis, followed by a diagnosis of transverse myelitis within 30 days. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","79908, 139803, 443904","","2023-06-26","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +692,"Transverse myelitis indexed on diagnosis","Transverse myelitis indexed on diagnosis","Transverse myelitis indexed on diagnosis","rao@ohdsi.org","Accepted","3.7.0","events with a diagnosis of transverse myelitis indexed on diagnosis of transverse myelitis. Events have a 365 days washout period. The events persist for 1 day. Symptoms of Transverse Myelitis included asthenia, muscle weakness, myelitis, paresthesia","#Accepted, #Level2",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Evan Minty","","139803, 443904","","2023-06-26","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +693,"Acquired Neutropenia or unspecified leukopenia","Acquired Neutropenia or unspecified leukopenia","Acquired Neutropenia or unspecified leukopenia","rao@ohdsi.org","Accepted","3.11.0","all events of neutropenia indexed on diagnosis or lab results with no congenital or genetic neutropenia","#PhenotypePhebruary, #2023, #Neutropenia",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Anna Ostropolets","","435224","","2023-06-26","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,3,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Measurement",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +694,"Appendicitis during Inpatient visit","Appendicitis during Inpatient visit","Appendicitis during Inpatient visit","rao@ohdsi.org","Accepted","3.11.0","events of appendicitis with an inpatient or ER visit with no events in 365 days clean window","#PhenotypePhebruary, #2023",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Azza Shoaibi","","440448, 441604","","2023-06-26","2023-09-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +695,"[P][R] Optic nerve glioma","Optic nerve glioma","Optic nerve glioma","rao@ohdsi.org","Pending peer review","","all events of Optic nerve glioma. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4112970","","2023-06-26","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +696,"[P][R] Neurofibromatosis type 2","Neurofibromatosis type 2","Neurofibromatosis type 2","rao@ohdsi.org","Pending peer review","","all events of Neurofibromatosis type 2. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","380975","","2023-06-26","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +697,"[P][R] Neurofibromatosis type 1","Neurofibromatosis type 1","Neurofibromatosis type 1","rao@ohdsi.org","Pending peer review","","all events of Neurofibromatosis type 1. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","377252","","2023-06-26","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +698,"[P][R] Neurofibromatosis syndrome","Neurofibromatosis syndrome","Neurofibromatosis syndrome","rao@ohdsi.org","Pending peer review","","all events of Neurofibromatosis syndrome. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","376938","","2023-06-26","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +699,"[P][R] Major Depressive Disorder","Major Depressive Disorder","Major Depressive Disorder","rao@ohdsi.org","Pending peer review","","all events of Major Depressive Disorder. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4152280, 4282096","","2023-06-26","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +701,"[P][R] Ascites","Ascites","Ascites","rao@ohdsi.org","Pending peer review","","all events of Ascites. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","200528","https://forums.ohdsi.org/t/17895","2023-07-09","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +702,"[P] Alanine aminotransferase (ALT) elevated","Alanine aminotransferase (ALT) elevated","Alanine aminotransferase (ALT) elevated","rao@ohdsi.org","Pending peer review","","All events of Alanine aminotransferase (ALT) elevated","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4146380","","2023-07-11","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +703,"[P] Aspartate aminotransferase (AST) elevated","Aspartate aminotransferase (AST) elevated","Aspartate aminotransferase (AST) elevated","rao@ohdsi.org","Pending peer review","","All events of Aspartate aminotransferase (ALT) elevated","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4263457","","2023-07-11","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +705,"[P] Total Bilirubin elevated","Total Bilirubin elevated","Total Bilirubin elevated","rao@ohdsi.org","Pending peer review","","Total Bilirubin elevated","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4230543","","2023-07-11","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",2,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +706,"[P] Prothrombin time (PT) elevated","Prothrombin time (PT) elevated","Prothrombin time (PT) elevated","rao@ohdsi.org","Pending peer review","","Prothrombin time (PT) elevated","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4055672","","2023-07-11","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +707,"Inpatient Hospitalization (0Pe, 1Era)","Inpatient Hospitalization (0Pe, 1Era)","Inpatient Hospitalization (0Pe, 1Era)","rao@ohdsi.org","Accepted","3.4.0","All events of Inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-07-12","2023-09-19",,"23",,0,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,1,,,,,,,,, +708,"[P] International normalized ratio (INR) elevated","International normalized ratio (INR) elevated","International normalized ratio (INR)","rao@ohdsi.org","Pending peer review","","International normalized ratio (INR)","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4306239","","2023-07-14","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +709,"[P][R] Chronic liver disease","Chronic liver disease","Chronic liver disease","rao@ohdsi.org","Pending peer review","","all events of Chronic liver disease. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4212540","","2023-07-14","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +710,"[P] Cirrhosis of liver or its sequela","Cirrhosis of liver or its sequela","Cirrhosis of liver or its sequela","rao@ohdsi.org","Pending peer review","","all events of Cirrhosis of liver or its sequela. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4064161","","2023-07-19","2023-09-25",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +711,"[P][R] Transplanted liver present","Transplanted liver present","Transplanted liver present","rao@ohdsi.org","Pending peer review","","all events of Transplanted liver present. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","42537742","","2023-07-19","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +712,"[P] Viral hepatitis including history of","Viral hepatitis including history of","Viral hepatitis including history of","rao@ohdsi.org","Pending peer review","","All events of Viral hepatitis including history of","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4291005","","2023-07-19","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +713,"[P] Alcoholic hepatitis or alcohol liver disorder","Alcoholic hepatitis or alcohol liver disorder","Alcoholic hepatitis or alcohol liver disorder","rao@ohdsi.org","Pending peer review","","all events of Alcoholic hepatitis or alcohol liver disorder","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4340383","","2023-07-19","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +714,"[P][R] Endometriosis (clinical)","Endometriosis (clinical)","Endometriosis (clinical)","rao@ohdsi.org","Pending peer review","","all events of Endometriosis (clinical). Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","433527","","2023-07-19","2023-09-19",,"",,1,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +715,"[P] Hepatic fibrosis","Hepatic fibrosis","Hepatic fibrosis","rao@ohdsi.org","Pending peer review","","all events of Hepatic Fibrosis. Persons exit on cohort end date","#Referent, #Condition",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","4064161,4267417","","2023-07-19","2023-09-25",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +716,"[P] Acute Hepatic Injury","Acute Hepatic Injury","Acute Hepatic Injury","rao@ohdsi.org","Pending","","Acute Hepatic Injury","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","194990","","2023-07-20","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +717,"[P] Portal hypertension or esophageal varices","Portal hypertension or esophageal varices","Portal vein thrombosis","rao@ohdsi.org","Pending peer review","","all event of portal hypertension or esophageal varices","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","192680","","2023-07-20","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",180,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +719,"[P] Acute Hepatic Injury or jaundice while inpatient with no cooccurring certain liver disease","Acute Hepatic Injury or jaundice while inpatient with no cooccurring certain liver disease","","rao@ohdsi.org","","","","",1,"","","","","","","","2023-07-24","2023-09-19",,"",,0,,,"ERA","90","fixed duration relative to initial event","EndDate",1,3,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +720,"[P] Aplastic Anemia","Aplastic Anemia","Aplastic Anemia","rao@ohdsi.org","Pending peer review","","all events of aplastic anemia","#DME",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","137829","","2023-07-26","2024-09-11",,"",,0,,,"ERA","0","end of continuous observation",,,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +721,"[P] Sudden New Onset Blindness","Sudden New Onset Blindness","Sudden New Onset Blindness","rao@ohdsi.org","Pending peer review","","all events of Sudden New Onset Blindness","",1,"Gowtham A. Rao, Azza Shoaibi","'0000-0002-4949-7236','0000-0002-6976-2594'","'OHDSI'","","","377556","","2023-07-27","2023-09-19",,"",,0,,,"ERA","90","fixed duration relative to initial event","EndDate",0,2,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +722,"[P] Endometriosis indexed on procedure with two or more diagnosis among females 15 to 49","Endometriosis indexed on procedure with two or more diagnosis among females 15 to 49","Endometriosis","rao@ohdsi.org","Pending peer review","","An occurrence of procedure expected to be performed for persons with endometriosis with a diagnosis of endometriosis within 30 days of the procedure. Should have two more diagnosis in the future. Should be female. Should be between 15 to 49 years. A person is expected to be in the phenotype for the rest of their life (i.e. the disease never ends)","",1,"'Molle McKillop', 'Noémie Elhadad'","","'OHDSI'","","","433527","","2023-08-22","2023-09-19",,"",,0,,,"ERA","0","end of continuous observation",,,3,"All",FALSE,"All","First",1,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +723,"[P] First Acute Hepatic Failure with no known severe liver disease","First Acute Hepatic Failure with no known severe liver disease","Earliest event of Acute Hepatic Failure","rao@ohdsi.org","Pending peer review","","This definition, is modeling acute hepatic failure, assuming that acute hepatic failure by definition is severe liver injury with hepatic coma in the absence of known liver disease. This definition include hepatic coma that is potentially due to viral hepatis or alcohol use.","#Disease, #DME",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","4245975","","2023-08-22","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,3,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +724,"[P] First Acute Hepatic Failure with no known liver disease","First Acute Hepatic Failure with no known liver disease","Earliest event of Acute Hepatic Failure, NO viral hepatitis or alcoholic hepatic failure","rao@ohdsi.org","Pending peer review","","This definition, is modeling acute hepatic failure, assuming that acute hepatic failure by definition is severe liver injury with hepatic coma in the absence of known liver disease. This definition excludes persons with viral hepatis or alcohol use.","#Disease, #DME",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","4245975","","2023-08-22","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,6,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +725,"[P] All events of Acute Kidney Injury (AKI), with a washout period of 30 days","All events of Acute Kidney Injury (AKI), with a washout period of 30 days","All events of Acute Kidney Injury (AKI)","rao@ohdsi.org","Pending peer review","","All events of Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd,. Applying a washout period of 30 days between observed events excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior . patients exit the cohort 7 days post index..","#Disease, #DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","197320","","2023-08-22","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",7,4,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,7,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +726,"[P] All events of Anaphylaxis, Mini-Sentinel","All events of Anaphylaxis, Mini-Sentinel","All events of Anaphylaxis, Mini-Sentinel","rao@ohdsi.org","Pending peer review","","All events of anaphylaxis in inpatient setting, or anaphylaxis in outpatient along with symptoms or treatment for anaphylaxis","#Disease, #DME, #replication",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","441202","","2023-08-22","2024-09-11",,,,0,,,"ERA","0","fixed duration relative to initial event","EndDate",1,7,"All",FALSE,"All","All",4,2,"ConditionOccurrence, Observation",0,0,18,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +727,"[P] All events of Angioedema, with a washout period of 180 days","All events of Angioedema, with a washout period of 180 days","Angioedema","rao@ohdsi.org","Pending peer review","","All events of angioedema, indexed on a diagnosis of angioedema or urticaria followed by a diagnosis of angioedema within 3 days. With no diagnosis of angioedema in the last 180 days of washout period. Events are excluded if they have recent cardiac edema, cellulitis, erysipelas, dermatitis or eczema, lymphedema or insect bites 7 days before to and including index date. Cohort exist is 1 day post cohort end date","#Disease, #DME",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","139900","","2023-08-22","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",1,8,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +728,"[P] Autoimmune hemolytic anemia events not including evans syndrome","Autoimmune hemolytic anemia events not including evans syndrome","Autoimmune hemolytic anemia","rao@ohdsi.org","Pending peer review","","All events of Autoimmune hemolytic anemia events not including evans syndrome","#Disease, #DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","441269","","2023-08-23","2024-09-11",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +729,"[P] Autoimmune hepatitis, with a washout period of 365 days","Autoimmune hepatitis, with a washout period of 365 days","All events of Autoimmune hepatitis, with a washout period of 365 days","rao@ohdsi.org","Pending peer review","","all events of autoimmune hepatitis, indexed on diagnosis of autoimmune hepatitis, excluding event occurring in prior 365days washout period. Also excluded are events that have chronic liver diseases that may have similar presentation such as viral hepatitis, drug induced liver injury, alcoholic liver disease, and no systemic lupus erythematosus in past 365 and including index. Cohort exist is 1 day post end date.","#DME",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","200762","","2023-08-23","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",1,3,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +730,"[P] Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis","Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis","All events Acute pancreatitis, indexed on visit with NO chronic or hereditary pancreatitis","rao@ohdsi.org","Pending peer review","","all events of acute pancreatitis, indexed on an inpatient or emergency or an out patient visit (restricted to overlapping with an Emergency room procedures) with a diagnosis of Acute pancreatitis. With 1. no such events in prior washout window of 365 days 2. and no history of chronic pancreatitis any time prior or hereditary pancreatitis any time pre or post index. Cohort exit is 7 days post index.","",1,"Azza Shoaibi","'0000-0002-6976-2594'","'OHDSI'","","","4192640, 199074","https://forums.ohdsi.org/t/17848","2023-08-23","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",7,4,"All",FALSE,"All","All",2,1,"VisitOccurrence",0,0,7,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,1,,,,,,,,, +731,"[P] Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions","Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions","All events of Sudden Hearing Loss, No congenital anomaly or middle or inner ear conditions","rao@ohdsi.org","Pending peer review","","all events of sudden Hearing Loss, indexed on diagnosis of sudden hearing loss or a diagnosis or observation of any hearing loss that co-occurred with treatments or investigations within 1 day before to 21 days after index. Events much had 1. No hearing loss diagnosis or observation events in prior washout window of 365 days 2. No congenital anomaly of hearing any time 2. No history of middle or inner ear related diseases any time prior to 7 days before index. 3. Has not had audiometry 365 days before to 30 days prior index. exist cohort 30 days post end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","374053, 377889","","2023-08-23","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",30,5,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Observation",0,0,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +732,"[P] Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS) with clean window","Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS) with clean window","All events of Severe Cutaneous Adverse Reaction (SCAR = SJS+TEN+DRESS)","rao@ohdsi.org","Pending peer review","","All events of Severe Cutaneous Adverse Reaction SCAR, indexed on the diagnosis for Drug Rash With Eosinophilia, or Systemic Symptoms (DRESS) or Erythema Multiforme or Stevens-Johnson Syndrome or Toxic-Epidermal necrolysis. Excluding events in prior 365 days washout period. cohort exist 3 days post end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","141651, 45765791","","2023-08-23","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",3,1,"All",FALSE,"All","All",3,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +733,"[P] Drug Rash with Eosinophilia and Systemic Symptoms (DRESS) with clean window","Drug Rash with Eosinophilia and Systemic Symptoms (DRESS) with clean window","All events Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)","rao@ohdsi.org","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), index on diagnosis of (DRESS), excluding DRESS events in the last 365 day washout period. Cohort exist is 1 day after end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","45765791","","2023-08-23","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +734,"[P] Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)","Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)","All events Drug Rash with Eosinophilia and Systemic Symptoms (DRESS)","rao@ohdsi.org","Pending peer review","","all events of Drug Rash With Eosinophilia and Systemic Symptoms (DRESS), index on diagnosis of (DRESS)","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","45765791","","2023-08-23","2023-10-03",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +735,"[P] Acute Liver Injury indexed on diagnosis or symptoms with no chronic hepatic failure","Acute Liver Injury indexed on diagnosis or symptoms with no chronic hepatic failure","All events of Acute Liver Injury","rao@ohdsi.org","Pending","","All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, excluding events of Acute Liver Injury in prior 365 washout period. Excluding events with chronic hepatic failure on the same index date. patients exist cohort 90 days post end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","194990","","2023-08-23","2024-09-11",,"",,0,,,"ERA","90","fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +736,"[P] Acute Liver Injury NO viral, alcoholic, chronic hepatic failure","Acute Liver Injury NO viral, alcoholic, chronic hepatic failure","All events of Acute Liver Injury, NO viral hepatitis or alcoholic hepatic failure","rao@ohdsi.org","Pending","","All events of Acute Liver Injury, indexed on the diagnosis of Acute Liver Injury, excluding events of Acute Liver Injury in prior 365 washout period. Excluding events with chronic hepatic failure on the same index date. patients exist cohort 90 days post end date.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","194990","","2023-08-23","2024-09-11",,"",,0,,,"ERA","90","fixed duration relative to initial event","EndDate",1,5,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +737,"[P] Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era","Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era","Neutropenic Fever, Inpatient or ER, indexed on fever or Infection, 90 days era","rao@ohdsi.org","Pending peer review","","All events of febrile neutropenia, indexed on the diagnosis of febrile neutropenia or a fever (diagnosis or measurement) cooccurring with neutropenia (diagnosis or measurement) within 1 day , or a diagnosis of clinically significant infection cooccurring with neutropenia (diagnosis or measurement) within 1 day. Restricted to events overlapping with in an inpatient or emergency room visit and excluding events with a normal neutrophil count (ANC) on index. Cohort exit is 3 days after end date. Recurrent events will be combined into event eras if they are within 90 days of each other.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","257011, 437663, 4170143, 4250734","https://forums.ohdsi.org/t/17876","2023-08-23","2024-09-11",,"",,0,,,"ERA","90","fixed duration relative to initial event","EndDate",3,2,"All",TRUE,"All","All",8,3,"ConditionOccurrence, Measurement, Observation",0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +738,"[P] Autoimmune hemolytic anemia","Autoimmune hemolytic anemia","Autoimmune hemolytic anemia","rao@ohdsi.org","Pending peer review","","All events of Autoimmune hemolytic anemia events not including evans syndrome","#Disease, #DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","441269","","2023-08-23","2023-10-03",,"",,0,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +739,"[P] All events of Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days","All events of Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days","Isolated Immune Thrombocytopenia (ITP), with a washout period of 365 days","rao@ohdsi.org","Pending peer review","","all events of Immune Thrombocytopenia (ITP), excluding such events in prior 365 days as washout period, also excluded are 1. events with a diagnosis of congenital or genetic thrombocytopenia all time prior to 7 days post index, 2. Events with a platelet count of >100 or a diagnosis of thrombocytosis on day of index 3. Events with co-occurring neutropenia, pancytopenia, bone marrow involvement, anemia 7 days within index. Persons exit after 180 days or when a normal platelet count measure is observed.","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","433749, 4103532","","2023-08-23","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",180,9,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,9,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +740,"[W] Earliest event of Pulmonary arterial hypertension (PAH)","Earliest event of Pulmonary arterial hypertension (PAH)","Pulmonary arterial hypertension (PAH)","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Pulmonary Arterial Hypertension (PAH) indexed on occurrence of PAH condition requiring right heart catheterization or echocardiogram 30 days before or 30 days after diagnosis/index. Cohort exit is the end of continuous observation.","",1,"'Joel Swerdel'","","'OHDSI'","","","4013643","","2023-08-23","2024-09-11",,"","duplicate of 747",0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +741,"[P] Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","Earliest event of Thrombotic microangiopathy (TMA) or Microangiopathic hemolytic anemia (MAHA)","rao@ohdsi.org","Pending peer review","","Earliest events of Immune Thrombotic microangiopathy or microangiopathic hemolytic anemia indexed on the diagnosis or its treatment or investigation. Events with congenital or genetic thrombocytopenia all time prior to 7 days post index are excluded. Also excluded are patients with Platelet count > 150. cohort exit is 7 days post end date or an occurrence of a normal platelet measure .","#DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","313800, 4119134","","2023-08-23","2024-09-11",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",7,2,"All",FALSE,"All","First",4,4,"ConditionOccurrence, DrugExposure, Measurement, ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,1,,,,, +742,"[P] Parasomnia or Sleep dysfunction with arousal disturbance","Parasomnia or Sleep dysfunction with arousal disturbance","Parasomnia or Sleep dysfunction with arousal disturbance","rao@ohdsi.org","Pending peer review","","All events of Parasomnia or Sleep dysfunction with arousal disturbance with events collapse 1 day after","",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","254761","https://forums.ohdsi.org/t/17895","2023-09-08","2023-09-21",,"",,0,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +743,"[P] Diabetic ketoacidosis IP-ER (SNOMED concept)","Diabetic ketoacidosis IP-ER (SNOMED concept)","Diabetic ketoacidosis identified during the inpatient or emergency room SNOMED concept","rao@ohdsi.org","Pending peer review","","All condition occurrences of DKA during an ER or IP visit, with 30-day event persistence (SNOMED code only)","",1,"'James Weaver', 'Chris Knoll'","'0000-0003-0755-5191',''","'OHDSI'","","","196523","https://forums.ohdsi.org/t/17895","2023-09-08","2023-09-20",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",30,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +744,"[P] Pulmonary Hypertension","Pulmonary Hypertension","Pulmonary Hypertension","rao@ohdsi.org","Pending peer review","","First occurrence of Pulmonary Hypertension","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","312437, 4041664","https://forums.ohdsi.org/t/17895","2023-09-14","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +745,"[W] Inflammatory Bowel Disease","Inflammatory Bowel Disease","Inflammatory Bowel Disease","rao@ohdsi.org","Pending peer review","","First occurrence of Inflammatory Bowel Disease","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","4074815, 81893, 201606",,"2023-09-14","2023-10-13",,"","duplicate of 775",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +746,"[P] Chronic Thromboembolic Pulmonary Hypertension","Chronic Thromboembolic Pulmonary Hypertension","Chronic Thromboembolic Pulmonary Hypertension","rao@ohdsi.org","Pending peer review","","First occurrence of Chronic Thromboembolic Pulmonary Hypertension","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","378253","https://forums.ohdsi.org/t/17895","2023-09-14","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +747,"[P] Pulmonary Arterial Hypertension","Pulmonary Arterial Hypertension","Pulmonary Arterial Hypertension","rao@ohdsi.org","Pending peer review","","First occurrence of Pulmonary Arterial Hypertension","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","43530714","https://forums.ohdsi.org/t/17895","2023-09-14","2024-09-11",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +748,"[P] Psoriatic arthritis","Psoriatic arthritis","Psoriatic arthritis","rao@ohdsi.org","Pending peer review","","First occurrence of Psoriatic arthritis","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","25297, 4226263","https://forums.ohdsi.org/t/17895","2023-09-14","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +749,"[P] Plaque Psoriasis","Plaque Psoriasis","Plaque Psoriasis","rao@ohdsi.org","Pending peer review","","First occurrence of Plaque Psoriasis","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","27674, 4101344","https://forums.ohdsi.org/t/17895","2023-09-15","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +750,"[P] Pulmonary hypertension associated with left heart disease (WHO Group 2)","Pulmonary hypertension associated with left heart disease (WHO Group 2)","Pulmonary hypertension associated with left heart disease (WHO Group 2)","rao@ohdsi.org","Pending peer review","","First occurrence of Pulmonary hypertension associated with left heart disease (WHO Group 2)","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","4322024",,"2023-09-15","2023-10-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +752,"[P] Firearm Accidents (FA)","Firearm Accidents (FA)","Firearm Accidents (FA)","rao@ohdsi.org","Pending peer review","","Firearm accident with an emergency room or inpatient visit on index","",1,"'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","",,"2023-09-15","2023-10-05",,"","updates to earliest event on Jill Hardin's request",0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","First",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,1,,,,, +753,"[P] Motor Vehicle Accidents (MVA)","Motor Vehicle Accidents (MVA)","Motor Vehicle Accidents (MVA)","rao@ohdsi.org","Pending peer review","","All events of motor vehicle accidents with an emergency room or inpatient visit on index","",1,"'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","442752, 4150129","https://forums.ohdsi.org/t/17895","2023-09-15","2023-09-20",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",0,1,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Observation",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +754,"[P] Down Syndrome","Down Syndrome","Down Syndrome","rao@ohdsi.org","Pending peer review","","Condition occurrence of Down Syndrome, starting between 0 days before and 0 days after cohort entry start date and ending between 0 days before and 0 days after cohort entry start date. Having at least 1 additional condition occurrence of ‘Down syndrome’, starting between 1 days after and 365 days after cohort entry start date having no condition eras of ‘Condition_Era Pregnancy Codes’, starting between 0 days before and 0 days after ‘Down syndrome’ start date and ending between 0 days after and 0 days after ‘Down syndrome’ start date","",1,"'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","37016200","","2023-09-15","2023-10-05",,"","removed pregnancy logic as it is not generalizable. Discussed with Jill Hardin",0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +755,"[P] Non-infectious uveitis and iridocyclitis","Non-infectious uveitis and iridocyclitis","Non-infectious uveitis and iridocyclitis","rao@ohdsi.org","Pending peer review","","Earliest diagnosis of non-infectious uveitis or iridocyclitis, indexed on the first ever event. This event must either be followed by a second event in the 31 to 365 days in the future or the event must occur at the time of an ophthalmology visit.","",1,"'James Weaver', 'Eria Voss Stanoch'","'0000-0003-0755-5191', '0000-0002-0651-0613'","","","","","","2023-09-15","2023-10-06",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +756,"[P] Cystic Fibrosis","Cystic Fibrosis","Cystic Fibrosis","rao@ohdsi.org","Pending peer review","","1 code of cystic fibrosis and a second code within 1 to 365 days post index","",1,"'Jill Hardin'","'0000-0003-2682-2187'","'OHDSI'","","","441267","","2023-09-15","2023-10-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +757,"[P] Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap","Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap","Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap","rao@ohdsi.org","Pending peer review","","Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","703578","","2023-09-15","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"DrugEra",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,1,,,, +759,"[P] Concomitant TNF - alpha Inhibitors and IL12_23 Inhibitors - GE 30D overlap","Concomitant TNF - alpha Inhibitors and IL12 23 Inhibitors - GE 30D overlap","Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap","rao@ohdsi.org","Pending peer review","","Concomitant TNF - alpha Inhibitors and IL23 Inhibitors - GE 30D overlap","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","255848, 4318404","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"DrugEra",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,1,,,, +760,"[P] Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap","Concomitant IL 23 Inhibitors and IL12 23 Inhibitors - GE 30D overlap","Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap","rao@ohdsi.org","Pending peer review","","Concomitant IL 23 Inhibitors and IL12_23 Inhibitors - GE 30D overlap","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","256451, 260139","https://forums.ohdsi.org/t/17895","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"DrugEra",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,1,,,, +761,"[P] Pulmonary arterial hypertension with Prior Left Heart or Vice Versa","Pulmonary arterial hypertension with Prior Left Heart or Vice Versa","Pulmonary arterial hypertension with Prior Left Heart or Vice Versa","rao@ohdsi.org","Pending peer review","","Index date of either PAH or left heart disease whichever comes last","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","319049","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +762,"[P] Endothelin receptor antagonists","Endothelin receptor antagonists","Endothelin receptor antagonists","rao@ohdsi.org","Pending peer review","","First exposure of Endothelin receptor antagonists","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","","","2023-09-16","2023-10-09",,"","joel reporte he made an error in cohort. used condition domain for drug",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,,,,,, +763,"[P] Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators","Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators","Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators","rao@ohdsi.org","Pending peer review","","First exposure of Phosphodiesterase 5 inhibitors and guanylate cyclase stimulators","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,,,,,, +764,"[P] Prostacyclin analogues and prostacyclin receptor agonists","Prostacyclin analogues and prostacyclin receptor agonists","Prostacyclin analogues and prostacyclin receptor agonists","rao@ohdsi.org","Pending peer review","","First exposure of Prostacyclin analogues and prostacyclin receptor agonists","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,,,,,, +765,"[P] Earliest event of Left Heart Failure","Earliest event of Left Heart Failure","Left Heart Failure","rao@ohdsi.org","Pending peer review","","First occurrence of Left Heart Failure","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +766,"[P] Earliest event of Right Heart Failure","Earliest event of Right Heart Failure","Right Heart Failure","rao@ohdsi.org","Pending peer review","","First occurrence of Right Heart Failure","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","255573, 317009","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +767,"[P] Earliest event of Sarcoidosis","Earliest event of Sarcoidosis","Sarcoidosis","rao@ohdsi.org","Pending peer review","","First occurrence of Sarcoidosis","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","317009","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +768,"[P] Earliest event of Sickle Cell Anemia","Earliest event of Sickle Cell Anemia","Sickle Cell Anemia","rao@ohdsi.org","Pending peer review","","First occurrence of Sickle Cell Anemia","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","4213628","","2023-09-16","2023-10-19",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +769,"[P] Scleroderma, first occurrence","Scleroderma, first occurrence","Scleroderma","rao@ohdsi.org","Pending peer review","","First occurrence of Scleroderma","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","76685, 80809, 81893, 81931, 134442, 134618, 135215, 140168, 194992, 199856, 201254, 201606, 254443, 257628, 374919, 432295, 438688, 443394, 4137275, 4232076","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +770,"[P] Essential Hypertension, first occurrence","Essential Hypertension, first occurrence","Essential Hypertension","rao@ohdsi.org","Pending peer review","","First occurrence of Essential Hypertension","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","253954, 434557","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +771,"[W] Pulmonary Hypertension (Group 2 Left heart disease, encompassing)","Pulmonary Hypertension (Group 2 Left heart disease, encompassing)","Pulmonary hypertension associated with left heart disease (WHO Group 2)","rao@ohdsi.org","Pending peer review","","First occurrence of Pulmonary hypertension associated with left heart disease (WHO Group 2)","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","137809, 443392","","2023-09-16","2023-10-09",,"","duplicate of 750",0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +772,"[W] Pulmonary Hypertension (Group 3 Chronic lung disease, encompassing)","Pulmonary Hypertension (Group 3 Chronic lung disease, encompassing)","Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3)","rao@ohdsi.org","Pending peer review","","First occurrence of Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3)","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","433736","https://forums.ohdsi.org/t/17895","2023-09-16","2023-10-09",,"","replaced by 751. removed prefix and santized.",0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +773,"[P] Congenital Heart Disease","Congenital Heart Disease","Congenital Heart Disease","rao@ohdsi.org","Pending peer review","","First occurrence of Congenital Heart Disease","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","4182210","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +774,"[P] Portal Hypertension, first occurrence","Portal Hypertension, first occurrence","Portal Hypertension","rao@ohdsi.org","Pending peer review","","First occurrence of Portal Hypertension","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","312648, 4028741","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +775,"[P] First Inflammatory Bowel Disease","First Inflammatory Bowel Disease","Inflammatory Bowel Disease","rao@ohdsi.org","Pending peer review","","First occurrence of Inflammatory Bowel Disease","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","","4074815, 81893, 201606",,"2023-09-16","2023-10-03",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +776,"[P] Antisynthetase syndrome","Antisynthetase syndrome","Antisynthetase syndrome","rao@ohdsi.org","Pending peer review","","First occurrence of Antisynthetase syndrome","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","439727","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +777,"[P] Mixed connective tissue disease","Mixed connective tissue disease","Mixed connective tissue disease","rao@ohdsi.org","Pending peer review","","Mixed connective tissue disease","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","197494, 198964","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +778,"[P] Undifferentiated connective tissue disease","Undifferentiated connective tissue disease","Undifferentiated connective tissue disease","rao@ohdsi.org","Pending peer review","","First occurrence of Undifferentiated connective tissue disease","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","313217, 44784217","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +779,"[P] Overlap syndrome","Overlap syndrome","Overlap syndrome","rao@ohdsi.org","Pending peer review","","First occurrence of Overlap syndrome","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","193782","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +780,"[P] Raynaud’s disease or Raynaud's phenomenon","Raynaud’s disease or Raynaud's phenomenon","Raynaud’s disease or Raynaud’s phenomenon","rao@ohdsi.org","Pending peer review","","First occurrence of Raynaud’s disease or Raynaud’s phenomenon","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","201820, 201826","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +781,"[P] Antiphospholipid syndrome","Antiphospholipid syndrome","Antiphospholipid syndrome","rao@ohdsi.org","Pending peer review","","First occurrence of Antiphospholipid syndrome","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","192359, 193782","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +782,"[P] CTEPH Prevalent (with Echo or RHC) with 2nd dx code 31-365 days after first dx","CTEPH Prevalent (with Echo or RHC) with 2nd dx code 31-365 days after first dx","Chronic Thromboembolic Pulmonary Hypertension","rao@ohdsi.org","Pending peer review","","First occurrence of Chronic Thromboembolic Pulmonary Hypertension","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","","","","193782","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +783,"[P] Pulmonary endarterectomy","Pulmonary endarterectomy","Pulmonary endarterectomy","rao@ohdsi.org","Pending peer review","","All occurrences of Pulmonary endarterectomy","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","253954, 434557","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",0,0,"All",FALSE,"All","All",1,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +784,"[P] Balloon Pulmonary Angioplasty","Balloon Pulmonary Angioplasty","Balloon Pulmonary Angioplasty","rao@ohdsi.org","Pending peer review","","All occurrences of Balloon Pulmonary Angioplasty","#epi1073",1,"'Joel Swerdel','Eva-maria Didden'","'0000-0001-9491-2737','0000-0001-7401-8877'","'OHDSI'","","","4138754","","2023-09-16","2023-10-04",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",0,0,"All",FALSE,"All","All",1,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +785,"[P] Skin Burns","Skin Burns","Skin Burns","rao@ohdsi.org","Pending peer review","","1 code of Skin Burns and a drug or procedure treatment within 1 to 180 days post index","",1,"'Jill Hardin'","'0000-0003-2682-2187'","","","","439676, 37311061","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",0,1,"All",FALSE,"All","All",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,1,,,,, +788,"[P] Breast cancer","Breast cancer","Breast cancer","rao@ohdsi.org","Pending peer review","","","",1,"'Asieh Golozar'","'0000-0002-4243-155X'","","","","439676, 37311061","","2023-09-16","2023-10-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +789,"[P] Glioblastoma multiforme (GBM)","Glioblastoma multiforme (GBM)","Glioblastoma multiforme (GBM)","rao@ohdsi.org","Pending peer review","","","",1,"'Asieh Golozar', 'Vlad Korsik'","'0000-0002-4243-155X'","","","","","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +790,"[P] Colorectal Cancer","Colorectal Cancer","Colorectal Cancer","rao@ohdsi.org","Pending peer review","","","",1,"'Asieh Golozar', 'Peter Prinsen'","'0000-0002-4243-155X'","","","","","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +791,"[P] Multiple Myeloma","Multiple Myeloma","Multiple Myeloma","rao@ohdsi.org","Pending peer review","","","",1,"'Asieh Golozar'","'0000-0002-4243-155X'","","","","","","2023-09-16","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,,,,,,,,,, +792,"[P] Metastatic Hormone-Sensitive Prostate Cancer Synchronous","Metastatic Hormone-Sensitive Prostate Cancer Synchronous","Metastatic Hormone-Sensitive Prostate Cancer Synchronous","rao@ohdsi.org","Pending peer review","","","#Pioneer2",1,"'Asieh Golozar'","'0000-0002-4243-155X'","'OHDSI'","","","377091, 4196708","https://forums.ohdsi.org/t/17895","2023-09-16","2023-10-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",3,2,"ConditionOccurrence, Measurement",183,183,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +793,"[P] Metastatic Hormone-Sensitive Prostate Cancer Metachronus","Metastatic Hormone-Sensitive Prostate Cancer Metachronus","Metastatic Hormone-Sensitive Prostate Cancer Metachronus","rao@ohdsi.org","Pending peer review","","","#Pioneer2",1,"'Asieh Golozar'","'0000-0002-4243-155X'","'OHDSI'","","","439676, 37311061","","2023-09-16","2023-10-05",,"",,0,,,"ERA","0","end of continuous observation",,,7,"First",FALSE,"All","First",3,2,"ConditionOccurrence, Measurement",183,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +794,"[P] Hemorrhage of digestive system","Hemorrhage of digestive system","Hemorrhage of digestive system","rao@ohdsi.org","Pending peer review","","all events of Hemorrhage of digestive system. Persons exit on cohort end date plus 14 days","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-09-17","2023-10-16",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +795,"[P] Antineoplastic drugs against colorectal cancer","Antineoplastic drugs against colorectal cancer","Antineoplastic drugs against colorectal cancer","rao@ohdsi.org","Pending peer review","","First exposure of drugs Antineoplastic drugs against colorectal cancer.","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","439676, 37311061","","2023-09-18","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,,,,,, +796,"[P] Potential curative surgery for colorectal cancer","Potential curative surgery for colorectal cancer","Potential curative surgery for colorectal cancer","rao@ohdsi.org","Pending peer review","","First event potential curative surgery for colorectal cancer.","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","2023-09-18","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +797,"[P] Radiotherapy against colorectal cancer","Radiotherapy against colorectal cancer","Radiotherapy against colorectal cancer","rao@ohdsi.org","Pending peer review","","First exposure of radiotherapy, excluding procedures with that are probably not related to colorectal cancer.","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","317302, 320425","","2023-09-18","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +798,"[P] Primary adenocarcinoma of the colon or rectum","Primary adenocarcinoma of the colon or rectum","Primary adenocarcinoma of the colon or rectum","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of the colon or rectum","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","377091, 4196708","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +802,"[P] Acute Respiratory Failure 2","Acute Respiratory Failure 2","Acute Respiratory Failure","rao@ohdsi.org","Pending peer review","","First event of acute respiratory failure","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","Evan Minty","","79908, 139803, 443904","https://forums.ohdsi.org/t/17769","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +803,"[P] Fascial dehiscence and evisceration","Fascial dehiscence and evisceration","Fascial dehiscence and evisceration","rao@ohdsi.org","Pending peer review","","First fascial dehiscence or evisceration","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","254761, 312437, 437663, 439926, 442752, 4041664, 4178904, 4272240, 43530714","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +804,"[P] Anastomotic leak or dehiscence","Anastomotic leak or dehiscence","Anastomotic leak or dehiscence","rao@ohdsi.org","Pending peer review","","First event of anastomotic leak or dehiscence of large or small intestine","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","199074","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +805,"[P] Intestinal obstruction (broad)","Intestinal obstruction (broad)","Intestinal obstruction","rao@ohdsi.org","Pending peer review","","First event Intestinal obstruction","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","197320","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +806,"[P] Intraabdominal abscess","Intraabdominal abscess","Intraabdominal abscess","rao@ohdsi.org","Pending peer review","","First event Intraabdominal abscess","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","4245975","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +807,"[P] Perioperative aspiration","Perioperative aspiration","Perioperative aspiration","rao@ohdsi.org","Pending peer review","","First event of Perioperative aspiration","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","316139, 319835","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +808,"[P] Postoperative hemorrhage","Postoperative hemorrhage","Postoperative hemorrhage","rao@ohdsi.org","Pending peer review","","First event postoperative hemorrhage","",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","4002836","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +809,"[P] Surgical wound infection (narrow)","Surgical wound infection (narrow)","Surgical wound infection (narrow)","rao@ohdsi.org","Pending peer review","","First event surgical wound infection","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","443454","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +810,"[P] Distant metastasis following colorectal cancer (wide)","Distant metastasis following colorectal cancer (wide)","Distant metastasis following colorectal cancer (wide)","rao@ohdsi.org","Pending peer review","","First event distant metastasis following colorectal cancer","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","314666, 4329847","https://forums.ohdsi.org/t/15900","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +811,"[P] Local recurrence after colorectal cancer","Local recurrence after colorectal cancer","Local recurrence after colorectal cancer","rao@ohdsi.org","Pending peer review","","First event local recurrence after colorectal cancer","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","4183609, 4266367","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +812,"[P] Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment","Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment","Primary adenocarcinoma of the colon or rectum, MSI-H or dMMR, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of the colon or rectum with MSI-H or dMMR, no curative surgery or oncological treatment any time after","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","376713, 439847","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +813,"[P] Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery","Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery","Primary adenocarcinoma of the colon or rectum treated with potentially curative surgery","rao@ohdsi.org","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum treated with curative surgery within 90 days of the operation","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","443454","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,1,,,,, +814,"[P] Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment","Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment","Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment","rao@ohdsi.org","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum treated with no curative surgery but oncological treatment within 90 days of the operation","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","373503","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,1,,,,, +817,"[P] Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment2","Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment2","Primary adenocarcinoma of the colon or rectum, no curative intended surgery and oncological treatment","rao@ohdsi.org","Pending peer review","","Primary adenocarcinoma of the colon or rectum, no curative intended surgery, and oncological treatment at any time after","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","192671","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +818,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of the colon or rectum, with a molecular subtype of MSI-L, MSI-indeterminate, MSS or pMMR","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","313217, 44784217","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +819,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery","rao@ohdsi.org","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with curative intended surgery within 90 days of diagnosis","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","438624, 4027133","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,1,,,,, +820,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no curative surgery","rao@ohdsi.org","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, treated with oncological therapy, but no curative intended surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,1,,,,, +821,"[P] Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","Primary adenocarcinoma of the colon or rectum, MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum with a MSI-L, MSI-indeterminate, MSS or pMMR subtype, and no surgery or oncological treatment anytime in the future.","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +822,"[P] Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, surgical treatment","rao@ohdsi.org","Pending peer review","","First event of Primary adenocarcinoma of the colon or rectum with the MSI-H or dMMR molecular subtype, receiving potential curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","40481547","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,1,,,,, +823,"[P] Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR, oncological treatment no surgery","rao@ohdsi.org","Pending peer review","","First event primary adenocarcinoma of the colon or rectum, with MSI-H or dMMR molecular subtype, treated with oncological treatment no curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","439676, 37311061","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,1,,,,, +824,"[P] Primary adenocarcinoma of colon or rectum, MSI-H or dMMR","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR","Primary adenocarcinoma of colon or rectum, MSI-H or dMMR","rao@ohdsi.org","Pending peer review","","First event Primary adenocarcinoma of the colon or rectum, with MSI-H or dMMR molecular subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +825,"[P] Primary adenocarcinoma of colon","Primary adenocarcinoma of colon","Primary adenocarcinoma of colon","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of colon","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +826,"[P] Primary adenocarcinoma of colon, no surgery or oncological treatment","Primary adenocarcinoma of colon, no surgery or oncological treatment","Primary adenocarcinoma of colon, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of the colon, no curative surgery and no oncological treatment anytime after","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","373995","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +827,"[P] Primary adenocarcinoma of colon surgical treatment","Primary adenocarcinoma of colon surgical treatment","Primary adenocarcinoma of colon surgical treatment","rao@ohdsi.org","Pending peer review","","First event of curative surgery for primary adenocarcinoma","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","378419","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,1,,,,, +828,"[P] Primary adenocarcinoma of colon oncological treatment, no surgery","Primary adenocarcinoma of colon oncological treatment, no surgery","Primary adenocarcinoma of colon oncological treatment, no surgery","rao@ohdsi.org","Pending peer review","","First event of oncological treatment after primary adenocarcinoma, with no curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","138525, 194133","https://forums.ohdsi.org/t/18223","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,1,,,,, +829,"[P] Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR","Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR","Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of colon, with MSI-L or pMMR molecular subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","444362","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +830,"[P] Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated","Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated","Primary adenocarcinoma of colon, MSI-L, MSI-indeterminate, MSS or pMMR, surgically treated","rao@ohdsi.org","Pending peer review","","First event of potential curative surgery after a primary adenocarcinoma with MSI-L, MSS, pMMR molecular subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","438409, 4047120","https://forums.ohdsi.org/t/15901","2023-09-18","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +831,"[P] Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","rao@ohdsi.org","Pending peer review","","First event of oncological treatment of primary adenocarcinoma of colon with MSS, MSI-L or pMMR subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","314666, 4296653, 4329847","https://forums.ohdsi.org/t/15900","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,1,,,,, +832,"[P] Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","Primary adenocarcinoma of colon MSI-L, MSI-indeterminate, MSS or pMMR, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of adenocarcinoma of colon with molecular subtype pMMR/MSI-L/MSS for patients not receiving surgery or oncological treatment","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","198263","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +833,"[P] Primary adenocarcinoma of colon MSI-H or dMMR","Primary adenocarcinoma of colon MSI-H or dMMR","Primary adenocarcinoma of colon MSI-H or dMMR","rao@ohdsi.org","Pending peer review","","First event of a primary adenocarcinoma of colon with MSI-H / pMMR molecular profile","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","442597, 4152351","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +834,"[P] Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment","Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment","Primary adenocarcinoma of colon MSI-H or dMMR, surgical treatment","rao@ohdsi.org","Pending peer review","","First event of potentially curative surgery for adenocarcinoma of colon following diagnosis of MSI-H dMMR subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","439926, 4272240","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,1,,,,, +835,"[P] Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery","Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery","Primary adenocarcinoma of colon MSI-H or dMMR, oncological treatment, no surgery","rao@ohdsi.org","Pending peer review","","First event of oncological treatment for colorectal cancer following diagnosis of primary adenocarcinoma of colon with MSI-H or dMMR profile, no curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","4096682",,"2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,1,,,,, +836,"[P] Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment","Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment","Primary adenocarcinoma of colon MSI-H or dMMR, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of colon with MSI-H or dMMR profile, no curative surgery or oncological treatment at anytime past diagnosis","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","137977, 435656","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +837,"[P] Primary adenocarcinoma of rectum","Primary adenocarcinoma of rectum","Primary adenocarcinoma of rectum","rao@ohdsi.org","Pending peer review","","First event of a primary adenocarcinoma of rectum","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","436222","https://forums.ohdsi.org/t/17895","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +838,"[P] Primary adenocarcinoma of rectum MSI-H or dMMR","Primary adenocarcinoma of rectum MSI-H or dMMR","Primary adenocarcinoma of rectum MSI-H or dMMR","rao@ohdsi.org","Pending peer review","","First event of a primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","196360, 197508","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +839,"[P] Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment","Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment","Primary adenocarcinoma of rectum, MSI-H or dMMR, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of a primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype, without any curative surgery or oncological treatment in the future","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","80809","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,1,,,,, +840,"[P] Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery","Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery","Primary adenocarcinoma of rectum MSI-H or dMMR, oncological treatment, no surgery","rao@ohdsi.org","Pending peer review","","First event of oncological treatment for patient with primary adenocarcinoma of rectum with MSI-H or dMMR molecular subtype, without any curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","318443, 764123","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,1,,,,, +841,"[P] Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment","Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment","Primary adenocarcinoma of rectum, MSI-H or dMMR, surgical treatment","rao@ohdsi.org","Pending peer review","","First event of potentially curative surgery for patients diagnosed with primary adenocarcinoma of rectum with MSI-H / dMMR subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","201606","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,1,,,,, +842,"[P] Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR","Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR","Primary adenocarcinoma of rectum, MSI-L, MSI-indeterminate, MSS or pMMR","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of rectum, with MSI-L, MSI-indeterminate, MSS or pMMR subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","440383","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +843,"[P] Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, oncological treatment, no surgery","rao@ohdsi.org","Pending peer review","","First event of oncology in patients diagnosed with primary adenocarcinoma of rectum with MSI-L, MSI-indeterminate, MSS or pMMR profile, with no subsequent potentially curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","140168","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,1,,,,, +844,"[P] Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, no surgery and no oncological treatment","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of tectum with MSI-L / MSS / pMMR profile, no surgery or oncological treatment","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","81893","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +845,"[P] Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery","Primary adenocarcinoma of rectum MSI-L, MSI-indeterminate, MSS or pMMR, treated with potentially curative surgery","rao@ohdsi.org","Pending peer review","","First event of potentially curative surgery for primary adenocarcinoma of rectum with MSI-L / pMMR subtype","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","26942, 138723, 4144746","https://forums.ohdsi.org/t/17854","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,1,,,,, +846,"[P] Primary adenocarcinoma of rectum oncological treatment, no surgery","Primary adenocarcinoma of rectum oncological treatment, no surgery","Primary adenocarcinoma of rectum oncological treatment, no surgery","rao@ohdsi.org","Pending peer review","","First event of oncological for patients with primary adenocarcinoma in rectum, with no subsequent potentially curative surgery","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","257011, 437663, 4170143, 4250734","https://forums.ohdsi.org/t/17876","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"DrugExposure, ProcedureOccurrence",365,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,1,,,,, +847,"[P] Primary adenocarcinoma of rectum surgical treatment","Primary adenocarcinoma of rectum surgical treatment","Primary adenocarcinoma of rectum surgical treatment","rao@ohdsi.org","Pending peer review","","First event of potentially curative surgery following diagnosis of primary adenocarcinoma of rectum","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","435503, 439777, 441269, 4250490","https://forums.ohdsi.org/t/17856","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,1,,,,, +848,"[P] Primary adenocarcinoma of rectum, no surgery or oncological treatment","Primary adenocarcinoma of rectum, no surgery or oncological treatment","Primary adenocarcinoma of rectum, no surgery or oncological treatment","rao@ohdsi.org","Pending peer review","","First event of primary adenocarcinoma of rectum, no future potentially curative surgery or oncological treatment","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","435503, 439777, 441269, 4250490","https://forums.ohdsi.org/t/17856","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +850,"[W] Intestinal obstruction (broad 2)","Intestinal obstruction (broad 2)","Intestinal obstruction","rao@ohdsi.org","Pending peer review","","First event Intestinal obstruction","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","432881","","2023-09-18","2023-10-16",,"","duplicated 805",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +851,"[P] Intraabdominal obstruction (broad)","Intraabdominal obstruction (broad)","Intraabdominal obstruction","rao@ohdsi.org","Pending peer review","","First event Intraabdominal obstruction","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","Anna Ostropolets","","435224","https://forums.ohdsi.org/t/17409","2023-09-18","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +852,"[P] Surgical wound infection (broad)","Surgical wound infection (broad)","Surgical wound infection (broad)","rao@ohdsi.org","Pending peer review","","First event surgical wound infection","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","435224","https://forums.ohdsi.org/t/17409","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +854,"[P] Distant metastasis following colorectal cancer (medium)","Distant metastasis following colorectal cancer (medium)","Distant metastasis following colorectal cancer (medium)","rao@ohdsi.org","Pending peer review","","First event distant metastasis following colorectal cancer","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","433749, 4103532","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +855,"[P] Distant metastasis following colorectal cancer (narrow)","Distant metastasis following colorectal cancer (narrow)","Distant metastasis following colorectal cancer (narrow)","rao@ohdsi.org","Pending peer review","","First event distant metastasis following colorectal cancer","#ColorectalCancer, #Cancer",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","'OHDSI'","","","433749, 4103532","","2023-09-18","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +856,"[P] Earliest event of Migraine, including history of migraine","Earliest event of Migraine, including history of migraine","Earliest event of Migraine, including history of migraine","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Migraine indexed on occurrence of Migraine condition (or observation of history of migraine-in the one of the cohorts versions) or symptoms (Headache , Aura) or a use of antimigraine drug (or the 1st time). Patients entering the cohort with an antimigraine drugs or migraine symptoms are required to have a diagnosis or observation of Migraine or history of migraine within 60 days. Cohort exit is the end of continuous observation.","#ColorectalCancer, #Cancer",1,"Azza Shoaibi', 'Jill Hardin'","0000-0002-6976-2594'","'OHDSI'","","","313800, 4119134","","2023-09-18","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,1,"All",FALSE,"All","First",4,3,"ConditionOccurrence, DrugExposure, Observation",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,1,,,,,,, +857,"[P] Earliest event of Migraine","Earliest event of Migraine","Earliest event of Migraine","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Migraine indexed on occurrence of Migraine condition (or observation of history of migraine-in the one of the cohorts versions) or symptoms (Headache , Aura) or a use of antimigraine drug (or the 1st time). Patients entering the cohort with an antimigraine drugs or migraine symptoms are required to have a diagnosis or observation of Migraine or history of migraine within 60 days. Cohort exit is the end of continuous observation.","#JNJ, #Indication",1,"Azza Shoaibi', 'Jill Hardin'","0000-0002-6976-2594'","'OHDSI'","","","137967, 4345578","","2023-09-18","2023-10-04",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",3,2,"ConditionOccurrence, DrugExposure",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,,,, +858,"[P] Earliest event of Rheumatoid Arthritis","Earliest event of Rheumatoid Arthritis","Earliest event of Rheumatoid Arthritis","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Rheumatoid Arthritis indexed on diagnosis (condition or observation) date, for the first time in history cohort exit is the end of continuous observation","#JNJ, #Indication",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","321042","","2023-09-18","2023-10-04",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,,,,,,,,,, +859,"[P] Earliest event of Crohns disease","Earliest event of Crohns disease","Earliest event of Crohns disease","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Crohns disease indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#Crohn",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","201606","","2023-09-18","2023-10-04",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +860,"[P] Earliest event of Ulcerative colitis","Earliest event of Ulcerative colitis","Earliest event of Ulcerative colitis","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Ulcerative Colitis indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#UlcerativeColitis",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","441202","https://forums.ohdsi.org/t/17835","2023-09-18","2023-09-22",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +861,"[W] Earliest event of Urinary tract infections (UTI)","Earliest event of Urinary tract infections (UTI)","Earliest event of Urinary tract infections (UTI)","rao@ohdsi.org","Pending peer review","","Earliest event of diagnosis of urinary tract infections, cohort exist is end of observation period.","#ColorectalCancer, #Cancer",1,"Stephen Fortin","0000-0002-6976-2594'","'OHDSI'","","","141651","","2023-09-18","2023-11-29",,"","Cohort appears to model biologically implausible situation",0,,,"ERA","0","end of continuous observation",,,0,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +862,"[P] Earliest event of Alzheimer's disease derived from Imfeld, 2","Earliest event of Alzheimer's disease derived from Imfeld, 2","Earliest event of Alzheimer's disease derived from Imfeld, 2","rao@ohdsi.org","Pending peer review","","","#ColorectalCancer, #Cancer",1,"Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","42872891","","2023-09-18","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, DrugExposure",0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,,,,,, +863,"[P] Cognitive impairment, incident","Cognitive impairment, incident","Cognitive impairment, incident","rao@ohdsi.org","Pending peer review","","Earliest occurrence of Crohns disease indexed on diagnosis date, for the first time in history , with 365 days prior observation time. cohort exit is the end of continuous observation","",1,"Azza Shoaibi', 'Dave Kern'","0000-0002-6976-2594'","'OHDSI'","","","4297400, 439795",,"2023-09-18","2023-10-04",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +864,"[P] Earliest event of Dementia","Earliest event of Dementia","Earliest event of Dementia","rao@ohdsi.org","Pending peer review","","Occurrences of dementia indexed on diagnosis or observation date with no required prior continuous enrollment subset to earliest observation where the patient was 18 years or older cohort exit is the end of continuous observation.","#Dementia",1,"Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","4182210","","2023-09-18","2023-10-03",,"",,0,,,"ERA","0","end of continuous observation",,,1,"All",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +865,"[P] Non-Emergent Major Non Cardiac Surgery among adults","Non-Emergent Major Non Cardiac Surgery among adults","Major Non Cardiac Surgery, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",35,1,"ProcedureOccurrence",0,0,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +866,"[P] Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED","Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED","Abdominal Aortic Aneurysm repair, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +867,"[P] Lower Extremity Bypass, adults, inpt stay, no ED","Lower Extremity Bypass, adults, inpt stay, no ED","Lower Extremity Bypass, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +868,"[P] Carotid Endarterectomy, adults, inpt stay, no ED","Carotid Endarterectomy, adults, inpt stay, no ED","Carotid Endarterectomy, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty, Brian Bucher","0000-0003-4631-9992, 0000-0001-8376-9752","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +869,"[P] Lung Resection, adults, inpt stay, no ED","Lung Resection, adults, inpt stay, no ED","Lung Resection, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +870,"[P] Esophagectomy, adults, inpt stay, no ED","Esophagectomy, adults, inpt stay, no ED","Esophagectomy, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","132702","","2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +871,"[P] Pancreatectomy, adults, inpt stay, no ED","Pancreatectomy, adults, inpt stay, no ED","Pancreatectomy, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +872,"[P] Colectomy, adults, inpt stay, no ED","Colectomy, adults, inpt stay, no ED","Colectomy, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +873,"[P] Cystectomy, adults, inpt stay, no ED","Cystectomy, adults, inpt stay, no ED","Cystectomy, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +874,"[P] Nephrectomy, adults, inpt stay, no ED","Nephrectomy, adults, inpt stay, no ED","Nephrectomy, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty, Brian Bucher","0000-0003-4631-9992, 0000-0001-8376-9752","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +875,"[P] Coronary Artery Bypass Graft, adults, inpt stay, no ED","Coronary Artery Bypass Graft, adults, inpt stay, no ED","Coronary Artery Bypass Graft, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +876,"[P] Cardiac Valve Surgery, adults, inpt stay, no ED","Cardiac Valve Surgery, adults, inpt stay, no ED","Cardiac Valve Surgery, adults, inpt stay, no ED","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","4301351",,"2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +877,"[P] Non-Emergent MNCS (age 18 or greater), post op Afib (parox)","Non-Emergent MNCS (age 18 or greater), post op Afib (parox)","Non-Emergent MNCS (age 18 or greater), post op Afib (parox)","rao@ohdsi.org","Pending peer review","","","#Surgery, #NonEmergent",1,"Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","374954","","2023-09-19","2023-10-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",35,1,"ProcedureOccurrence",0,0,39,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +878,"[P] Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib","Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib","Major Non Cardiac Surgery, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","436100","https://forums.ohdsi.org/t/17784","2023-09-19","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",35,1,"ProcedureOccurrence",0,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +881,"[P] Acute myocardial infarction","Acute myocardial infarction","Acute myocardial infarction events","rao@ohdsi.org","Pending","","Acute myocardial infarction condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabetes",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","139900","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +882,"[P] Decreased libido","Decreased libido","Persons with decreased libido","rao@ohdsi.org","Pending","","The first condition record of decreased libido","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","377575","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-21",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +884,"[P] Diarrhea including enteritis","Diarrhea including enteritis","Diarrhea events","rao@ohdsi.org","Pending","","Diarrhea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","196523",,"2023-09-20","2023-10-09",,"",,0,,,"ERA","30","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +888,"[P] Gastrointestinal bleeding","Gastrointestinal bleeding","Gastrointestinal bleeding events","rao@ohdsi.org","Pending","","Gastrointestinal hemorrhage condition record during an inpatient or ER visit successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","196715","","2023-09-20","2023-09-20",,"",,0,,,"ERA","30","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +889,"[P] Hyponatremia","Hyponatremia","Hyponatremia events","rao@ohdsi.org","Pending","","Hyponatremia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","199837","","2023-09-20","2023-09-20",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +890,"[P] Hypotension","Hypotension","Hypotension events","rao@ohdsi.org","Pending","","Hypotension condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4133004, 43531681","https://forums.ohdsi.org/t/17769","2023-09-20","2023-09-20",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +891,"[P] Nausea","Nausea","Nausea events","rao@ohdsi.org","Pending","","Nausea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","436093","","2023-09-20","2023-09-20",,"",,0,,,"ERA","30","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +892,"[P] Stroke","Stroke","Stroke (ischemic or hemorrhagic) events","rao@ohdsi.org","Pending","","Stroke (ischemic or hemorrhagic) condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","443454","","2023-09-20","2023-09-20",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +893,"[P] Vertigo","Vertigo","Persons with vertigo","rao@ohdsi.org","Pending","","The first condition record of vertigo","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4192640, 199074","https://forums.ohdsi.org/t/17848","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +894,"[P] Abdominal pain","Abdominal pain","Abdominal pain events","rao@ohdsi.org","Pending","","Abdominal pain condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4192640, 199074, 4340961","https://forums.ohdsi.org/t/17848","2023-09-20","2023-09-24",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +895,"[P] Abnormal weight gain","Abnormal weight gain","Abnormal weight gain events","rao@ohdsi.org","Pending","","Abnormal weight gain record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #legendDiabetes, #Symptoms",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","377091, 380378, 4029498","https://forums.ohdsi.org/t/17569","2023-09-20","2023-09-24",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +896,"[P] Abnormal weight loss","Abnormal weight loss","Abnormal weight loss events","rao@ohdsi.org","Pending","","Abnormal weight loss observation record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #legendDiabetes",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","435928","","2023-09-20","2023-09-28",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +898,"[P] Acute renal failure","Acute renal failure","Acute renal failure events","rao@ohdsi.org","Pending","","Acute renal failure condition record during an inpatient or ER visit successive records with >30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabete",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","374923, 4091559","https://forums.ohdsi.org/t/17788","2023-09-20","2023-09-24",,"",,0,,,"ERA","30","fixed duration relative to initial event","StartDate",30,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +900,"[P] Anaphylactoid reaction","Anaphylactoid reaction","Anaphylactoid reaction events","rao@ohdsi.org","Pending","","Anaphylactoid reaction condition record during an inpatient or ER visit successive records with >7 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","441202","https://forums.ohdsi.org/t/16033","2023-09-20","2023-09-20",,"",,0,,,"ERA","7","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +901,"[P] Anemia","Anemia","Persons with anemia","rao@ohdsi.org","Pending","","The first condition record of anemia","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","441202","https://forums.ohdsi.org/t/18193","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +917,"[P] Anxiety","Anxiety","Persons with anxiety","rao@ohdsi.org","Pending","","The first condition record of anxiety, which is followed by another anxiety condition record or a drug used to treat anxiety","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +918,"[P] Bradycardia","Bradycardia","Persons with bradycardia","rao@ohdsi.org","Pending","","The first condition record of bradycardia, which is followed by another bradycardia condition record","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +919,"[P] Cardiac arrhythmia","Cardiac arrhythmia","Person with cardiac arrhythmia","rao@ohdsi.org","Pending","","The first condition record of cardiac arrhythmia, which is followed by another cardiac arrhythmia condition record, at least two drug records for a drug used to treat arrhythmias, or a procedure to treat arrhythmias","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197320","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +920,"[P] Cardiovascular disease","Cardiovascular disease","Total cardiovascular disease events (ischemic stroke, hemorrhagic stroke, heart failure, acute myocardial infarction or sudden cardiac death)","rao@ohdsi.org","Pending","","A condition record of ischemic stroke, hemorrhagic stroke, heart failure, acute myocardial infarction or sudden cardiac death during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197320","","2023-09-20","2023-09-20",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",5,1,"ConditionOccurrence",0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +921,"[P] Cardiovascular-related mortality","Cardiovascular-related mortality","Cardiovascular-related mortality","rao@ohdsi.org","Pending","","Death record with at least 1 cardiovascular-related condition record (myocardial infarction, ischemic stroke, intracranial hemorrhage, sudden cardiac death, hospitalization for heart failure) in 30 days prior to death","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197320","https://forums.ohdsi.org/t/16067","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"Death",0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,,,,,,,, +922,"[P] Chest pain or angina","Chest pain or angina","Persons with chest pain or angina","rao@ohdsi.org","Pending","","The first condition record of chest pain or angina","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","435503, 439777, 441269","https://forums.ohdsi.org/t/17856","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +923,"[P] Kidney disease","Kidney disease","Persons with chronic kidney disease","rao@ohdsi.org","Pending","","The first condition record of chronic kidney disease, which is followed by either another chronic kidney disease condition record or a dialysis procedure or observation","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","435503, 439777, 441269","https://forums.ohdsi.org/t/17856","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +924,"[P] Coronary heart disease","Coronary heart disease","Coronary heart disease events (acute myocardial infarction or sudden cardiac death)","rao@ohdsi.org","Pending","","A condition record of acute myocardial infarction or sudden cardiac death during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","437579, 4103295","","2023-09-20","2023-09-20",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +925,"[P] Cough","Cough","Cough events","rao@ohdsi.org","Pending","","Cough condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #respiratory, #lung",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","321042, 437579, 4103295","","2023-09-20","2023-09-28",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +927,"[P] Dementia2","Dementia2","Persons with dementia","rao@ohdsi.org","Pending","","The first condition record of dementia","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4182210","","2023-09-20","2023-10-03",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +928,"[P] Depression2","Depression2","Persons with depression","rao@ohdsi.org","Pending","","The first condition record of depression, which is followed by another depression condition record, at least two drugs used to treat depression without another indication, or two psychotherapy procedures","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","377556","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +929,"[P] Edema events","Edema events","Edema events","rao@ohdsi.org","Pending","","Edema condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","374053, 377889","","2023-09-20","2023-10-03",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +930,"[P] End stage renal disease2","End stage renal disease2","Persons with end stage renal disease","rao@ohdsi.org","Pending","","The first condition record of end stage renal disease, which is followed by either another end stage renal disease condition record or a dialysis procedure or observation within 90 days","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","138525, 194133","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"All",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +931,"[P] Fall2","Fall2","Fall events","rao@ohdsi.org","Pending","","Fall condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","134736, 194133","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,,,,,, +932,"[P] Gout2","Gout2","Persons with gout","rao@ohdsi.org","Pending","","The first condition record of gout","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","200219","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +933,"[P] Headache2","Headache2","Headache events","rao@ohdsi.org","Pending","","Headache condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197381, 4306292","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA","30","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +934,"[P] Heart failure2","Heart failure2","Persons with heart failure","rao@ohdsi.org","Pending","","The first condition record of heart failure, which is followed by at least 1 heart failure condition record in the following year","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","78232, 80180","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,0,"All",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +935,"[P] Hemorrhagic stroke2","Hemorrhagic stroke2","Hemorrhagic stroke (intracerebral bleeding) events","rao@ohdsi.org","Pending","","Intracranial, cerebral or subarachnoid hemorrhage condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","194997","","2023-09-20","2023-09-20",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +936,"[P] Hepatic failure2","Hepatic failure2","Persons with hepatic failure","rao@ohdsi.org","Pending","","The first condition record of hepatic failure, necrosis, or coma","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","320116, 4138837","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +938,"[P] Hospitalization with heart failure","Hospitalization with heart failure","Hospitalization with heart failure events","rao@ohdsi.org","Pending","","Inpatient or ER visits with heart failure condition record all qualifying inpatient visits occurring > 7 days apart are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","Evan Minty","","79908, 138965, 139803, 380995, 443904","https://forums.ohdsi.org/t/17769","2023-09-20","2023-09-20",,"",,0,,,"ERA","7","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,1,,,,,,,,, +939,"[P] Hospitalization with preinfarction syndrome","Hospitalization with preinfarction syndrome","Hospitalization with preinfarction syndrome events","rao@ohdsi.org","Pending","","Inpatient or ER visits with preinfarction syndrome condition record all qualifying inpatient visits occurring > 7 days apart are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","201820, 201826","https://forums.ohdsi.org/t/15764","2023-09-20","2023-09-20",,"",,0,,,"ERA","7","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,1,,,,,,,,, +940,"[P] Hyperkalemia","Hyperkalemia","Hyperkalemia events","rao@ohdsi.org","Pending","","Condition record for hyperkalemia or potassium measurements > 5.6 mmol/L successive records with >90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Diabetes, #legendDiabetes",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","313217, 44784217","","2023-09-20","2023-09-24",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, Measurement",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +941,"[P] Hypokalemia","Hypokalemia","Hypokalemia events","rao@ohdsi.org","Pending","","Hypokalemia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","138384, 140673","","2023-09-20","2023-09-20",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +942,"[P] Hypomagnesemia","Hypomagnesemia","Hypomagnesemia events","rao@ohdsi.org","Pending","","Hypomagnesemia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","78474, 80767, 137809","","2023-09-20","2023-09-20",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +943,"[P] Impotence","Impotence","Persons with impotence","rao@ohdsi.org","Pending","","The first condition record of impotence","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +944,"[P] Ischemic stroke","Ischemic stroke","Ischemic stroke events","rao@ohdsi.org","Pending","","Ischemic stroke condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","194990","","2023-09-20","2023-09-20",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +945,"[P] Malignant neoplasm","Malignant neoplasm","Persons with a malignant neoplasm other than non-melanoma skin cancer","rao@ohdsi.org","Pending","","The first condition record of a malignant neoplasm, with at least 2 conditions records for one of 17 leading cancer (breast, prostate, lung, colorectal, bladder, ovary, uterus, thyroid, kidney, brain, pancreas, liver, multiple myeloma, leukemia, melanoma, myelodysplastic syndrome)","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","194990","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +946,"[P] Measured renal dysfunction","Measured renal dysfunction","Persons with measured renal dysfunction","rao@ohdsi.org","Pending","","The first creatinine measurement with value > 3 mg/dL","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","4245975","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,0,"First",FALSE,"All","First",1,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +947,"[P] Neutropenia or agranulocytosis","Neutropenia or agranulocytosis","Persons with neutropenia or agranulocytosis","rao@ohdsi.org","Pending","","The first condition record of neutropenia or agranulocytosis","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","Evan Minty","","79908, 139803, 443904","https://forums.ohdsi.org/t/17769","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +948,"[P] Rash","Rash","Rash events","rao@ohdsi.org","Pending","","Rash condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension, #Symptoms",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","79864, 437038","","2023-09-20","2023-09-24",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +950,"[P] Rhabdomyolysis2","Rhabdomyolysis2","Rhabdomyolysis events","rao@ohdsi.org","Pending","","Rhabdomyolysis condition record or muscle disorder condition record with creatine measurement 5*ULN during an inpatient or ER visit successive records with >90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","192671","","2023-09-20","2023-09-20",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",TRUE,"All","All",2,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +953,"[P] Sudden cardiac death in inpatient","Sudden cardiac death in inpatient","Sudden cardiac death events in inpatient","rao@ohdsi.org","Pending","","Sudden cardiac death condition record during an inpatient or ER visit successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","197607, 4302555","","2023-09-20","2023-09-24",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +954,"[P] Syncope","Syncope","Syncope events","rao@ohdsi.org","Pending","","Syncope condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","377252","https://forums.ohdsi.org/t/18236","2023-09-20","2023-09-20",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +955,"[P] Thrombocytopenia","Thrombocytopenia","Persons with thrombocytopenia","rao@ohdsi.org","Pending","","The first condition record of thrombocytopenia","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","376938","https://forums.ohdsi.org/t/18236","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +956,"[P] Transient ischemic attack","Transient ischemic attack","Transient ischemic attack events","rao@ohdsi.org","Pending","","Transient ischemic attack condition record during an inpatient or ER visit successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","4112970","https://forums.ohdsi.org/t/18236","2023-09-20","2023-09-20",,"",,0,,,"ERA","30","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +957,"[P] Type 2 diabetes mellitus","Type 2 diabetes mellitus","Persons with type 2 diabetes mellitus","rao@ohdsi.org","Pending","","The first condition record of Type 2 Diabetes Mellitus, which is followed by another Type 2 Diabetes Mellitus condition record, at least 2 drugs used to treat Type 2 diabetes, or at least 2 HbA1c measurements with value > 6.5%","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","","","","4216000, 4246137","https://forums.ohdsi.org/t/18236","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +963,"[P] Vomiting","Vomiting","Vomiting events","rao@ohdsi.org","Pending","","Vomiting condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","25297, 4226263","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","30","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +964,"[P] Chronic kidney disease","Chronic kidney disease","Persons with chronic kidney disease with 2+ diagnoses across 30d or 2+ dialysis","rao@ohdsi.org","Pending","","Persons with chronic kidney disease with 2+ diagnoses across 30d or 2+ dialysis","#usedInStudy, #LEGEND, #Hypertension, #legendHypertension",1,"'Marc Suchard','Martijn Schuemie','Harlan Krumholz','Seng Chan You','RuiJun Chun','Nicole Pratt','Christian Reich','Jon Duke','David Madigan','George Hripcsak','Patrick Ryan'","0000-0001-9818-479X', '0000-0002-0817-5361', '0000-0003-2046-127X','','','0000-0001-8730-8910', '','','','',''","'OHDSI'","","","314754","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +965,"[P] 3-point MACE","3-point MACE","","rao@ohdsi.org","Pending","","Condition record of acute myocardial infarction, hemorrhagic or ischemic stroke or sudden cardiac death during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","253506, 255848","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",4,1,"ConditionOccurrence",0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +967,"[P] 4-point MACE","4-point MACE","","rao@ohdsi.org","Pending","","3-Point MACE $+$ inpatient or ER visit (hospitalization) with heart failure condition record","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4023572","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",5,1,"ConditionOccurrence",0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +976,"[P] Glycemic control","Glycemic control","","rao@ohdsi.org","Pending","","First hemoglobin A1c measurement with value $\le$ 7\%","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","317009","","2023-09-20","2023-09-24",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",2,1,"Measurement",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +979,"[P] Hospitalization with heart failure indexed on hospitalization","Hospitalization with heart failure indexed on hospitalization","","rao@ohdsi.org","Pending","","Inpatient or ER visit with heart failure condition record","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","","","","441542, 442077","","2023-09-20","2023-09-24",,"",,0,,,"ERA","7","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,1,,,,,,,,, +980,"[P] Revascularization","Revascularization","Coronary Vessel Revascularization","rao@ohdsi.org","Pending","","Procedure record of percutaneous coronary intervention or coronary artery bypass grafting during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4283892,4336464",,"2023-09-20","2023-10-04",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","All",2,1,"ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +982,"[P] Stroke (ischemic or hemorrhagic) in inpatient","Stroke (ischemic or hemorrhagic) in inpatient","Stroke (ischemic or hemorrhagic) in inpatient","rao@ohdsi.org","Pending","","Condition record of hemorrhagic or ischemic stroke during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","134438, 45766714","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +986,"[P] Acute pancreatitis2","Acute pancreatitis2","","rao@ohdsi.org","Pending","","Condition record of acute pancreatitis during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","","","2023-09-20","2023-09-20",,"",,0,,,"ERA","30","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +989,"[P] Bladder cancer","Bladder cancer","Bladder Cancer","rao@ohdsi.org","Pending","","Malignant tumor of urinary bladder condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","","","2023-09-20","2023-10-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +990,"[P] Bone fracture","Bone fracture","Bone Fracture","rao@ohdsi.org","Pending","","Bone fracture condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","75053",,"2023-09-20","2023-10-04",,"",,0,,,"ERA","90","fixed duration relative to initial event","EndDate",1,0,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +991,"[P] Breast cancer Malignant tumor of breast","Breast cancer Malignant tumor of breast","Breast cancer Malignant tumor of breast","rao@ohdsi.org","Pending","","Malignant tumor of breast condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","197925, 4245614","","2023-09-20","2023-09-24",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +992,"[P] Diabetic ketoacidosis with inpatient or ER visit","Diabetic ketoacidosis with inpatient or ER visit","","rao@ohdsi.org","Pending","","Diabetic ketoacidosis condition record during an inpatient or ER visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","261687","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",7,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +993,"[W] Diarrhea including enteritis","Diarrhea including enteritis","","rao@ohdsi.org","Pending","","Diarrhea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4209223, 4285898, 42537251","https://forums.ohdsi.org/t/17895","2023-09-20","2023-10-09",,"","duplicate 884",0,,,"ERA","30","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +994,"[P] Genitourinary infection","Genitourinary infection","Genitourinary infection","rao@ohdsi.org","Pending","","Condition record of any type of genital or urinary tract infection during an outpatient or ER vists","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","24660, 4083666","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-25",,"",,0,,,"ERA","30","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +996,"[P] Hypoglycemia","Hypoglycemia","Hypoglycemia","rao@ohdsi.org","Pending","","Hypoglycemia condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","257007, 4320791","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA","30","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +997,"[W] Hypotension or low blood pressure","Hypotension or low blood pressure","Hypotension","rao@ohdsi.org","Pending","","Hypotension condition record of any type successive records with > 90 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","24969, 260134","https://forums.ohdsi.org/t/17895","2023-09-20","2023-10-09",,"","duplicates 890",0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +998,"[P] Joint pain3","Joint pain3","","rao@ohdsi.org","Pending","","Joint pain condition record of any type successive records with > 90 days gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","4096682","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +999,"[P] Lower extremity amputation3","Lower extremity amputation3","Lower extremity amputation","rao@ohdsi.org","Pending","","Procedure record of below knee lower extremity amputation during inpatient or outpatient visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","261600, 4078925","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",0,0,"All",TRUE,"All","All",1,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +1000,"[P] Nausea3","Nausea3","","rao@ohdsi.org","Pending","","Nausea condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","319049, 4256228","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","30","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1001,"[W] Peripheral edema","Peripheral edema","Peripheral edema","rao@ohdsi.org","Pending","","Edema condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","319049, 4256228","https://forums.ohdsi.org/t/17895","2023-09-20","2023-10-16",,"","unclear about the origins and also how does it differ from 929",0,,,"ERA","180","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1002,"[P] Photosensitivity","Photosensitivity","Photosensitivity","rao@ohdsi.org","Pending","","Condition record of drug-induced photosensitivity during any type of visit","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","254061","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1003,"[P] Renal cancer","Renal cancer","Renal Cancer","rao@ohdsi.org","Pending","","Primary malignant neoplasm of kidney condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","73754","https://forums.ohdsi.org/t/18236","2023-09-20","2023-09-24",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1004,"[P] Thyroid tumor","Thyroid tumor","Thyroid tumor","rao@ohdsi.org","Pending","","Neoplasm of thyroid gland condition record of any type limited to earliest event per person","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","","","","4131909",,"2023-09-20","2023-10-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1005,"[P] Venous thromboembolism","Venous thromboembolism","Venous thromboembolism","rao@ohdsi.org","Pending","","Venous thromboembolism condition record of any type successive records with > 180 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","72404, 72711","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA","180","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1006,"[P] Vomiting symptoms","Vomiting symptoms","Vomiting","rao@ohdsi.org","Pending","","Vomiting condition record of any type successive records with > 30 day gap are considered independent episodes","#usedInStudy, #LEGEND, #Diabetes, #legendDiabetes, #Symptoms",1,"Rohan Khera','Martijn Schuemie','Yuan Lu','Anna Ostropolets','RuiJun Chun','George Hripcsak','Patrick Ryan','Harlan Krumholz','Marc Suchard'","0000-0001-9467-6199', '0000-0002-0817-5361', '', '0000-0002-0847-6682', '', '','','0000-0003-2046-127X','0000-0001-9818-479X'","'OHDSI'","","","435524, 442588","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-24",,"",,0,,,"ERA","30","fixed duration relative to initial event","StartDate",1,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1007,"[P] Earliest event of Epilepsy","Earliest event of Epilepsy","Earliest event of Epilepsy","rao@ohdsi.org","Pending","","Earliest occurrence of Epilepsy indexed on diagnosis date cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","197684, 4021780","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1009,"[P] Earliest event of Treatment resistant depression (TRD)","Earliest event of Treatment resistant depression (TRD)","Earliest event of Treatment resistant depression (TRD)","rao@ohdsi.org","Pending","","Depression disorder patients indexed on prescription date of a first-line anti-depressant preceded by at least two prior first-line anti-depressants) or indexed on an antipsychotic preceded by a first-line anti-depressant or indexed on use of esketamine preceded by a first-line anti-depressant subset to the earliest entry with a depressive disorder diagnosis in the prior year and no history of mania, dementia, or psychosis requiring continuous enrollment for the year preceding the index date and the year preceding the depression diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","25297, 28060, 4226263","","2023-09-20","2023-10-04",,"",,0,,,"ERA","0","end of continuous observation",,,3,"All",TRUE,"First","First",3,1,"DrugEra",0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,1,,,, +1010,"[P] Earliest event of Chronic Graft Versus Host Disease (GVHD)","Earliest event of Chronic Graft Versus Host Disease (GVHD)","Earliest event of Chronic Graft Versus Host Disease (GVHD)","rao@ohdsi.org","Pending","","Earliest occurrence of Chronic graft-versus-host disease indexed on diagnosis date of Chronic graft-versus-host disease or acute on Chronic graft-versus-host disease (for the first time in history) or unspecified raft-versus-host disease with a Hematopoietic Stem Cell Transplantation (HSCT) anytime prior to 180 days prior to index, cohort exit is the end of continuous observation","#JnJ, #Indication",1,"Jill Hardin","","'OHDSI'","","","257007, 4320791","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"All",FALSE,"All","First",3,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1011,"[P] Earliest event of Marginal zone lymphoma","Earliest event of Marginal zone lymphoma","Earliest event of Marginal zone lymphoma","rao@ohdsi.org","Pending","","Earliest occurrence of Marginal zone lymphoma, indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication",1,"Jill Hardin","","'OHDSI'","","","260123, 4283893","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1012,"[P] Earliest event of Waldenstrom macroglobulinemia","Earliest event of Waldenstrom macroglobulinemia","Earliest event of Waldenstrom macroglobulinemia","rao@ohdsi.org","Pending","","Earliest occurrence of Waldenstrom macroglobulinemia indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication",1,"'Jill Hardin'","","'OHDSI'","","","435502",,"2023-09-20","2023-10-04",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1013,"[P] Earliest event of Ankylosing Spondylitis","Earliest event of Ankylosing Spondylitis","Earliest event of Ankylosing Spondylitis","rao@ohdsi.org","Pending","","Earliest occurrence of Ankylosing Spondylitis indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication",1,"Joel Swerdel'","","'OHDSI'","","","257007, 43021227","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1016,"[P] Earliest event of Polyarticular juvenile idiopathic arthritis (JIA)","Earliest event of Polyarticular juvenile idiopathic arthritis (JIA)","Earliest event of Polyarticular juvenile idiopathic arthritis (JIA)","rao@ohdsi.org","Pending","","First occurrence of Polyarticular juvenile idiopathic arthritis (JIA)) indexed on diagnosis date, for the first time in history. Requiring that events occurred on or after January of 2016 and limited to patients with age less or equal to 16 years old. cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","372328","","2023-09-20","2023-10-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1017,"[P] Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old","Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old","Earliest event of Neonatal Thrombocytopenia (NT), less than 1 year old","rao@ohdsi.org","Pending","","Earliest occurrence of Neonatal Thrombocytopenia indexed on diagnosis date, for the first time in history limited to patients less than 1 years old, cohort exit is the end of continuous observation","#JnJ, #Indication",1,"Nathan Hal', 'Azza Shoaibi'","0000-0002-6976-2594'","'OHDSI'","","","439777","https://forums.ohdsi.org/t/17856","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1018,"[P] Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA)","Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA)","Earliest event of Warm Autoimmune Hemolytic Anemia (wAIHA)","rao@ohdsi.org","Pending","","Earliest occurrence of Warm Autoimmune Hemolytic Anemia (wAIHA) indexed on diagnosis date, for the first time in history cohort exit is the end of continuous observation","#JnJ, #Indication",1,"'Jill Hardin'","","'OHDSI'","","","437264, 440069","","2023-09-20","2023-10-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1019,"[P] All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode","All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode","All events of Hemolytic Disease Fetus and Newborn (HDFN), RhD type, with a pregnancy episode","rao@ohdsi.org","Pending","","All events of Hemolytic Disease Fetus and Newborn (HDFN) indexed on diagnosis date, requiring a pregnancy episode that started any time prior index and pregnancy ends between 14 days pre to all time post index patients exit the cohort 270 days post index or on events signaling pregnancy end. Reoccurrence events are collapsed if the next event starts within 90 days of end of prior event.","#JnJ, #Indication",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","444367, 4145627","","2023-09-20","2023-09-20",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",270,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1020,"[P] Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder","Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder","Earliest event of Major depressive disorder, with NO occurrence of certain psychiatric disorder","rao@ohdsi.org","Pending","","Earliest occurrence of major depressive disorder indexed on diagnosis date requiring no occurrence anytime prior including day 0 of Bipolar disorder, Schizoaffective, Schizophrenia not including paraphrenia, Dementia or Psychotic disorder cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Dave Kern, Joel Swerdel","","'OHDSI'","","","441259, 4177600",,"2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"All","First",1,1,"ConditionOccurrence",0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1021,"[P] Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18","Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18","Earliest event of Myasthenia Gravis, inpatient, 2nd diagnosis or treatment, age gte 18","rao@ohdsi.org","Pending","","Earliest occurrence of myasthenia gravis (excluding congenital, juvenile, neonatal or genetic) indexed on diagnosis date requiring either a second diagnosis of myasthenia gravis within 365 days after the first diagnosis (index date) or a drug exposure to Pyridostigmine on or 60 days after the first diagnosis or that the first diagnosis occur in an inpatient setting cohort exit is the end of continuous observation. Limit to persons with age greater than or equal to 18 on entry.","#JnJ, #Indication",1,"Mitch Conover'","","'OHDSI'","","","4155911",,"2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,2,"ConditionOccurrence, DrugExposure",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,,,,,, +1022,"[P] Earliest event of Depressive and Sleep Disorder","Earliest event of Depressive and Sleep Disorder","Earliest event of Depressive and Sleep Disorder","rao@ohdsi.org","Pending","","Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by a sleep disorder diagnosis in the prior year 2) a sleep disorder diagnosis that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Joel Swerdel','Azza Shoaibi'","","'OHDSI'","","","441259, 4307580",,"2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1023,"[P] Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent","Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent","Earliest Event of Depressive Disorder with Suicidal Ideation or Attempt Prevalent","rao@ohdsi.org","Pending","","Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by a suicidal ideation diagnosis or suicide observation in the prior year, or 2) a suicide ideation diagnosis that is preceded by a depressive disorder diagnosis in the prior year, or 3) a suicide attempt observation that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Joel Swerdel','Azza Shoaibi' ,'Pranav Bhimani'","","'OHDSI'","","","438252, 4118793",,"2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",3,2,"ConditionOccurrence, Observation",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,,,,,,,,,, +1024,"[P] Earliest Event of Depressive Disorder with Anhedonia","Earliest Event of Depressive Disorder with Anhedonia","Earliest Event of Depressive Disorder with Anhedonia","rao@ohdsi.org","Pending","","Earliest occurrence of either 1) a depressive disorder diagnosis that is preceded by an Anhedonia diagnosis in the prior year or 2) an anhedonia diagnosis that is preceded by a depressive disorder diagnosis in the prior year cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Joel Swerdel', 'Pranav Bhimani'","","'OHDSI'","","","137977, 435656","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1025,"[P] First event of Attention-deficit hyperactivity (ADHD) disorder or procedure","First event of Attention-deficit hyperactivity (ADHD) disorder or procedure","First event of Attention-deficit hyperactivity (ADHD) disorder or procedure","rao@ohdsi.org","Pending","","First occurrence of Attention-deficit hyperactivity disorder (ADHD) condition or related procedures, indexed on the earliest occurrence of ADHD condition, procedure or treatment (limited to drug exposure followed by a related condition or procedure), with 365d prior observation, exit at end of observation","#JnJ, #Indication",1,"Jamie Weaves', 'Mitch Connover'","","'OHDSI'","","","40480225,4047120",,"2023-09-20","2023-10-04",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",3,3,"ConditionOccurrence, DrugExposure, ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,1,,,,, +1026,"[P] Earliest Event of Multiple Sclerosis","Earliest Event of Multiple Sclerosis","Earliest Event of Multiple Sclerosis","rao@ohdsi.org","Pending","","Earliest occurrence of multiple sclerosis indexed on diagnosis date for the first time in persons history cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Joel Swerdel'","","'OHDSI'","","","135618, 4169287","https://forums.ohdsi.org/t/17895","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1027,"[P] Earliest event of Chronic Leukocytic Leukemia","Earliest event of Chronic Leukocytic Leukemia","Earliest event of Chronic Leukocytic Leukemia","rao@ohdsi.org","Pending","","Earliest event of Chronic Leukocytic Leukemia (not including Hairy cell, prolymphocytic leukemia, T cell, reticuloendotheliosis) for the first time in persons history, exit cohort at the end of continuous observation period.","#JnJ, #Indication",1,"Jill Hardin'","","'OHDSI'","","","133834, 133835, 45766714","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1028,"[P] Earliest event of Urothelial carcinoma","Earliest event of Urothelial carcinoma","Earliest event of Urothelial carcinoma","rao@ohdsi.org","Pending","","Earliest event of Urothelial Carcinoma indexed on diagnosis Indexed on Primary or malignant urothelial bladder cancer diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Jill Hardin'","","'OHDSI'","","","134438","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1029,"[P] Earliest event of Mantle Cell Lymphoma","Earliest event of Mantle Cell Lymphoma","Earliest event of Mantle Cell Lymphoma","rao@ohdsi.org","Pending","","Earliest event of Urothelial Carcinoma indexed on diagnosis Indexed on Primary or malignant urothelial bladder cancer diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Jill Hardin'","","'OHDSI'","","","4242574","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1030,"[P] Earliest event of Prostate cancer, among adult males","Earliest event of Prostate cancer, among adult males","Earliest event of Prostate cancer, among adult males","rao@ohdsi.org","Pending","","Earliest event of Prostate cancer restricting age greater than or equal to 18 and males indexed on prostate cancer diagnosis cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Rupa Makadia","","'OHDSI'","","","137053","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1031,"[P] Earliest event of Coronary artery disease (CAD)","Earliest event of Coronary artery disease (CAD)","Earliest event of Coronary artery disease (CAD)","rao@ohdsi.org","Pending","","Earliest event of Coronary Artery Disease for the first time in the persons history Indexed on coronary artery disease diagnosis (condition or observation) cohort exit is the end of continuous observation.","#JnJ, #Indication",1,"Joel Swerdel'","","'OHDSI'","","","4203600, 4239682, 4331304","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,,,,,,,,,, +1032,"[P] Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM","Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM","Earliest event of Type 2 Diabetes Mellitus (DM), with no type 1 or secondary DM","rao@ohdsi.org","Pending","","Earliest event of Type 2 Diabetes Mellitus (DM), indexed on diagnosis or Blood glucose lowering drugs excluding insulin or high Hemoglobin A1c (limited to treatments or measurement that are followed with Type 2 DM diagnosis within 365 days) excluding persons with Type 1 DM or secondary diabetes mellitus in the all time prior including index date","#JnJ, #Indication",1,"Patrick Ryan,","","'OHDSI'","","","4027396","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",4,3,"ConditionOccurrence, DrugExposure, Measurement",0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,,,,,, +1033,"[P] Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis","Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis","Earliest event of Human Immunodeficiency Virus I (HIV), with treatment, lab or 2nd diagnosis","rao@ohdsi.org","Pending","","Earliest event of Human Immunodeficiency Virus I (HIV), with HIV drugs or laboratory results any time after index date or second diagnosis post index cohort exit is the end of continuous observation","#JnJ, #Indication",1,"Rupa Makadia, Jamie Calusardo","","'OHDSI'","","","4027396, 4117779","","2023-09-20","2023-10-04",,"",,0,,,"ERA","0","end of continuous observation",,,0,"All",TRUE,"First","First",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1034,"[P] All events of Respiratory syncytial virus infection, with 30 days washout","All events of Respiratory syncytial virus infection, with 30 days washout","All events of Respiratory syncytial virus infection, with 30 days washout","rao@ohdsi.org","Pending","","All events of Respiratory syncytial virus infection, with no such events in prior 30 days (washout). Persons exit the cohort at the start date + 30 day.","#JnJ, #Indication",1,"Nathan Hall, Rupa Makadia","","'OHDSI'","","","377889","","2023-09-20","2023-09-20",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",30,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1035,"[P] New users of Thiazide diuretics","New users of Thiazide diuretics","New users of Thiazide diuretics","rao@ohdsi.org","Pending peer review","","New users of Thiazide diuretics","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,0,90,0, +1036,"[P] New users of Beta blockers","New users of Beta blockers","New users of Beta blockers","rao@ohdsi.org","Pending peer review","","New users of Beta blockers","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,2,90,0, +1037,"[P] New users of SGLT2 inhibitor","New users of SGLT2 inhibitor","New users of SGLT2 inhibitor","rao@ohdsi.org","Pending peer review","","New users of SGLT2 inhibitor","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,3,90,0, +1038,"[P] New users of GLP-1 receptor antagonists","New users of GLP-1 receptor antagonists","New users of GLP-1 receptor antagonists","rao@ohdsi.org","Pending peer review","","New users of GLP-1 receptor antagonists","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,4,90,0, +1039,"[P] New users of DPP-4 inhibitors","New users of DPP-4 inhibitors","New users of DPP-4 inhibitors","rao@ohdsi.org","Pending peer review","","New users of DPP-4 inhibitors","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,5,90,0, +1040,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors","rao@ohdsi.org","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,6,90,0, +1041,"[P] New users of JAK inhibitors","New users of JAK inhibitors","New users of JAK inhibitors","rao@ohdsi.org","Pending peer review","","New users of JAK inhibitors","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,7,90,0, +1042,"[P] New users of IL-23 inhibitors","New users of IL-23 inhibitors","New users of IL-23 inhibitors","rao@ohdsi.org","Pending peer review","","New users of IL-23 inhibitors","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-10-03",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,8,90,0, +1043,"[P] New users of Fluoroquinolone systemic","New users of Fluoroquinolone systemic","New users of Fluoroquinolone systemic","rao@ohdsi.org","Pending peer review","","New users of Fluoroquinolone systemic","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,9,30,0, +1044,"[P] New users of Cephalosporin systemetic","New users of Cephalosporin systemetic","New users of Cephalosporin systemetic","rao@ohdsi.org","Pending peer review","","New users of Cephalosporin systemetic","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,10,30,0, +1045,"[P] New users of Trimethoprim systemetic","New users of Trimethoprim systemetic","New users of Trimethoprim systemetic","rao@ohdsi.org","Pending peer review","","New users of Trimethoprim systemetic","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,11,30,0, +1046,"[P] New users of Thiazide diuretics nested in essential hypertension","New users of Thiazide diuretics nested in essential hypertension","New users of Thiazide diuretics nested in essential hypertension","rao@ohdsi.org","Pending peer review","","New users of Thiazide diuretics nested in essential hypertension","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,0,90,0, +1047,"[P] New users of dihydropyridine calcium channel blockers nested in essential hypertension","New users of dihydropyridine calcium channel blockers nested in essential hypertension","New users of dihydropyridine calcium channel blockers nested in essential hypertension","rao@ohdsi.org","Pending peer review","","New users of dihydropyridine calcium channel blockers nested in essential hypertension","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,1,90,0, +1048,"[P] New users of dihydropyridine calcium channel blockers","New users of dihydropyridine calcium channel blockers","New users of dihydropyridine calcium channel blockers","rao@ohdsi.org","Pending peer review","","New users of dihydropyridine calcium channel blockers","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,1,90,0, +1049,"[P] New users of Beta blockers nested in essential hypertension","New users of Beta blockers nested in essential hypertension","New users of Beta blockers nested in essential hypertension","rao@ohdsi.org","Pending peer review","","New users of Beta blockers nested in essential hypertension","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,2,90,0, +1050,"[P] New users of Beta blockers nested in Left Heart Failure","New users of Beta blockers nested in Left Heart Failure","New users of Beta blockers nested in Left Heart Failure","rao@ohdsi.org","Pending peer review","","New users of Beta blockers nested in Left Heart Failure","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,2,90,0, +1051,"[P] New users of SGLT2 inhibitor nested in Left Heart Failure","New users of SGLT2 inhibitor nested in Left Heart Failure","New users of SGLT2 inhibitor nested in Left Heart Failure","rao@ohdsi.org","Pending peer review","","New users of SGLT2 inhibitor nested in Left Heart Failure","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,3,90,0, +1052,"[P] New users of Beta blockers nested in Acute Myocardial Infarction","New users of Beta blockers nested in Acute Myocardial Infarction","New users of Beta blockers nested in Acute Myocardial Infarction","rao@ohdsi.org","Pending peer review","","New users of Beta blockers nested in Acute Myocardial Infarction","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,2,90,0, +1053,"[P] New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus","New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus","New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus","rao@ohdsi.org","Pending peer review","","New users of GLP-1 receptor antagonists nested in Type 2 diabetes mellitus","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,4,90,0, +1054,"[P] New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus","New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus","New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus","rao@ohdsi.org","Pending peer review","","New users of SGLT2 inhibitor nested in Type 2 diabetes mellitus","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,3,90,0, +1055,"[P] New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus","New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus","New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus","rao@ohdsi.org","Pending peer review","","New users of DPP-4 inhibitors nested in Type 2 diabetes mellitus","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,5,90,0, +1056,"[P] New users of GLP-1 receptor antagonists nested in obesity","New users of GLP-1 receptor antagonists nested in obesity","New users of GLP-1 receptor antagonists nested in obesity","rao@ohdsi.org","Pending peer review","","New users of GLP-1 receptor antagonists nested in obesity","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,4,90,0, +1057,"[P] New users of IL-23 inhibitors nested in Plaque psoriasis","New users of IL-23 inhibitors nested in Plaque psoriasis","New users of IL-23 inhibitors nested in Plaque psoriasis","rao@ohdsi.org","Pending peer review","","New users of IL-23 inhibitors nested in Plaque psoriasis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-10-03",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,8,90,0, +1058,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis","rao@ohdsi.org","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Plaque psoriasis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,6,90,0, +1059,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis","rao@ohdsi.org","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Psoriatic Arthritis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,6,90,0, +1060,"[P] New users of Fluoroquinolone systemic nested in Urinary Tract Infection","New users of Fluoroquinolone systemic nested in Urinary Tract Infection","New users of Fluoroquinolone systemic nested in Urinary Tract Infection","rao@ohdsi.org","Pending peer review","","New users of Fluoroquinolone systemic nested in Urinary Tract Infection","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,9,30,0, +1061,"[P] New users of Cephalosporin systemetic nested in Urinary Tract Infection","New users of Cephalosporin systemetic nested in Urinary Tract Infection","New users of Cephalosporin systemetic nested in Urinary Tract Infection","rao@ohdsi.org","Pending peer review","","New users of Cephalosporin systemetic nested in Urinary Tract Infection","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,10,30,0, +1062,"[P] New users of Trimethoprim systemetic nested in Urinary Tract Infection","New users of Trimethoprim systemetic nested in Urinary Tract Infection","New users of Trimethoprim systemetic nested in Urinary Tract Infection","rao@ohdsi.org","Pending peer review","","New users of Trimethoprim systemetic nested in Urinary Tract Infection","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,11,30,0, +1063,"[P] New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia","New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia","New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia","rao@ohdsi.org","Pending peer review","","New users of Fluoroquinolone systemic nested in Acute Typical Pneumonia","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,9,30,0, +1064,"[P] New users of Cephalosporin systemetic nested in Acute Typical Pneumonia","New users of Cephalosporin systemetic nested in Acute Typical Pneumonia","New users of Cephalosporin systemetic nested in Acute Typical Pneumonia","rao@ohdsi.org","Pending peer review","","New users of Cephalosporin systemetic nested in Acute Typical Pneumonia","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,10,30,0, +1065,"[P] New users of Trimethoprim systemetic nested in Acute Typical Pneumonia","New users of Trimethoprim systemetic nested in Acute Typical Pneumonia","New users of Trimethoprim systemetic nested in Acute Typical Pneumonia","rao@ohdsi.org","Pending peer review","","New users of Trimethoprim systemetic nested in Acute Typical Pneumonia","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,11,30,0, +1066,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis","rao@ohdsi.org","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Rheumatoid arthritis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,6,90,0, +1067,"[P] New users of JAK inhibitors nested in Ulcerative colitis","New users of JAK inhibitors nested in Ulcerative colitis","New users of JAK inhibitors nested in Ulcerative colitis","rao@ohdsi.org","Pending peer review","","New users of JAK inhibitors nested in Ulcerative colitis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,7,90,0, +1068,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis","rao@ohdsi.org","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Ulcerative colitis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,6,90,0, +1069,"[P] New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease","rao@ohdsi.org","Pending peer review","","New users of Tumor Necrosis Factor alpha (TNFa) inhibitors nested in Crohns disease","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,6,90,0, +1070,"[P] New users of JAK inhibitors nested in Rheumatoid arthritis","New users of JAK inhibitors nested in Rheumatoid arthritis","New users of JAK inhibitors nested in Rheumatoid arthritis","rao@ohdsi.org","Pending peer review","","New users of JAK inhibitors nested in Rheumatoid arthritis","#HowOften, #Target, #Study, #Symposium",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-09-21",,"",,0,,,"ERA","0","end of continuous drug exposure",,,1,"First",FALSE,"All","First",1,1,"DrugExposure",365,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,1,,,,7,90,0, +1071,"[P] persons at risk at start of year 2012-2022 with 365d prior observation","persons at risk at start of year 2012-2022 with 365d prior observation","persons at risk at start of year 2012-2022 with 365d prior observation","rao@ohdsi.org","Pending peer review","","persons at risk at start of year 2012-2022 with 365d prior observation","#Target, #Study, #Symposium, #baseCohort",1,"'Patrick Ryan'","","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-21","2023-10-02",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,0,"All",TRUE,"All","All",11,1,"ObservationPeriod",365,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,,1 +1072,"[P] CMV Anterior Uveitis","CMV Anterior Uveitis","Cytomegalovirus CMV Anterior Uveitis","rao@ohdsi.org","Pending peer review","",,"#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli','Rupesh Agrawal','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0002-9612-5697','','','','','','','',''","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore', 'Minneapolis VA Health Care System, University of Minnesota','UC Davis','UCSF','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-09-21","2023-10-18",,"",,0,,,"ERA","0","end of continuous observation",,,6,"First",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +1073,"[P] Serious Infection, opportunistic infections and other infections of interest event","Serious Infection, opportunistic infections and other infections of interest event","Serious Infection, opportunistic infections and other infections of interest event","rao@ohdsi.org","Pending peer review","","Incidence of Serious Infection, opportunistic infections and other infections of interest event.","#Infection",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","81893",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",30,0,"All",FALSE,"All","All",3,1,"ConditionOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1074,"[P] Serious Infection","Serious Infection","Serious Infection","rao@ohdsi.org","Pending peer review","","Incidence of Serious Infection.","#Infection",1,"Joel Swerdel'","0000-0002-6976-2594'","'OHDSI'","","","81893",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","90","fixed duration relative to initial event","StartDate",30,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1075,"[P] FDA AESI Narcolepsy","FDA AESI Narcolepsy","Narcolepsy","rao@ohdsi.org","Pending peer review","","Narcolepsy","#AESI, ,#FDA, #Study, #Symposium, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1076,"[P] FDA AESI Anaphylaxis","FDA AESI Anaphylaxis","Anaphylaxis","rao@ohdsi.org","Pending peer review","","Anaphylaxis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1077,"[P] FDA AESI Anaphylaxis v2","FDA AESI Anaphylaxis v2","Anaphylaxis v2","rao@ohdsi.org","Pending peer review","","Anaphylaxis v2","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-10-09",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1078,"[P] FDA AESI Bells Palsy","FDA AESI Bells Palsy","Bells Palsy","rao@ohdsi.org","Pending peer review","","Bells Palsy","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1079,"[P] FDA AESI Encephalomyelitis","FDA AESI Encephalomyelitis","Encephalomyelitis","rao@ohdsi.org","Pending peer review","","Encephalomyelitis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1080,"[P] FDA AESI Guillain Barre Syndrome","FDA AESI Guillain Barre Syndrome","Guillain Barre Syndrome","rao@ohdsi.org","Pending peer review","","Guillain Barre Syndrome","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1081,"[P] FDA AESI Acute Myocardial Infarction or its complications","FDA AESI Acute Myocardial Infarction or its complications","Acute Myocardial Infarction including its complications","rao@ohdsi.org","Pending peer review","","Acute Myocardial Infarction","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-25",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1082,"[P] FDA AESI Myocarditis Pericarditis","FDA AESI Myocarditis Pericarditis","Myocarditis Pericarditis","rao@ohdsi.org","Pending peer review","","Myocarditis Pericarditis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1083,"[P] FDA AESI Immune Thrombocytopenia (ITP)","FDA AESI Immune Thrombocytopenia (ITP)","Immune Thrombocytopenia (ITP)","rao@ohdsi.org","Pending peer review","","Immune Thrombocytopenia (ITP)","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1084,"[P] FDA AESI Disseminated Intravascular Coagulation","FDA AESI Disseminated Intravascular Coagulation","Disseminated Intravascular Coagulation","rao@ohdsi.org","Pending peer review","","Disseminated Intravascular Coagulation","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1085,"[P] FDA AESI Appendicitis","FDA AESI Appendicitis","Appendicitis","rao@ohdsi.org","Pending peer review","","Appendicitis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1086,"[P] FDA AESI Transverse Myelitis","FDA AESI Transverse Myelitis","Transverse Myelitis","rao@ohdsi.org","Pending peer review","","Transverse Myelitis","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1087,"[P] FDA AESI Hemorrhagic Stroke","FDA AESI Hemorrhagic Stroke","Hemorrhagic Stroke","rao@ohdsi.org","Pending peer review","","Hemorrhagic Stroke","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1088,"[P] FDA AESI Deep Vein Thrombosis (DVT)","FDA AESI Deep Vein Thrombosis (DVT)","Deep Vein Thrombosis (DVT)","rao@ohdsi.org","Pending peer review","","Deep Vein Thrombosis (DVT)","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1089,"[P] FDA AESI Non-hemorrhagic Stroke","FDA AESI Non-hemorrhagic Stroke","Non-hemorrhagic Stroke","rao@ohdsi.org","Pending peer review","","Non-hemorrhagic Stroke","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1090,"[P] FDA AESI Pulmonary Embolism","FDA AESI Pulmonary Embolism","Pulmonary Embolism","rao@ohdsi.org","Pending peer review","","Pulmonary Embolism","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1091,"[P] FDA AESI Thrombosis with Thrombocytopenia (TWT)","FDA AESI Thrombosis with Thrombocytopenia (TWT)","Thrombosis with Thrombocytopenia (TWT)","rao@ohdsi.org","Pending peer review","","Thrombosis with Thrombocytopenia (TWT)","#AESI, ,#FDA, #Study, #Symposium, #Covid19, #Covid19SubjectsAesiIncidenceRate",1,"'Azza Shoaibi','Gowtham Rao','Rupa Makadia', 'Patrick Ryan'","'0000-0002-6976-2594', '0000-0002-4949-7236','',''","'Johnson and Johnson', 'OHDSI'","","","",,"2023-09-22","2023-09-22",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,2,"All",FALSE,"All","All",11,1,"ConditionOccurrence",0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1093,"[P] Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib","Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib","Abdominal Aortic Aneurysm Repair, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) AAA repair (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1094,"[P] Lower Extremity Bypass - post op new Afib","Lower Extremity Bypass - post op new Afib","Lower Extremity Bypass - post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Lower Extremity Bypass (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation.","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1095,"[P] Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib","Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib","Carotid Endarterectomy, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Carotid Endarterctomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1097,"[P] Esophagectomy, adults, inpt stay, no ED, post op new Afib","Esophagectomy, adults, inpt stay, no ED, post op new Afib","Esophagectomy, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Esophagectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1098,"[P] Pancreatectomy, adults, inpt stay, no ED, post op new Afib","Pancreatectomy, adults, inpt stay, no ED, post op new Afib","Pancreatectomy, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Pancreatectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1099,"[P] Colectomy, adults, inpt stay, no ED, post op new Afib","Colectomy, adults, inpt stay, no ED, post op new Afib","Colectomy, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Colectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1100,"[P] Cystectomy, adults, inpt stay, no ED, post op new Afib","Cystectomy, adults, inpt stay, no ED, post op new Afib","Cystectomy, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Cystectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1101,"[P] Nephrectomy, adults, inpt stay, no ED, post op new Afib","Nephrectomy, adults, inpt stay, no ED, post op new Afib","Nephrectomy, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Nephrectomy (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1102,"[P] Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib","Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib","Coronary Artery Bypass Graft Surgery, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit)CABG (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1103,"[P] Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib","Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib","Cardiac Valve Surgery, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Non emergent (No ED visit) Aortic Or Mitral Repair or Replacement (requiring inpatient stay) among adults, first occurrence Afib (any) that occurs 14d after index (date of surgery), no prior atrial fibrillation","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1104,"[P] RBC Transfusion (adult relevant, no auto 1yr clean window)","RBC Transfusion (adult relevant, no auto 1yr clean window)","RBC Transfusion (adult relevant, no auto 1yr clean window)","rao@ohdsi.org","Pending peer review","","RBC transfusion with no prior transfusion","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2023-09-25","2023-09-25",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",1,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1105,"[P] Clostridium difficile - first episode","Clostridium difficile - first episode","Clostridium difficile - first episode","rao@ohdsi.org","Pending peer review","","Clostridium difficile with no history of clostridium difficle","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","4307981",,"2023-09-25","2023-10-04",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Measurement",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1106,"[P] Non-Emergent Major Non Cardiac Surgery no prior Opioid","Non-Emergent Major Non Cardiac Surgery no prior Opioid","Non-Emergent Major Non Cardiac Surgery no prior Opioid","rao@ohdsi.org","Pending peer review","","Persons having any of major non cardiac surgery","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","","","2023-09-25","2023-10-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",35,1,"ProcedureOccurrence",0,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1150,"Emergency room only or Emergency room and inpatient visits (0Pe, 0Era)","Emergency room only or Emergency room and inpatient visits (0Pe, 0Era)","Emergency room visits (0Pe, 0Era)","rao@ohdsi.org","Accepted","3.4.0","All events of Emergency Room visits or Emergency room or inpatient visit. This cohort is deemed validated as it represents data convention and did not need to go thru peer review process","#standard, #Visits",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-10-04","2023-10-04",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"VisitOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,1,,,,,,,,, +1151,"[P] Autism","Autism","Autism","rao@ohdsi.org","Pending peer review","","","#autism",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","","439776","","2023-10-05","2023-10-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1152,"[P] Deep Vein Thrombosis DVT 10","Deep Vein Thrombosis DVT 10","Deep Vein Thrombosis DVT","rao@ohdsi.org","Prediction","","All events of Deep Vein Thrombosis (DVT), indexed on a condition occurrence of Deep Vein Thrombosis (DVT). Requiring a clean window of 30 days, cohort exit is 1 day after start date.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4133004",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1153,"[P] Seizure 10","Seizure 10","Seizure","rao@ohdsi.org","Prediction","","First Seizure record in 42 days continues for 1 day","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","377091",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1154,"[P] Heart failure 10","Heart failure 10","Heart failure","rao@ohdsi.org","Prediction","","First Heart failure continues until observation end","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","316139",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1155,"[P] Non-hemorrhagic Stroke 10","Non-hemorrhagic Stroke 10","Non-hemorrhagic Stroke","rao@ohdsi.org","Prediction","","All events of Ischemic (Non-hemorrhagic) Stroke, indexed on a condition occurrence of Ischemic (Non-hemorrhagic), limited to events with overlapping inpatient visit with no such events in prior 365 days (clean window). Persons exit the cohort at the start date + 1 day.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","443454",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1156,"[P] Hemorrhagic stroke 10","Hemorrhagic stroke 10","Hemorrhagic stroke","rao@ohdsi.org","Prediction","","All events of Hemorrhagic stroke, indexed on a condition occurrence of Hemorrhagic stroke, limited to events with overlapping inpatient visit with no such events in prior 365 days (clean window). Persons exit the cohort at the start date + 1 day.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","439847",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1157,"[P] peripheral vascular disease 10","peripheral vascular disease 10","peripheral vascular disease","rao@ohdsi.org","Prediction","","First peripheral vascular disease continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","321052",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1158,"[P] Aspirin 10","Aspirin 10","Aspirin","rao@ohdsi.org","Prediction","","aspirin exposures w 0d prior obsv 30d gap","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1112807",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1159,"[P] Angina 10","Angina 10","Angina","rao@ohdsi.org","Prediction","","First Angina in 30 days continues for 1 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","77670",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","1","fixed duration relative to initial event","EndDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1160,"[P] Atrial Fibrillation 10","Atrial Fibrillation 10","Atrial Fibrillation","rao@ohdsi.org","Prediction","","First Atrial Fibrillation continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","313217",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1161,"[P] Major depressive disorder with NO occurrence of certain psychiatric disorder 10","Major depressive disorder with NO occurrence of certain psychiatric disorder 10","Major depressive disorder with NO occurrence of certain psychiatric disorder","rao@ohdsi.org","Prediction","","Earliest occurrence of major depressive disorder indexed on diagnosis date requiring no occurrence anytime prior including day 0 of Bipolar disorder, Schizoaffective, Schizophrenia not including paraphrenia, Dementia or Psychotic disorder cohort exit is the end of continuous observation.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","440383",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",TRUE,"All","First",1,1,"ConditionOccurrence",0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1162,"[P] Coronary artery disease (CAD) 10","Coronary artery disease (CAD) 10","Coronary artery disease (CAD)","rao@ohdsi.org","Prediction","","First coronary artery disease (CAD) continues until observation end","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","318443",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,,,,,,,,,, +1163,"[P] Acute Kidney Injury 10","Acute Kidney Injury 10","Acute Kidney Injury","rao@ohdsi.org","Prediction","","All events of Acute Kidney Injury (AKI) indexed on a diagnosis of Acute kidney injury or a Dialysis procedure at a medicare certified esrd facility for acute kidney injury without esrd,. Applying a washout period of 30 days between observed events excluding events/patients with 1. a diagnosis of End-Stage Kidney Disease in the 365 days before AKI occurrence 2. patients receiving chronic dialysis defined as more than 3 recorded events of dialysis in 365 days before AKI occurrence 3. kidney Transplant any time prior . patients exit the cohort 7 days post index.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","197320",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","EndDate",7,4,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,7,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +1164,"[P] Asthma 10","Asthma 10","Asthma","rao@ohdsi.org","Prediction","","First Asthma continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","317009",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1165,"[P] Alcoholism 10","Alcoholism 10","Alcoholism","rao@ohdsi.org","Prediction","","First record of Alcoholism until observation end","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4218106",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,1,,,,, +1166,"[P] Smoking 10","Smoking 10","Smoking","rao@ohdsi.org","Prediction","","First Smoking condition or observtion or procedure record continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4209423",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,1,,,,, +1167,"[P] sleep apnea 10","sleep apnea 10","sleep apnea","rao@ohdsi.org","Prediction","","First sleep apnea record continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","313459",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1168,"[P] skin ulcer 10","skin ulcer 10","skin ulcer","rao@ohdsi.org","Prediction","","First skin ulcer record in 365 days continues for 30 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4262920",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,1,"All",FALSE,"All","All",3,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,,,,,1,,,,, +1169,"[P] Chronic hepatitis 10","Chronic hepatitis 10","Chronic hepatitis","rao@ohdsi.org","Prediction","","First Chronic hepatitis continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4212540",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1170,"[P] hyperlipidemia 10","hyperlipidemia 10","hyperlipidemia","rao@ohdsi.org","Prediction","","First hyperlipidemia continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","432867",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1171,"[P] hypothyroidism 10","hypothyroidism 10","hypothyroidism","rao@ohdsi.org","Prediction","","First hypothyroidism continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","140673",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1172,"[P] Heart valve disorder 10","Heart valve disorder 10","Heart valve disorder","rao@ohdsi.org","Prediction","","First Heart valve disorder continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4281749",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1173,"[P] Low back pain 10","Low back pain 10","Low back pain","rao@ohdsi.org","Prediction","","First Low back pain continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","194133",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1174,"[P] neuropathy 10","neuropathy 10","neuropathy","rao@ohdsi.org","Prediction","","First neuropathy continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4301699",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1175,"[P] Psychotic disorder 10","Psychotic disorder 10","Psychotic disorder","rao@ohdsi.org","Prediction","","First Psychotic disorder continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","436073",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1176,"[P] Sepsis 10","Sepsis 10","Sepsis","rao@ohdsi.org","Prediction","","First Sepsis record in 180 days continues for 7 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","132797",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","EndDate",7,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1177,"[P] Acute Respiratory failure 10","Acute Respiratory failure 10","Acute Respiratory failure","rao@ohdsi.org","Prediction","","First Acute Respiratory failure record in 365 days continues for 14 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","319049",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1178,"[P] Gastroesophageal reflux disease 10","Gastroesophageal reflux disease 10","Gastroesophageal reflux disease","rao@ohdsi.org","Prediction","","First Gastroesophageal reflux disease continues until observation end","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","318800",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1179,"[P] obesity 10","obesity 10","obesity","rao@ohdsi.org","Prediction","","First obesity measurement or condition or observation continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","433736",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +1180,"[P] Inflammatory Bowel Disease 10","Inflammatory Bowel Disease 10","Inflammatory Bowel Disease","rao@ohdsi.org","Prediction","","First Inflammatory Bowel Disease continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","201606",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1181,"[P] STEROIDS 10","STEROIDS 10","STEROIDS","rao@ohdsi.org","Prediction","","STEROIDS record with 60 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1551099",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,60,0, +1182,"[P] Opioids 10","Opioids 10","Opioids","rao@ohdsi.org","Prediction","","Opioids with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1174888",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1183,"[P] ANTIEPILEPTICS 10","ANTIEPILEPTICS 10","ANTIEPILEPTICS","rao@ohdsi.org","Prediction","","ANTIEPILEPTICS exposure with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","797399",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1184,"[P] Osteoarthritis 10","Osteoarthritis 10","Osteoarthritis","rao@ohdsi.org","Prediction","","First Osteoarthritis continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","80180",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1185,"[P] Osteoporosis 10","Osteoporosis 10","Osteoporosis","rao@ohdsi.org","Prediction","","First Osteoporosis continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","80502",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1186,"[P] Urinary tract infectious 10","Urinary tract infectious 10","Urinary tract infectious","rao@ohdsi.org","Prediction","","First Urinary tract infectious record in 30 days continues for 1 day","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","81902",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","StartDate",1,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1187,"[P] acetaminophen exposure 10","acetaminophen exposure 10","acetaminophen exposure","rao@ohdsi.org","Prediction","","acetaminophen exposure with 30 day persistence window","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1125315",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1188,"[P] Anemia 10","Anemia 10","Anemia","rao@ohdsi.org","Prediction","","Anemia record or measurement continues for 21 days unless normal measurement","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","4144746",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","365","fixed duration relative to initial event","StartDate",21,3,"All",FALSE,"All","All",3,2,"ConditionOccurrence, Measurement",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1189,"[P] Anxiety 10","Anxiety 10","Anxiety","rao@ohdsi.org","Prediction","","First Anxiety continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","441542",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +1190,"[P] HORMONAL CONTRACEPTIVES 10","HORMONAL CONTRACEPTIVES 10","HORMONAL CONTRACEPTIVES","rao@ohdsi.org","Prediction","","HORMONAL CONTRACEPTIVES with 30 day persistence window","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","21602473",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1191,"[P] Chronic kidney disease or end stage renal disease 10","Chronic kidney disease or end stage renal disease 10","Chronic kidney disease or end stage renal disease","rao@ohdsi.org","Prediction","","First chronic kidney disease or end stage renal disease continues until observation end","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","46271022",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",5,3,"ConditionOccurrence, Observation, ProcedureOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,1,,,,, +1192,"[P] Chronic obstructive pulmonary disease (COPD) 10","Chronic obstructive pulmonary disease (COPD) 10","Chronic obstructive pulmonary disease (COPD)","rao@ohdsi.org","Prediction","","First chronic obstructive pulmonary disease (COPD) continues until observation end","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","255573",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1193,"[P] Type 1 diabetes and no prior specific nonT1DM diabetes 10","Type 1 diabetes and no prior specific nonT1DM diabetes 10","Type 1 diabetes and no prior specific nonT1DM diabetes","rao@ohdsi.org","Prediction","","Earliest Type 1 diabetes with no prior type 2 or secondary diabetes continues until end of observation.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","201254",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1194,"[P] Type 2 Diabetes Mellitus with no type 1 or secondary DM 10","Type 2 Diabetes Mellitus with no type 1 or secondary DM 10","Type 2 Diabetes Mellitus with no type 1 or secondary DM","rao@ohdsi.org","Prediction","","Earliest Type 2 diabetes with no prior type 1 or secondary diabetes continues until end of observation.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","201820",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1195,"[P] Dyspnea 10","Dyspnea 10","Dyspnea","rao@ohdsi.org","Prediction","","All events of Dyspnea with no Dyspnea in prior 30 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","312437",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","EndDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1196,"[P] Edema 10","Edema 10","Edema","rao@ohdsi.org","Prediction","","All events of Edema with no Edemain prior 30 days and cohort ends 3 days after index.","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","433595",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","StartDate",3,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1197,"[P] Acute gastrointestinal bleeding 10","Acute gastrointestinal bleeding 10","Acute gastrointestinal bleeding","rao@ohdsi.org","Prediction","","First gastrointestinal bleed in 45 days continues for 7 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","192671",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","StartDate",7,1,"All",FALSE,"All","All",2,2,"ConditionOccurrence, ProcedureOccurrence",0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,1,,,,, +1198,"[P] Hypertension 10","Hypertension 10","Hypertension","rao@ohdsi.org","Prediction","","First Hypertension continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","316866",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1199,"[P] Pneumonia 10","Pneumonia 10","Pneumonia","rao@ohdsi.org","Prediction","","First Pneumonia record in 180 days continues until for 30 days","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","255848",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1200,"[P] Rheumatoid Arthritis 10","Rheumatoid Arthritis 10","Rheumatoid Arthritis","rao@ohdsi.org","Prediction","","First Rheumatoid Arthritis record continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","80809",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +1201,"[P] Antibiotics Aminoglycosides 10","Antibiotics Aminoglycosides 10","Antibiotics Aminoglycosides","rao@ohdsi.org","Prediction","","any Antibiotics Aminoglycosides with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","915981",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1202,"[P] Antibiotics Carbapenems 10","Antibiotics Carbapenems 10","Antibiotics Carbapenems","rao@ohdsi.org","Prediction","","any Antibiotics Carbapenems with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1709170",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1203,"[P] Antibiotics Cephalosporins 10","Antibiotics Cephalosporins 10","Antibiotics Cephalosporins","rao@ohdsi.org","Prediction","","any Antibiotics Cephalosporins with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1786621",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1204,"[P] Antibiotics Fluoroquinolones 10","Antibiotics Fluoroquinolones 10","Antibiotics Fluoroquinolones","rao@ohdsi.org","Prediction","","any Antibiotics Fluoroquinolones with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1797513",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1205,"[P] Antibiotics Glycopeptides and lipoglycopeptides 10","Antibiotics Glycopeptides and lipoglycopeptides 10","Antibiotics Glycopeptides and lipoglycopeptides","rao@ohdsi.org","Prediction","","any Antibiotics Glycopeptides and lipoglycopeptides with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1707687",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1206,"[P] Antibiotics Macrolides 10","Antibiotics Macrolides 10","Antibiotics Macrolides","rao@ohdsi.org","Prediction","","any Antibiotics Macrolides with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1734104",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1207,"[P] Antibiotics Monobactams 10","Antibiotics Monobactams 10","Antibiotics Monobactams","rao@ohdsi.org","Prediction","","any Antibiotics Monobactams with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1715117",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1208,"[P] Antibiotics Oxazolidinones 10","Antibiotics Oxazolidinones 10","Antibiotics Oxazolidinones","rao@ohdsi.org","Prediction","","any Antibiotics Oxazolidinones with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1736887",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1209,"[P] Antibiotics Penicillins 10","Antibiotics Penicillins 10","Antibiotics Penicillins","rao@ohdsi.org","Prediction","","any Antibiotics Penicillins with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1713332",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1210,"[P] Antibiotics Polypeptides 10","Antibiotics Polypeptides 10","Antibiotics Polypeptides","rao@ohdsi.org","Prediction","","any Antibiotics Polypeptides with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","948582",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,30,0, +1211,"[P] Antibiotics Rifamycins 10","Antibiotics Rifamycins 10","Antibiotics Rifamycins","rao@ohdsi.org","Prediction","","any Antibiotics Rifamycins with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1735947",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,1,30,0, +1212,"[P] Antibiotics Sulfonamides 10","Antibiotics Sulfonamides 10","Antibiotics Sulfonamides","rao@ohdsi.org","Prediction","","any Antibiotics Sulfonamides with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1836430",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,2,30,0, +1213,"[P] Antibiotics Streptogramins 10","Antibiotics Streptogramins 10","Antibiotics Streptogramins","rao@ohdsi.org","Prediction","","any Antibiotics Streptogramins with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1789517",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,3,30,0, +1214,"[P] Antibiotics Tetracyclines 10","Antibiotics Tetracyclines 10","Antibiotics Tetracyclines","rao@ohdsi.org","Prediction","","any Antibiotics Tetracyclines with 30 day persistence","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","1738521",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,4,30,0, +1215,"[P] Any cancer (excl. prostate cancer and benign cancer) 10","Any cancer (excl. prostate cancer and benign cancer) 10","Any cancer (excl. prostate cancer and benign cancer)","rao@ohdsi.org","Prediction","","First cancer (excluding prostate and benign) continues until end of observation","#Prediction",1,"'Jenna Reps'","'0000-0002-2970-0778'","'Johnson and Johnson', 'OHDSI'","","","438112",,"2023-10-09","2023-10-09",,"","Prediction phenotypes",0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",4,3,"ConditionOccurrence, Measurement, Observation",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,,,,,,,,,, +1217,"[P] Platinum based chemotherapy regimens","Platinum based chemotherapy regimens","Platinum based chemotherapy regimens","rao@ohdsi.org","Pending peer review","","Events of platinum based chemotherapy with 60 days of surveillance because most cycles of every 4 weeks","",1,"'Gowtham A. Rao'","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-10-09","2023-11-30",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,60,0, +1219,"[P] Hyperlipidemia","Hyperlipidemia","Hyperlipidemia","ryan@ohdsi.org","Pending peer review","","Earliest event of hyperlipidemia","",1,"Patrick Ryan","","'OHDSI'","","","432867","","2023-10-16","2023-11-29",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1220,"[P] Hypoparathyroidism","Hypoparathyroidism","Hypoparathyroidism","ryan@ohdsi.org","Pending peer review","","Earliest event of hypoparathyroidism","",1,"Patrick Ryan","","'OHDSI'","","","140362","","2023-10-16","2023-10-16",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1221,"[P] Osteoporosis","Osteoporosis","Osteoporosis","ryan@ohdsi.org","Pending peer review","","Earliest event of Osteoporosis","",1,"Patrick Ryan","","'OHDSI'","","","80502","","2023-10-16","2023-10-16",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1222,"[P] Viral hepatitis type A","Viral hepatitis type A","Viral Hepatitis A","ryan@ohdsi.org","Pending peer review","","Earliest event of Viral Hepatitis A","",1,"Patrick Ryan","","'OHDSI'","","","4223947","","2023-10-16","2023-10-16",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1223,"[P] Birdshot chorioretinitis","Birdshot chorioretinitis","Birdshot chorioretinitis","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-17","2023-10-17",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",2,2,"ConditionOccurrence, Measurement",0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1224,"[P] CMV Anterior Uveitis (sensitivity analysis)","CMV Anterior Uveitis (sensitivity analysis)","CMV Anterior Uveitis sensitivite","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-18","2023-10-19",,"",,0,,,"ERA","0","end of continuous observation",,,6,"First",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +1225,"[P] VZV Anterior Uveitis (SUN)","VZV Anterior Uveitis (SUN)","VZV Anterior Uveitis (SUN)","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-19","2023-10-19",,"",,0,,,"ERA","0","end of continuous observation",,,7,"First",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +1226,"[P] VZV Anterior Uveitis (SUN) sensitive","VZV Anterior Uveitis (SUN) sensitive","VZV Anterior Uveitis (SUN) sensitive","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-19","2023-10-19",,"",,0,,,"ERA","0","end of continuous observation",,,7,"First",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +1227,"[P] HSV Anterior Uveitis (SUN)","HSV Anterior Uveitis (SUN)","HSV Anterior Uveitis (SUN)","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-19","2023-10-19",,"",,0,,,"ERA","0","end of continuous observation",,,8,"All",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +1228,"[P] HSV Anterior Uveitis (SUN) sensitive","HSV Anterior Uveitis (SUN) sensitive","HSV Anterior Uveitis (SUN) sensitive","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-19","2023-10-19",,"",,0,,,"ERA","0","end of continuous observation",,,8,"All",FALSE,"All","First",5,3,"ConditionOccurrence, Measurement, Observation",0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,, +1229,"[P] Behcet Uveitis (SUN)","Behcet Uveitis (SUN)","Behcet Uveitis (SUN)","rao@ohdsi.org","Pending peer review","","","#Opthalmology, #OhdsiWorkGroup",1,"'Edward Lee','Kiana Tavakoli', 'Rupesh Agrawal','William Rojas Carabali','Karen Armbrust','Kareem Moussa','Jessica Shantha','Edmund Tsui','Brian Toy'","'','0000-0003-1883-9018','0000-0002-6662-5850','0000-0002-9976-8989','0000-0001-9381-4756','0000-0001-9110-9594','0000-0002-4449-8598','0000-0001-7532-9191','0000-0002-9612-5697'","'Roski Eye Institute, Keck School of Medicine, USC','Shiley Eye Institute, University of California San Diego','National Healthcare Group Eye Institute, Tan Tock Seng Hospital, Singapore','Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore','Minneapolis VA Health Care System, University of Minnesota','Department of Ophthalmology & Vision Science, University of California, Davis','F.I. Proctor Foundation, University of California, San Francisco','UCLA Stein Eye Institute, David Geffen School of Medicine at UCLA','Roski Eye Institute, Keck School of Medicine, USC'","","","436100",,"2023-10-19","2023-10-19",,"",,0,,,"ERA","0","end of continuous observation",,,5,"All",FALSE,"All","First",7,2,"ConditionOccurrence, Measurement",0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1231,"[P] Sickle Cell Crisis","Sickle Cell Crisis","Sickle Cell Crisis","rao@ohdsi.org","Pending peer review","","First occurrence of Sickle Cell Crisis","#epi1073",1,"'Gowtham a rao'","'0000-0002-4949-7236'","'OHDSI'","","","4216915","","2023-10-19","2023-10-19",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",3,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1244,"[P] Non Platinum chemotherapy regimen","Non Platinum chemotherapy regimen","Non Platinum chemotherapy regimen","rao@ohdsi.org","Pending peer review","","Events of non platinum based chemotherapy with 60 days of surveillance because most cycles of every 4 weeks","",1,"'Gowtham A. Rao'","'0000-0002-4949-7236'","'OHDSI'","","","","","2023-11-30","2023-11-30",,"",,0,,,"ERA","0","end of continuous drug exposure",,,0,"All",FALSE,"All","All",1,1,"DrugExposure",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,1,,,,0,60,0, +1261,"[P] Acute Typical Pneumonia","Acute Typical Pneumonia","Acute Typical Pneumonia","rao@ohdsi.org","Pending peer review","","Acute Typical Pneumonia","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255848, 4318404","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1262,"[P] Asthma or Chronic obstructive pulmonary disease (COPD)","Asthma or Chronic obstructive pulmonary disease (COPD)","Asthma or Chronic obstructive pulmonary disease (COPD)","rao@ohdsi.org","Pending peer review","","Asthma or Chronic obstructive pulmonary disease (COPD)","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255573, 317009","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1263,"[P] Chronic obstructive pulmonary disease (COPD) without asthma","Chronic obstructive pulmonary disease (COPD) without asthma","Chronic obstructive pulmonary disease (COPD) without asthma","rao@ohdsi.org","Pending peer review","","Chronic obstructive pulmonary disease (COPD) without asthma","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255573","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",3,2,"ConditionOccurrence, DrugExposure",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,,,,,,, +1264,"[P] Pneumonitis and lung infections","Pneumonitis and lung infections","Pneumonitis and lung infections","rao@ohdsi.org","Pending peer review","","Pneumonitis and lung infections","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","253506, 255848",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",30,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1265,"[P] Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3)","Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3)","Pulmonary hypertension associated with lung diseases and/or hypoxia (WHO Group 3)","rao@ohdsi.org","Pending peer review","","Pulmonary hypertension associated with lung diseases and or hypoxia (WHO Group 3)","",1,"'Joel N. Swerdel'","'0000-0001-9491-2737'","'OHDSI'","","0","4322024","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,2,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1266,"[P] Non-small cell lung cancer (NSCLC) for first time using ICD0","Non-small cell lung cancer (NSCLC) for first time using ICD0","Non-small cell lung cancer (NSCLC)","rao@ohdsi.org","Pending peer review","","Non-small cell lung cancer (NSCLC) for first time using ICD0","",1,"'Asieh Golozar', 'Vlad Korsik'","'0000-0002-4243-155X'","","","0","439676, 37311061","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1267,"[P] Lung cancer using ICD0","Lung cancer using ICD0","Lung cancer","rao@ohdsi.org","Pending peer review","","Lung cancer using ICD0","",1,"'Asieh Golozar'","'0000-0002-4243-155X'","","","0","439676, 37311061","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",365,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1268,"[P] Lung Resection, adults, inpt stay, no ED, post op new Afib","Lung Resection, adults, inpt stay, no ED, post op new Afib","Lung Resection, adults, inpt stay, no ED, post op new Afib","rao@ohdsi.org","Pending peer review","","Lung Resection - post op new Afib (any)","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","0","","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1269,"[P] Pulmonary fibrosis","Pulmonary fibrosis","Pulmonary fibrosis","rao@ohdsi.org","Pending peer review","","Pulmonary fibrosis","#Condition, #respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4197819","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1270,"[P] History of Bladder cancer","History of Bladder cancer","Bladder cancer including history","rao@ohdsi.org","Pending","","History of Bladder cancer","",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","197508","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1271,"[P] Chronic obstructive pulmonary disease (COPD)","Chronic obstructive pulmonary disease (COPD)","Chronic obstructive pulmonary disease (COPD)","rao@ohdsi.org","Pending peer review","","Chronic obstructive pulmonary disease (COPD)","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","255573","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1272,"[P] Chronic Interstitial lung disease (ILD)","Chronic Interstitial lung disease (ILD)","Chronic Interstitial lung disease (ILD) not including Acute Respiratory Distress Syndrome","rao@ohdsi.org","Pending peer review","","Chronic Interstitial lung disease (ILD)","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4119786","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",365,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1273,"[P] Lung Nodule","Lung Nodule","Lung Nodule","rao@ohdsi.org","Pending peer review","","Lung Nodule","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1274,"[P] Lung Nodule - solitary","Lung Nodule - solitary","Lung Nodule - solitary","rao@ohdsi.org","Pending peer review","","Lung Nodule - solitary","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719,4142875","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",730,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1275,"[P] Lung Nodule - multiple","Lung Nodule - multiple","Lung Nodule - multiple","rao@ohdsi.org","Pending peer review","","Lung Nodule - multiple","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719,40482871","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",730,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1276,"[P] Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)","Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)","Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)","rao@ohdsi.org","Pending peer review","","Lung Mass (not acute, necrotic, atlectatic, abscess, fibrosis)","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1277,"[P] Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis)","Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis)","Lung Lesion that is not acute, necrotic, atlectatic, abscess, fibrosis","rao@ohdsi.org","Pending peer review","","Lung Lesion (not acute, necrotic, atlectatic, abscess, fibrosis)","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4116778,37206719","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",730,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1278,"[P] Non Small Cell Lung Cancer (Stage 3)","Non Small Cell Lung Cancer (Stage 3)","Stage 3 Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC","rao@ohdsi.org","Pending peer review","","Non Small Cell Lung Cancer (Stage 3)","#respiratory, #lung",1,"'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,15,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1279,"[P] Non Small Cell Lung Cancer","Non Small Cell Lung Cancer","Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC","rao@ohdsi.org","Pending peer review","","Non Small Cell Lung Cancer","#respiratory, #lung",1,"'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,4,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1280,"[P] Small Cell Lung Cancer","Small Cell Lung Cancer","Small Cell Lung Cancer","rao@ohdsi.org","Pending peer review","","Small Cell Lung Cancer","#respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","37206719","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"All",FALSE,"All","First",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1281,"[P] Primary Lung Cancer","Primary Lung Cancer","Primary Lung Cancer, indexed on lung abnormaility","rao@ohdsi.org","Pending peer review","","Primary Lung Cancer","#respiratory, #lung",1,"'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1282,"[P] Hoarseness","Hoarseness","Hoarseness","rao@ohdsi.org","Pending peer review","","Hoarseness","#Symptoms, #respiratory, #lung",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","312437, 4041664",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1283,"[P] Bone Pain","Bone Pain","Bone Pain","rao@ohdsi.org","Pending peer review","","Bone Pain","#Symptom",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4129418",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",2,1,"ConditionOccurrence",0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1284,"[P] Weight loss","Weight loss","Weight loss","rao@ohdsi.org","Pending peer review","","Weight loss","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","4177176,435928",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",14,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1285,"[P] Acute bronchitis","Acute bronchitis","Acute Bronchitis","rao@ohdsi.org","Pending peer review","","Acute bronchitis","#Symptoms",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","","0","256451,260139",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","fixed duration relative to initial event","StartDate",0,1,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1286,"[P] Non Small Cell Lung Cancer (Stage 3) without second diagnosis","Non Small Cell Lung Cancer (Stage 3) without second diagnosis","Stage 3 Non Small Cell Lung Cancer (NSCLC), indexed on lung abnormaility with no evidence of SCLC and had follow-up for NSCLC","rao@ohdsi.org","Pending peer review","","Non Small Cell Lung Cancer (Stage 3) without second diagnosis","#respiratory, #lung",1,"'Dmytro Dymshyts', 'Gowtham A. Rao'","'','0000-0002-4949-7236'","'OHDSI'","","0","37206719,4311499","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,14,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1287,"[P] Intestinal obstruction - colorectal specific","Intestinal obstruction - colorectal specific","Intestinal obstruction - colorectal specific","rao@ohdsi.org","Pending peer review","","Earliest occurence of Intestinal obstruction - colorectal specific","",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","193518","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1288,"[P] Intraabdominal abscess - narrow for colorectal cancer","Intraabdominal abscess - narrow for colorectal cancer","Intraabdominal abscess - narrow for colorectal cancer","rao@ohdsi.org","Pending peer review","","Earliest occurence of Intraabdominal abscess - narrow for colorectal cancer","",1,"Andreas Weinberger Rosen","0000-0001-9990-8155","","","","193518","","2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,,,,, +1289,"[P] Major Non Cardiac Surgery, adults","Major Non Cardiac Surgery, adults","Major Non Cardiac Surgery, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",35,1,"ProcedureOccurrence",0,0,35,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1290,"[P] Abdominal Aortic Aneurysm repair, adults","Abdominal Aortic Aneurysm repair, adults","Abdominal Aortic Aneurysm repair, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1291,"[P] Lower Extremity Bypass, adults","Lower Extremity Bypass, adults","Lower Extremity Bypass, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1292,"[P] Carotid Endarterectomy, adults","Carotid Endarterectomy, adults","Carotid Endarterectomy, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1293,"[P] Lung Resection, adults","Lung Resection, adults","Lung Resection, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1294,"[P] Esophagectomy, adults","Esophagectomy, adults","Esophagectomy, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1295,"[P] Pancreatectomy, adults","Pancreatectomy, adults","Pancreatectomy, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1296,"[P] Colectomy, adults","Colectomy, adults","Colectomy, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1297,"[P] Cystectomy, adults","Cystectomy, adults","Cystectomy, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1298,"[P] Nephrectomy, adults","Nephrectomy, adults","Nephrectomy, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1299,"[P] Coronary Artery Bypass Graft, adults","Coronary Artery Bypass Graft, adults","Coronary Artery Bypass Graft, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1300,"[P] Cardiac Valve Surgery, adults","Cardiac Valve Surgery, adults","Cardiac Valve Surgery, adults","rao@ohdsi.org","Pending peer review","","","#Surgery",1,"Evan Minty', 'Brian Bucher'","0000-0003-4631-9992', '0000-0001-8376-9752'","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,1,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1301,"[P] Acute Urinary tract infections UTI events","Acute Urinary tract infections UTI events","Acute Urinary tract infections UTI","rao@ohdsi.org","Pending peer review","","all events of acute urinary tract infection","",1,"Evan Minty","0000-0003-4631-9992'","","","","81902","","2024-01-05","2024-01-05",,"",,0,,,"ERA","1","fixed duration relative to initial event","EndDate",0,0,"All",FALSE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1303,"[P] Acute Heart failure from legend","Acute Heart failure from legend","Acute Heart failure","rao@ohdsi.org","Pending","","The first condition record of heart failure, which is followed by at least 1 heart failure condition record in the following year","",1,"'Evan Minty'","0000-0003-4631-9992'","'OHDSI'","","","78232, 80180","https://forums.ohdsi.org/t/17895","2024-01-05","2024-01-05",,"","modified from 934 to support HowOften study.",0,,,"ERA","1","fixed duration relative to initial event","StartDate",0,0,"All",TRUE,"All","All",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,,,,,,,,,, +1304,"[P] Major Non Cardiac Surgery, adults, post op new Afib","Major Non Cardiac Surgery, adults, post op new Afib","Major Non Cardiac Surgery, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",35,1,"ProcedureOccurrence",0,0,36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1305,"[P] AAA repair, adults, post op new Afib","AAA repair, adults, post op new Afib","AAA repair, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1306,"[P] Lower Extremity Bypass, adults, post op new Afib","Lower Extremity Bypass, adults, post op new Afib","Lower Extremity Bypass, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1307,"[P] Carotid Endarterectomy, adults, post op new Afib","Carotid Endarterectomy, adults, post op new Afib","Carotid Endarterectomy, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1308,"[P] Lung Resection, adults, post op new Afib","Lung Resection, adults, post op new Afib","Lung Resection, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1309,"[P] Esophagectomy, adults, post op new Afib","Esophagectomy, adults, post op new Afib","Esophagectomy, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1310,"[P] Pancreatectomy, adults, post op new Afib","Pancreatectomy, adults, post op new Afib","Pancreatectomy, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1311,"[P] Colectomy, adults, post op new Afib","Colectomy, adults, post op new Afib","Colectomy, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1312,"[P] Cystectomy, adults, post op new Afib","Cystectomy, adults, post op new Afib","Cystectomy, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1313,"[P] Nephrectomy, adults, post op new Afib","Nephrectomy, adults, post op new Afib","Nephrectomy, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1314,"[P] Coronary Artery Bypass Graft, adults, post op new Afib","Coronary Artery Bypass Graft, adults, post op new Afib","Coronary Artery Bypass Graft, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1315,"[P] Cardiac Valve Surgery, adults, post op new Afib","Cardiac Valve Surgery, adults, post op new Afib","Cardiac Valve Surgery, adults, post op new Afib","rao@ohdsi.org","Pending peer review","","","#Surgery, #WorkGroup",1,"Evan Minty","0000-0003-4631-9992","'OHDSI'","","","",,"2024-01-05","2024-01-05",,"",,0,,,"ERA","0","end of continuous observation",,,3,"First",FALSE,"All","First",2,1,"ProcedureOccurrence",0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,1,,,,, +1316,"Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)","Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era)","Neutropenia or unspecified leukopenia","rao@ohdsi.org","Accepted","3.11.0","All events of neutropenia indexed on diagnosis or lab results, with no congenital or genetic neutropenia all days pre to 7 days post index. Also excluded, events with normal neutrophil count or a diagnosis of Neutrophilia on index. patients exit 21 days post end date or with the occurrence of a normal neutrophil count. Reoccurring events for the same patients will be combined into event eras if they are within 365 days of each other.","#PhenotypePhebruary, #2023, #Neutropenia, #DME",1,"Gowtham A. Rao","'0000-0002-4949-7236'","'OHDSI'","Anna Ostropolets","","435224","https://forums.ohdsi.org/t/17409","2024-09-06","2024-09-06",,"213",,0,,,"ERA","0","fixed duration relative to initial event","EndDate",90,3,"All",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, +1317,"[P] Reyes syndrome","Reyes syndrome","Reyes syndrome","rao@ohdsi.org","Pending peer review","","First occurrence of Reyes syndrome","#Disease, #DME",1,"'Gowtham A. Rao', 'Azza Shoaibi'","'0000-0002-4949-7236', '0000-0002-6976-2594'","'OHDSI'","","","375241","","2024-09-11","2024-09-26",,"",,0,,,"ERA","0","end of continuous observation",,,0,"First",FALSE,"All","First",1,1,"ConditionOccurrence",0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,,,,,,,,,,, diff --git a/inst/ConceptSetsInCohortDefinition.RDS b/inst/ConceptSetsInCohortDefinition.RDS index e5ec0ee636fe1496136bc2ec8f44ce95b3547aab..cdc9b0be2cedda988df33a32ca37d11031a610f8 100644 GIT binary patch literal 835529 zcmb5VcRZWz+dp0uHB%HdLs3n>edi(tEw-wEPANq0p&2pWqwucKnU(UZQ{yKEq_XhGv zURHZLay8VX&9z1wrxdGQIg$g|?>D15sdqMO`r~u8-H<;j`L+ASwFkwwzM5}5m~H|Y zsMOTd9BXd6uc+WEDZ+Q>q>6!|K`Vt#VS`u{OnxTNJmSIr)ZEms9 z?$Hc{S_t8)?(}9N4p4`bui?$cwVc8}Dw{x#jQ0xSjO^>r*k&Mj#!LLov*t4d|bjIi1%jG;uY7NR1wvILJSULEl19;#)xCbX`kB}b!V#2ht2d9uE?TyM6>>t@@c!Vn9ZD$gH zC9T-fPL`*?Sh;dlGe6FrtK6u(+D1_MT=wl^vln#$+*KXVlwaEAC_$V{FfGP`*29G> z%5FWa>X|??D>qhxKb>$-CK)-Qt`dIF8`O{hjF} zd$wpf=#?W(cs$6OhRJ3*n=qSAm;%Kt)p8hMoGmj>&t^gF*<9spAt#vNIP4IPV`hXc z&CrBtXTn4)G0`EkS`#KHm=@|VJPrx2e1TB-?O_)YbFvSXvsli>i$Y7dt2n{KS zV+-JPZD`04nywP_u01G$1h%DVs^O}yj)N0PC_o{L&k1Ij50xH=y>w(h(qS5#FtzPr za^vWB9ATMs&7Q4Yj^M`;&d~U?S?0woWheHDd}zu9tjv+kXS{nyxm&5WL zfwnZ54GngNR;I)Zvu6YC*z6moZn-yu#KB>Muym)YTM!4_3 zVOS$ctk^0|f)lJ?`bQREs8l^X=im^jkiDgtvn7+`B%i%ysWcyH-NcS3Sv$mR$CF06 za7#SnDr&efW!!h3aSVUCdP=#v<9IK?-dQ0#Dd%7)VQ7NC-0#9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H@{YoL6AaFKl30YBjtG}q%8gLLSq)(+nKa*pWzd${`Ktm0Mb5a z;Vo=t+Pp?Li8DoCsibS#4OhYYK9lo(U}ER9j8(IIyb4|{WWo2)))VT&-wZr5R$m50 zKO@ZrQx^shp%t>Zrp(+2ISI)GAy96kCYJnMmb2KS`f+TP#9%(ke;ra_wm#;ZWbV

@@ -44,7 +44,7 @@
- +
@@ -139,16 +139,16 @@

Page not found (404)

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/docs/articles/CohortDefinitionSubmissionRequirements.html b/docs/articles/CohortDefinitionSubmissionRequirements.html index 6ed2e66d..ebbe0f6b 100644 --- a/docs/articles/CohortDefinitionSubmissionRequirements.html +++ b/docs/articles/CohortDefinitionSubmissionRequirements.html @@ -6,20 +6,19 @@ Cohort Definition Submission Requirements • PhenotypeLibrary - + - - +
@@ -45,7 +44,7 @@
- +
@@ -121,7 +120,7 @@

Cohort Definition Submission Requirements

Gowtham A. Rao

-

2024-01-06

+

2024-09-27

Source: vignettes/CohortDefinitionSubmissionRequirements.Rmd @@ -216,16 +215,16 @@

2024-01-06

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/docs/articles/CohortDefinitionsInOhdsiPhenotypeLibrary.html b/docs/articles/CohortDefinitionsInOhdsiPhenotypeLibrary.html index 1f23c07e..344e6947 100644 --- a/docs/articles/CohortDefinitionsInOhdsiPhenotypeLibrary.html +++ b/docs/articles/CohortDefinitionsInOhdsiPhenotypeLibrary.html @@ -6,20 +6,19 @@ Cohort Definitions in OHDSI Phenotype Library • PhenotypeLibrary - + - - +
@@ -45,7 +44,7 @@
- - + + +
- - + + diff --git a/docs/articles/CohortDefinitionsInOhdsiPhenotypeLibrary_files/htmltools-fill-0.5.8.1/fill.css b/docs/articles/CohortDefinitionsInOhdsiPhenotypeLibrary_files/htmltools-fill-0.5.8.1/fill.css new file mode 100644 index 00000000..841ea9d5 --- /dev/null +++ b/docs/articles/CohortDefinitionsInOhdsiPhenotypeLibrary_files/htmltools-fill-0.5.8.1/fill.css @@ -0,0 +1,21 @@ +@layer htmltools { + .html-fill-container { + display: flex; + flex-direction: column; + /* Prevent the container from expanding vertically or horizontally beyond its + parent's constraints. */ + min-height: 0; + min-width: 0; + } + .html-fill-container > .html-fill-item { + /* Fill items can grow and shrink freely within + available vertical space in fillable container */ + flex: 1 1 auto; + min-height: 0; + min-width: 0; + } + .html-fill-container > :not(.html-fill-item) { + /* Prevent shrinking or growing of non-fill items */ + flex: 0 0 auto; + } +} diff --git a/docs/articles/CohortDefinitionsInOhdsiPhenotypeLibrary_files/reactwidget-2.0.0/react-tools.umd.cjs b/docs/articles/CohortDefinitionsInOhdsiPhenotypeLibrary_files/reactwidget-2.0.0/react-tools.umd.cjs new file mode 100644 index 00000000..92b8d86d --- /dev/null +++ b/docs/articles/CohortDefinitionsInOhdsiPhenotypeLibrary_files/reactwidget-2.0.0/react-tools.umd.cjs @@ -0,0 +1 @@ +(function(s,u){typeof exports=="object"&&typeof module<"u"?u(exports):typeof define=="function"&&define.amd?define(["exports"],u):(s=typeof globalThis<"u"?globalThis:s||self,u(s.reactR={}))})(this,function(s){"use strict";function u(n,t){if(typeof t=="string")return t;if(t.name[0]===t.name[0].toUpperCase()&&!n.hasOwnProperty(t.name))throw new Error("Unknown component: "+t.name);for(let i in t.attribs)g(t.attribs[i])&&(t.attribs[i]=u(n,t.attribs[i]));for(var a=n.hasOwnProperty(t.name)?n[t.name]:t.name,r=[a,t.attribs],e=0;e Concept Set Definitions in OHDSI Phenotype Library • PhenotypeLibrary - + - - +
@@ -45,7 +44,7 @@
- - + + +
- - + + diff --git a/docs/articles/ConceptSetDefinitionsInOhdsiPhenotypeLibrary_files/htmltools-fill-0.5.8.1/fill.css b/docs/articles/ConceptSetDefinitionsInOhdsiPhenotypeLibrary_files/htmltools-fill-0.5.8.1/fill.css new file mode 100644 index 00000000..841ea9d5 --- /dev/null +++ b/docs/articles/ConceptSetDefinitionsInOhdsiPhenotypeLibrary_files/htmltools-fill-0.5.8.1/fill.css @@ -0,0 +1,21 @@ +@layer htmltools { + .html-fill-container { + display: flex; + flex-direction: column; + /* Prevent the container from expanding vertically or horizontally beyond its + parent's constraints. */ + min-height: 0; + min-width: 0; + } + .html-fill-container > .html-fill-item { + /* Fill items can grow and shrink freely within + available vertical space in fillable container */ + flex: 1 1 auto; + min-height: 0; + min-width: 0; + } + .html-fill-container > :not(.html-fill-item) { + /* Prevent shrinking or growing of non-fill items */ + flex: 0 0 auto; + } +} diff --git a/docs/articles/ConceptSetDefinitionsInOhdsiPhenotypeLibrary_files/reactwidget-2.0.0/react-tools.umd.cjs b/docs/articles/ConceptSetDefinitionsInOhdsiPhenotypeLibrary_files/reactwidget-2.0.0/react-tools.umd.cjs new file mode 100644 index 00000000..92b8d86d --- /dev/null +++ b/docs/articles/ConceptSetDefinitionsInOhdsiPhenotypeLibrary_files/reactwidget-2.0.0/react-tools.umd.cjs @@ -0,0 +1 @@ +(function(s,u){typeof exports=="object"&&typeof module<"u"?u(exports):typeof define=="function"&&define.amd?define(["exports"],u):(s=typeof globalThis<"u"?globalThis:s||self,u(s.reactR={}))})(this,function(s){"use strict";function u(n,t){if(typeof t=="string")return t;if(t.name[0]===t.name[0].toUpperCase()&&!n.hasOwnProperty(t.name))throw new Error("Unknown component: "+t.name);for(let i in t.attribs)g(t.attribs[i])&&(t.attribs[i]=u(n,t.attribs[i]));for(var a=n.hasOwnProperty(t.name)?n[t.name]:t.name,r=[a,t.attribs],e=0;e Guidance on writing clinical description for Condition Phenotypes • PhenotypeLibrary - + - - +
@@ -45,7 +44,7 @@
- +
@@ -122,7 +121,7 @@

Guidance on writing clinical description for

Gowtham A. Rao

-

2024-01-06

+

2024-09-27

Source: vignettes/GuidanceOnClinicalDescriptionForConditionPhenotypes.Rmd @@ -466,9 +465,7 @@
Sub-prompts
+
@@ -481,16 +478,16 @@
Sub-prompts

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/docs/articles/GuidanceOnCohortDefinitionSetRObject.html b/docs/articles/GuidanceOnCohortDefinitionSetRObject.html index ac80c5e4..146573bc 100644 --- a/docs/articles/GuidanceOnCohortDefinitionSetRObject.html +++ b/docs/articles/GuidanceOnCohortDefinitionSetRObject.html @@ -6,20 +6,19 @@ Guidance on Cohort Definition Set R Object • PhenotypeLibrary - + - - +
@@ -45,7 +44,7 @@
- +
@@ -121,7 +120,7 @@

Guidance on Cohort Definition Set R Object

Gowtham A. Rao

-

2024-01-06

+

2024-09-27

Source: vignettes/GuidanceOnCohortDefinitionSetRObject.Rmd @@ -170,9 +169,7 @@

Downloading Cohorts from ATLAS - -

+
@@ -185,16 +182,16 @@

Downloading Cohorts from ATLAS

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/docs/articles/GuidanceOnLiteratureReview.html b/docs/articles/GuidanceOnLiteratureReview.html index f876a0df..8226822f 100644 --- a/docs/articles/GuidanceOnLiteratureReview.html +++ b/docs/articles/GuidanceOnLiteratureReview.html @@ -6,20 +6,19 @@ Guidance on literature review • PhenotypeLibrary - + - - +
@@ -45,7 +44,7 @@
- +
@@ -121,7 +120,7 @@

Guidance on literature review

Gowtham A. Rao

-

2024-01-06

+

2024-09-27

Source: vignettes/GuidanceOnLiteratureReview.Rmd @@ -295,9 +294,7 @@

Develop a Search Strategy - -

+
@@ -310,16 +307,16 @@

Develop a Search Strategy

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/docs/articles/GuidanceOnPerformingPeerReview.html b/docs/articles/GuidanceOnPerformingPeerReview.html index ae981c7f..f30817fa 100644 --- a/docs/articles/GuidanceOnPerformingPeerReview.html +++ b/docs/articles/GuidanceOnPerformingPeerReview.html @@ -6,20 +6,19 @@ Guidance on performing peer review • PhenotypeLibrary - + - - +
@@ -45,7 +44,7 @@
- +
@@ -121,7 +120,7 @@

Guidance on performing peer review

Gowtham A. Rao

-

2024-01-06

+

2024-09-27

Source: vignettes/GuidanceOnPerformingPeerReview.Rmd @@ -215,9 +214,7 @@

Level 4 - -

+
@@ -230,16 +227,16 @@

Level 4

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/docs/articles/GuidanceOnWritingAnEvaluationReport.html b/docs/articles/GuidanceOnWritingAnEvaluationReport.html index a5140880..02352dc2 100644 --- a/docs/articles/GuidanceOnWritingAnEvaluationReport.html +++ b/docs/articles/GuidanceOnWritingAnEvaluationReport.html @@ -6,20 +6,19 @@ Guidance on writing an evaluation report • PhenotypeLibrary - + - - +
@@ -45,7 +44,7 @@
- +
@@ -121,7 +120,7 @@

Guidance on writing an evaluation report

Gowtham A. Rao

-

2024-01-06

+

2024-09-27

Source: vignettes/GuidanceOnWritingAnEvaluationReport.Rmd @@ -153,16 +152,16 @@

2024-01-06

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/docs/articles/GuidanceOnWritingCohortDefinitionLogicDescription.html b/docs/articles/GuidanceOnWritingCohortDefinitionLogicDescription.html index a3ce078b..11ab0fe4 100644 --- a/docs/articles/GuidanceOnWritingCohortDefinitionLogicDescription.html +++ b/docs/articles/GuidanceOnWritingCohortDefinitionLogicDescription.html @@ -6,20 +6,19 @@ Guidance on writing Cohort Definition Logic Description • PhenotypeLibrary - + - - +
@@ -45,7 +44,7 @@
- +
@@ -122,7 +121,7 @@

Guidance on writing Cohort Definition Logic

Gowtham A. Rao

-

2024-01-06

+

2024-09-27

Source: vignettes/GuidanceOnWritingCohortDefinitionLogicDescription.Rmd @@ -196,9 +195,7 @@
+
@@ -211,16 +208,16 @@

}^uKeIr@h_jg=rq{+(8clmh zse&`R<~M%Ex^JLTWv`cPZALZo*M%OhJnX$iT1EZGyb~PjyI*Mx&VMp7A77HPV@@03 zz`6Ltk|yQ~DlqRC{(1EoroSvTRvi~n=A60+-4&2o?qPO+o3Z=)w{*K&xSNi^^bI=K?O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ICp^oTD;zu?kJ zA+$pWU528Ym`)g%-qETOqt%h6f#m@skbU8cjO$D7M`9u6DwhQq zV4B>prcyjniNXA&B2L{2Yx+$R>SmEF3%!?^yxxu8`mW5N95LIuHjp)@tGngn=S!1cEiJHE6wSv$p=> zYy)?aOIK>)t$u>109u3t@CFuVvpLW-hCPi0;8thTueY!|Sb!MzZtLiWe9>|nJTa$e z8kT7ym`@J_Ml*A+mtZLQ^+0X~Wb=9WrX86x1LF%GZVTq&WNUPja``s~jwMKkmMlyX zQ-G1I*(h?<=jH~ba@gi9iyUjGWnz6q6~@$0=e7uzJ7oYcVb151Xd%Co3A%Zon@Q%` z_pq0EDJ`6pcsLW7hi>7uv8JQgJ7J@BtJv)f zoRGt!q?#y{%wFf^hGWtQ)6q*sk*cr_<6!%i^A=PBjNMG;ZsD)H2>a^q2qM=_%Vs>` z4B;ft8pj)8<(iN_Yb7 Date: Fri, 27 Sep 2024 09:53:22 -0400 Subject: [PATCH 7/8] d --- DESCRIPTION | 4 ++-- NEWS.md | 9 +++++++++ extras/UpdatePhenotypes.R | 1 - 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index a9918264..68a564db 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: PhenotypeLibrary Type: Package Title: The OHDSI Phenotype Library -Version: 3.32.0 -Date: 2024-01-06 +Version: 3.33.0 +Date: 2024-09-27 Author: Gowtham Rao [aut, cre] Maintainer: Gowtham Rao Description: A repository to store the content of the OHDSI Phenotype library. diff --git a/NEWS.md b/NEWS.md index 2663ee14..f0ea40c1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,12 @@ +PhenotypeLibrary 3.33.0 +====================== +Accepted Cohorts: No cohorts were accepted in this release. + +New Cohorts: 2 were added. + + 1316: Acquired Neutropenia or unspecified leukopenia (21Pe, 365Era) + 1317: [P] Reyes syndrome + PhenotypeLibrary 3.32.0 ====================== Accepted Cohorts: No cohorts were accepted in this release. diff --git a/extras/UpdatePhenotypes.R b/extras/UpdatePhenotypes.R index 512aa932..b1cecd78 100644 --- a/extras/UpdatePhenotypes.R +++ b/extras/UpdatePhenotypes.R @@ -353,7 +353,6 @@ cohortRecord <- readRDS("cohortRecord.rds") cohortRecordAugmented <- c() for (i in (1:nrow(cohortRecord))) { - print(paste0(i, "/", nrow(cohortRecord))) cohortRecordUnit <- cohortRecord[i, ] if (!file.exists(file.path( From aedd05c82f453e4b4c876f23e9c9e88dd2a928dc Mon Sep 17 00:00:00 2001 From: Gowtham Rao Date: Fri, 27 Sep 2024 10:02:17 -0400 Subject: [PATCH 8/8] s --- docs/404.html | 18 +- ...ohortDefinitionSubmissionRequirements.html | 21 +- ...ortDefinitionsInOhdsiPhenotypeLibrary.html | 28 +- .../htmltools-fill-0.5.8.1/fill.css | 21 + .../reactwidget-2.0.0/react-tools.umd.cjs | 1 + ...SetDefinitionsInOhdsiPhenotypeLibrary.html | 28 +- .../htmltools-fill-0.5.8.1/fill.css | 21 + .../reactwidget-2.0.0/react-tools.umd.cjs | 1 + ...icalDescriptionForConditionPhenotypes.html | 25 +- .../GuidanceOnCohortDefinitionSetRObject.html | 25 +- docs/articles/GuidanceOnLiteratureReview.html | 25 +- .../GuidanceOnPerformingPeerReview.html | 25 +- .../GuidanceOnWritingAnEvaluationReport.html | 21 +- ...itingCohortDefinitionLogicDescription.html | 25 +- .../HowToUsePhenotypeLibraryRPackage.html | 51 +- ...dWordsWithSpecialMeaningToPhenotypers.html | 25 +- docs/articles/SubmittedCohortDefinitions.html | 25 +- .../ValidityChecksForCohortDefinitions.html | 25 +- docs/articles/index.html | 18 +- docs/authors.html | 29 +- docs/index.html | 18 +- docs/news/index.html | 2975 +++++++++-------- docs/pkgdown.yml | 7 +- docs/reference/PhenotypeLibrary-package.html | 18 +- docs/reference/getPhenotypeLog.html | 36 +- docs/reference/getPlCohortDefinitionSet.html | 34 +- docs/reference/getPlConceptDefinitionSet.html | 34 +- docs/reference/index.html | 18 +- docs/reference/listPhenotypes.html | 42 +- docs/sitemap.xml | 108 +- extras/PhenotypeLibrary.pdf | Bin 86365 -> 0 bytes ...s for domain change and vocabulary drift.R | 165 +- extras/UpdatePhenotypes.R | 10 +- extras/VP Cipher Mapping.R | 155 +- inst/doc/HowToUsePhenotypeLibraryRPackage.pdf | Bin 197363 -> 207366 bytes 35 files changed, 2052 insertions(+), 2026 deletions(-) create mode 100644 docs/articles/CohortDefinitionsInOhdsiPhenotypeLibrary_files/htmltools-fill-0.5.8.1/fill.css create mode 100644 docs/articles/CohortDefinitionsInOhdsiPhenotypeLibrary_files/reactwidget-2.0.0/react-tools.umd.cjs create mode 100644 docs/articles/ConceptSetDefinitionsInOhdsiPhenotypeLibrary_files/htmltools-fill-0.5.8.1/fill.css create mode 100644 docs/articles/ConceptSetDefinitionsInOhdsiPhenotypeLibrary_files/reactwidget-2.0.0/react-tools.umd.cjs delete mode 100644 extras/PhenotypeLibrary.pdf diff --git a/docs/404.html b/docs/404.html index b11cf75b..1b2ecb3e 100644 --- a/docs/404.html +++ b/docs/404.html @@ -6,7 +6,7 @@ Page not found (404) • PhenotypeLibrary - + @@ -18,7 +18,7 @@ - +